/* Music Lyrics Generator specific styles */

/* Side-by-side form layouts */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 20px;
    }
}

/* Checkbox styling */
.checkbox-group {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px 20px;
    margin-top: 10px;
    padding: 10px 0;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .checkbox-group {
        grid-template-columns: 1fr !important;
    }
}

.checkbox-inline {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: inherit;
    user-select: none;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin-bottom: 0 !important;
    text-align: left;
}

.checkbox-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff6b35;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.checkbox-inline:hover {
    color: #ff6b35;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dashed rgba(255, 107, 53, 0.5);
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    font-weight: normal;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Form elements */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ff6b35;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    color: inherit;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* API Controls */
.api-controls {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 107, 53, 0.2);
}

@media (max-width: 768px) {
    .api-controls {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Generate Button */
.generate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

/* Error Message */
.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

/* Result Section */
.result-section {
    margin-top: 40px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 2px solid rgba(255, 107, 53, 0.2);
}

.result-section h2 {
    color: #ff6b35;
    margin-bottom: 20px;
    text-align: center;
}

#resultContent {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    line-height: 1.8;
    max-height: 600px;
    overflow-y: auto;
}

/* Lyrics formatting */
#resultContent .lyrics-section {
    margin-bottom: 25px;
}

#resultContent .section-title {
    color: #ff6b35;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
}

#resultContent .lyrics-line {
    margin-left: 15px;
    margin-bottom: 5px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.action-btn:active {
    transform: translateY(0);
}

.copy-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.download-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.regenerate-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

/* Info Section */
.info-section {
    margin-top: 60px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.info-section h2 {
    color: #ff6b35;
    margin-bottom: 20px;
}

.info-section h3 {
    color: #ff6b35;
    margin-top: 30px;
    margin-bottom: 15px;
}

.info-section ul,
.info-section ol {
    margin-left: 20px;
    line-height: 1.8;
}

.info-section li {
    margin-bottom: 10px;
}

.info-section strong {
    color: #ff6b35;
}

/* Loading spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}