/* Dark Theme Setlist Manager Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #b0b0b0;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: #4ecdc4;
}

.tab-button.active {
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    border-color: #4ecdc4;
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.3);
    color: white;
}

.tab-count {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 8px;
}

/* Main Content Area */
.main-content {
    background: rgba(30, 30, 50, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.tab-content {
    padding: 30px;
    display: none;
}

.tab-content.active {
    display: block;
}

.setlist-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.setlist-title {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.setlist-description {
    color: #b0b0b0;
    font-size: 1.1rem;
}

.setlist-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    color: white;
    border-radius: 15px;
    min-width: 120px;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.2);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Group Section */
.group-section {
    margin-bottom: 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(20, 20, 35, 0.6);
}

.group-section.expanded {
    border-color: #4ecdc4;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.2);
}

.group-header {
    background: linear-gradient(135deg, rgba(40, 40, 60, 0.8) 0%, rgba(50, 50, 70, 0.8) 100%);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.group-header:hover {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
    color: white;
}

.group-section.expanded .group-header {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
    color: white;
}

.group-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.group-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.group-section.expanded .group-toggle {
    transform: rotate(180deg);
}

.group-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: 0.9rem;
}

.group-tuning {
    background: rgba(0,0,0,0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.group-song-count {
    background: rgba(0,0,0,0.2);
    padding: 5px 12px;
    border-radius: 15px;
}

.group-notes {
    margin-top: 10px;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    font-style: italic;
    border-left: 3px solid #4ecdc4;
}

.group-content {
    display: none;
    background: rgba(25, 25, 40, 0.8);
}

.group-section.expanded .group-content {
    display: block;
}

/* Song Items */
.song-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.song-item:last-child {
    border-bottom: none;
}

.song-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.song-header:hover {
    background: rgba(78, 205, 196, 0.1);
    padding-left: 30px;
}

.song-item.expanded .song-header {
    background: rgba(78, 205, 196, 0.2);
    border-left: 4px solid #4ecdc4;
}

.song-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.song-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.song-artist {
    color: #b0b0b0;
    font-size: 0.95rem;
}

.song-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
}

.song-duration, .song-bpm {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
    color: #ccc;
}

.song-expand-icon {
    font-size: 1.1rem;
    color: #4ecdc4;
    transition: transform 0.3s ease;
}

.song-item.expanded .song-expand-icon {
    transform: rotate(180deg);
}

.song-content {
    display: none;
    padding: 20px;
    background: rgba(15, 15, 25, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.song-item.expanded .song-content {
    display: block;
}

.song-details {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    margin-bottom: 20px;
}

.song-meta-details {
    background: rgba(30, 30, 45, 0.8);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.meta-label {
    font-weight: 600;
    color: #4ecdc4;
}

.meta-value {
    color: #e0e0e0;
}

/* Lyrics Display */
.song-lyrics {
    background: rgba(30, 30, 45, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.8;
    max-height: 500px;
    overflow-y: auto;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.song-lyrics:hover {
    border-color: #4ecdc4;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.2);
}

.song-lyrics.auto-scrolling {
    border-color: #ff6b6b;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.song-lyrics p {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.song-lyrics strong {
    color: #4ecdc4;
    display: block;
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
}

.lyrics-click-hint {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(78, 205, 196, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
    pointer-events: none;
}

.song-lyrics.auto-scrolling .lyrics-click-hint {
    background: rgba(255, 107, 107, 0.8);
}

/* Auto-scroll Progress Indicator */
.scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #4ecdc4, #45b7d1);
    transition: width 0.1s linear;
    z-index: 10;
}

/* Control Buttons */
.group-controls {
    text-align: center;
    margin: 30px 0;
}

.control-button {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.control-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

/* Auto-scroll Controls */
.scroll-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(30, 30, 45, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.scroll-controls.active {
    display: block;
}

.scroll-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.scroll-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.scroll-btn {
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid #4ecdc4;
    color: #4ecdc4;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background: #4ecdc4;
    color: white;
}

.scroll-btn.active {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .tab-button {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .tab-content {
        padding: 20px;
    }

    .setlist-stats {
        gap: 15px;
    }

    .song-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .song-info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .song-meta {
        gap: 10px;
    }

    .group-info {
        flex-direction: column;
        gap: 10px;
    }

    .scroll-controls {
        bottom: 10px;
        right: 10px;
        left: 10px;
        padding: 12px;
    }

    .scroll-buttons {
        justify-content: center;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
    color: #b0b0b0;
}

.loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Smooth scrolling for lyrics */
.song-lyrics {
    scroll-behavior: smooth;
}

/* Highlight current lyric line during auto-scroll */
.current-line {
    background: rgba(78, 205, 196, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    border-left: 3px solid #4ecdc4;
}