/* Song List Page Styles */
.song-list-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #ffffff;
    margin-bottom:40px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

.page-header h1 {
    margin: 0;
    color: #8b5cf6;
    font-size: 2em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.loading-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.5em;
    color: #8b5cf6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.stats-bar {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.85em;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #8b5cf6;
}

.filter-section {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
}

.search-box .icon-search {
    position: absolute;
    left: 12px;
    color: #8b5cf6;
    font-size: 1.2em;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    background: rgba(15, 15, 35, 0.9);
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #8b5cf6;
    background: rgba(15, 15, 35, 1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.search-input::placeholder {
    color: #6b7280;
    font-style: italic;
}

.clear-search-btn {
    position: absolute;
    right: 10px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search-btn:hover {
    background: rgba(239, 68, 68, 0.4);
}

.category-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-filter label {
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
}

.category-select {
    padding: 10px 15px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    background: rgba(15, 15, 35, 0.9);
    color: #ffffff;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    min-width: 200px;
    transition: all 0.3s ease;
}

.category-select:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.category-select option {
    background: #1a1a2e;
    color: #ffffff;
}

.songs-table-container {
    background: rgba(26, 26, 46, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.songs-table {
    width: 100%;
    border-collapse: collapse;
}

.songs-table thead {
    background: rgba(139, 92, 246, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.songs-table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: #8b5cf6;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.4);
}

.songs-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.songs-table th.sortable:hover {
    background: rgba(139, 92, 246, 0.3);
}

.songs-table tbody tr {
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    transition: background 0.2s;
}

.songs-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.1);
}

.songs-table td {
    padding: 12px 15px;
    color: #e5e7eb;
}

.artist-cell {
    color: #06d6a0;
    font-weight: 600;
}

.title-cell {
    color: #ffffff;
    font-weight: 500;
}

.category-cell {
    color: #8b5cf6;
}

.subcategory-cell {
    color: #a78bfa;
}

.lyrics-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lyrics-badge.synced {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.lyrics-badge.plain {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.lyrics-badge.none {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .song-list-page {
        padding: 10px;
    }

    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .page-header h1 {
        font-size: 1.5em;
    }

    .stats-bar {
        flex-direction: column;
        gap: 15px;
    }

    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: 100%;
    }

    .category-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .category-select {
        width: 100%;
    }

    .songs-table-container {
        overflow-x: auto;
    }

    .songs-table {
        min-width: 800px;
    }
}
