/* Title Container Layout */
.title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.title-left {
    display: flex;
    align-items: center;
}

.title-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title-center h3 {
    margin: 0;
    color: #fff;
    font-weight: 500;
}

.title-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .btn-text {
        display: none;
    }
    
    .title-container {
        flex-wrap: nowrap;
    }
    
    .title-left, .title-right {
        min-width: 40px;
    }
    
    .title-center h3 {
        font-size: 1.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .btn, .btn-back {
        min-width: auto;
        padding: 6px 10px;
    }
}

/* Styling für das Lade-Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    max-width: 80%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Formularfelder */
.form-fields {
    margin: 30px 0;
    padding: 20px;
    background-color: #252525;
    border-radius: 8px;
}

.ai-suggestion {
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(255, 85, 0, 0.1);
    border: 1px solid #ff5500;
    border-radius: 5px;
    color: #f1f1f1;
}

.ai-suggestion i {
    color: #ff5500;
    margin-right: 8px;
}

/* Ultimate Guitar Styles */
.ultimate-guitar-section {
    margin-bottom: 15px;
    text-align: center;
}

.btn-ultimate-guitar {
    background: linear-gradient(135deg, #ff5500, #ff7700);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 85, 0, 0.3);
}

.btn-ultimate-guitar:hover {
    background: linear-gradient(135deg, #ff7700, #ff9900);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 85, 0, 0.4);
}

.ug-logo {
    height: 24px;
    width: auto;
}

.ug-logo-small {
    height: 20px;
    width: auto;
    margin-right: 8px;
}

/* Spotify Styles */
.btn-spotify {
    background: linear-gradient(135deg, #1DB954, #1ed760);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(29, 185, 84, 0.3);
    margin-top: 10px;
}

.btn-spotify:hover {
    background: linear-gradient(135deg, #1ed760, #1fdf64);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(29, 185, 84, 0.4);
}

.btn-spotify .fab {
    font-size: 18px;
}

.spotify-logo-small {
    font-size: 16px;
    margin-right: 8px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background-color: #2a2a2a;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background-color: #333;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
}

.modal-header h3 {
    margin: 0;
    color: #f1f1f1;
    display: flex;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #ff5500;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Ultimate Guitar Results */
.ug-results {
    display: grid;
    gap: 12px;
}

.ug-result-item {
    background-color: #333;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ug-result-item:hover {
    background-color: #3a3a3a;
    border-color: #ff5500;
    transform: translateY(-2px);
}

.ug-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.ug-result-title {
    color: #f1f1f1;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}

.ug-result-artist {
    color: #ccc;
    font-size: 14px;
    margin: 2px 0;
}

.ug-result-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 8px;
}

.ug-result-type {
    background-color: #ff5500;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.ug-result-official {
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.ug-result-rating {
    color: #ffd700;
    font-size: 14px;
}

.ug-result-votes {
    color: #999;
    font-size: 12px;
}

.ug-result-difficulty {
    color: #ff9900;
    font-size: 12px;
    font-style: italic;
}

.ug-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #ccc;
    text-align: center;
}

.ug-error {
    background-color: #ff4444;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.ug-no-results {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

/* PDF Options Two-Column Layout */
.pdf-options-container {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 20px;
    min-height: 200px;
}

.pdf-option-column {
    flex: 1;
    background-color: #2a2a2a;
    border: 2px solid #444;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.pdf-option-column:hover {
    border-color: #ff5500;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.2);
}

.option-header {
    margin-bottom: 15px;
    text-align: center;
}

.option-header h5 {
    margin: 0;
    color: #f1f1f1;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ug-logo-tiny {
    height: 18px;
    width: auto;
}

.option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.option-description {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.option-separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    position: relative;
}

.separator-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #666, transparent);
}

.separator-text {
    background-color: #1a1a1a;
    color: #999;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0;
    border: 1px solid #444;
}

/* Responsive Design for PDF Options */
@media screen and (max-width: 768px) {
    .pdf-options-container {
        flex-direction: column;
        gap: 15px;
        min-height: auto;
    }
    
    .option-separator {
        flex-direction: row;
        min-width: auto;
        min-height: 40px;
    }
    
    .separator-line {
        width: 40px;
        height: 2px;
        background: linear-gradient(to right, transparent, #666, transparent);
    }
    
    .pdf-option-column {
        min-height: 150px;
    }
    
    .btn-ultimate-guitar {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .ug-logo {
        height: 20px;
    }
    
    /* Audio Options Responsive */
    .audio-options-container {
        flex-direction: column;
        gap: 15px;
        min-height: auto;
    }
    
    .audio-option-column {
        min-height: 150px;
    }
}

/* PDF Viewer Modal Styles */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.pdf-container {
    width: 95%;
    height: 95%;
    max-width: 1200px;
    max-height: 900px;
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.pdf-header {
    background-color: #333;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    flex-shrink: 0;
}

.pdf-title {
    color: #f1f1f1;
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-close-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-left: 15px;
    flex-shrink: 0;
}

.pdf-close-btn:hover {
    color: #ff5500;
    background-color: rgba(255, 85, 0, 0.1);
}

.pdf-viewer {
    flex: 1;
    background-color: #1a1a1a;
    overflow: hidden;
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive PDF Modal */
@media screen and (max-width: 768px) {
    .pdf-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .pdf-header {
        padding: 10px 15px;
    }
    
    .pdf-title {
        font-size: 1rem;
    }
    
    .pdf-close-btn {
        font-size: 20px;
        margin-left: 10px;
    }
}

/* Toast Styles - Override base styles */
.toast {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    bottom: auto !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    color: white !important;
    font-weight: bold !important;
    z-index: 10002 !important;
    transition: all 0.3s ease !important;
    max-width: 300px !important;
    width: auto !important;
    height: auto !important;
    word-wrap: break-word !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}

.toast.success {
    background-color: #28a745 !important;
}

.toast.error {
    background-color: #dc3545 !important;
}

.toast.info {
    background-color: #17a2b8 !important;
}

.toast.hidden {
    display: none !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
    pointer-events: none !important;
}

/* Spotify Results */
.spotify-results {
    display: grid;
    gap: 12px;
}

.spotify-result-item {
    background-color: #333;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.spotify-result-item:hover {
    background-color: #404040;
    border-color: #1DB954;
    transform: translateY(-1px);
}

.spotify-result-cover {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.spotify-result-info {
    flex: 1;
}

.spotify-result-title {
    color: #f1f1f1;
    font-weight: bold;
    margin: 0 0 4px 0;
    font-size: 16px;
}

.spotify-result-artist {
    color: #ccc;
    margin: 0 0 8px 0;
    font-size: 14px;
}

.spotify-result-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.spotify-result-duration {
    background-color: #1DB954;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.spotify-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #ccc;
    text-align: center;
}

.spotify-error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    border-radius: 5px;
    padding: 15px;
    color: #dc3545;
    text-align: center;
}

.spotify-no-results {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

.spotify-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

/* Hide spinner and static text in spotify status, only show progress bar */
.spotify-status .loading-spinner {
    display: none !important;
}

.spotify-status .status-content > p {
    display: none !important;
}

.queue-info {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(29, 185, 84, 0.1);
    border-radius: 8px;
    border: 1px solid #1DB954;
    min-width: 350px;
    width: 350px;
    max-width: 350px;
    text-align: center;
}

.queue-info div {
    color: #f1f1f1;
}

/* Spotify Search Bar */
.spotify-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: stretch;
}

.spotify-search-input {
    flex: 1;
    padding: 12px 16px;
    background-color: #333;
    border: 2px solid #555;
    border-radius: 8px;
    color: #f1f1f1;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.spotify-search-input:focus {
    outline: none;
    border-color: #1DB954;
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
}

.spotify-search-input::placeholder {
    color: #999;
}

.spotify-search-btn {
    padding: 12px 16px;
    background: linear-gradient(135deg, #1DB954, #1ed760);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spotify-search-btn:hover {
    background: linear-gradient(135deg, #1ed760, #1fdf64);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}

.spotify-search-btn .fas {
    font-size: 14px;
}

/* Section Header Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h4 {
    margin: 0;
    color: #f1f1f1;
}

.section-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Audio Options Two-Column Layout */
.audio-options-container {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 20px;
    min-height: 200px;
}

.audio-option-column {
    flex: 1;
    background-color: #2a2a2a;
    border: 2px solid #444;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.audio-option-column:hover {
    border-color: #1DB954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.2);
}

.spotify-logo-tiny {
    font-size: 16px;
    margin-right: 8px;
}

/* Audio file items clickable styling */
.file-item .file-link {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.file-item .file-link:hover {
    background-color: rgba(255, 85, 0, 0.1);
}

/* Audio file items in the list should be clickable */
#audio-files-list .file-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#audio-files-list .file-item:hover {
    background-color: rgba(255, 85, 0, 0.1);
}

#audio-files-list .file-item .file-link {
    pointer-events: none; /* Let the parent handle the click */
}

#audio-files-list .file-item .btn-delete-file {
    pointer-events: auto; /* Re-enable for delete button */
}

/* Currently playing audio file highlighting */
#audio-files-list .file-item.playing {
    background-color: rgba(255, 85, 0, 0.2);
    border-left: 3px solid #ff5500;
} 