/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --star-color: #fbbf24;
    --star-empty: #cbd5e1;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
}

/* Navigation */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--border);
    color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
    background: #cbd5e1;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-tiny {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-full {
    width: 100%;
}

.btn-favorite {
    background: linear-gradient(135deg, var(--star-color), #f97316);
    color: white;
}

.btn-favorite:hover:not(:disabled) {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.btn-favorite.is-favorite {
    background: var(--success);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text);
}

.form-hint {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.error-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}

.login-box {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-box h1 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.login-box .tagline {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.login-box .form-group {
    text-align: left;
}

.forgot-password {
    margin-top: 1rem;
    text-align: center;
}

.forgot-password a {
    color: var(--text-light);
    font-size: 0.875rem;
    text-decoration: none;
}

.forgot-password a:hover {
    color: var(--primary);
}

#reset-form {
    text-align: left;
}

#reset-form p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

#reset-form .back-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.login-footer {
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.login-footer a {
    color: var(--text-light);
    text-decoration: none;
}

.login-footer a:hover {
    color: var(--primary);
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 0.25rem;
}

.welcome-text {
    color: var(--text-light);
}

/* Stats Bar */
.stats-bar {
    /* display: flex; */
    display: none;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Filter Bar */
.filter-bar {
    margin-bottom: 1.5rem;
}

.filter-bar select {
    max-width: 200px;
}

/* Songs Grid */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.song-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.song-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.song-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.song-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.song-card-status {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.status-archived {
    background: #f3f4f6;
    color: #6b7280;
}

.song-card-preview {
    font-size: 0.875rem;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.song-card-notes {
    font-size: 0.8125rem;
    color: var(--primary);
    font-style: italic;
    margin: 0;
}

.has-favorite {
    color: var(--star-color);
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
}

.back-link:hover {
    color: var(--primary);
}

/* Song Detail */
.song-detail {
    max-width: 900px;
    margin: 0 auto;
}

.song-header-detail {
    margin-bottom: 2rem;
}

.song-header-top {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.song-cover {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-header-info {
    flex: 1;
}

.song-header-info .song-title {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
}

.song-header-info .song-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.song-header-info .variation-count {
    color: var(--text-light);
    margin: 0;
}

/* Collapsible Sections */
.collapsible-section {
    background: var(--surface);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.collapsible-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    text-align: left;
}

.collapsible-toggle:hover {
    background: var(--background);
}

.toggle-icon {
    font-size: 1.25rem;
    color: var(--text-light);
}

.collapsible-content {
    padding: 0 1.5rem 1.5rem;
}

.collapsible-content.collapsed {
    display: none;
}

.lyrics-text {
    white-space: pre-wrap;
    font-family: Georgia, serif;
    font-size: 1rem;
    line-height: 1.8;
}

.song-notes-text {
    color: var(--text);
    line-height: 1.6;
}

.song-notes-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.song-notes-form textarea {
    min-height: 100px;
}

.song-notes-form .btn {
    align-self: flex-start;
}

/* Variants Section */
.variants-section {
    margin-top: 2rem;
}

.variants-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.variants-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.variant-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.variant-card.is-favorite {
    border: 2px solid var(--star-color);
    background: linear-gradient(to bottom, #fffbeb, var(--surface));
}

.variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variant-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.variant-title {
    margin: 0;
    font-size: 1.125rem;
}

.favorite-star {
    color: var(--star-color);
    font-size: 1.25rem;
}

.variant-description {
    color: var(--text-light);
    margin: 0 0 1rem;
    font-size: 0.9375rem;
}

.variant-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.rating-info {
    font-size: 0.875rem;
    color: var(--text-light);
}

.variant-audio {
    margin-bottom: 1rem;
}

.variant-audio audio {
    width: 100%;
    border-radius: var(--radius);
}

.variant-notes {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.variant-notes h4 {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
}

.btn-set-favorite {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
}

/* Legacy styles kept for compatibility */
.song-header {
    margin-bottom: 2rem;
}

.song-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.song-title {
    margin: 0;
}

.song-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.song-meta {
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Lyrics Section */
.lyrics-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.lyrics-section h2 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.lyrics-content {
    white-space: pre-wrap;
    font-family: Georgia, serif;
    font-size: 1rem;
    line-height: 1.8;
}

/* Overall Notes Section */
.overall-notes-section {
    background: #fefce8;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #fef08a;
}

.overall-notes-section h2 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: #854d0e;
}

.overall-notes-content {
    color: #713f12;
}

.overall-notes-content:empty::before {
    content: 'No notes yet';
    color: #a16207;
    font-style: italic;
}

/* Variations Section (legacy) */
.variations-section h2 {
    margin-bottom: 1.5rem;
}

.variation-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.variation-card.is-favorite {
    border: 2px solid var(--success);
    background: linear-gradient(to bottom, #f0fdf4, var(--surface));
}

.variation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variation-title {
    margin: 0;
}

.variation-badges {
    display: flex;
    gap: 0.5rem;
}

.favorite-badge {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.variation-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

/* Audio Player */
.audio-player {
    margin-bottom: 1rem;
}

.audio-player audio {
    width: 100%;
    border-radius: var(--radius);
}

/* Star Rating */
.rating-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
}

.star-rating .star {
    font-size: 1.75rem;
    color: var(--star-empty);
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
    user-select: none;
}

.star-rating .star:hover {
    transform: scale(1.1);
}

.star-rating .star.active,
.star-rating .star.hover {
    color: var(--star-color);
}

.average-rating,
.vote-count {
    font-size: 0.875rem;
    color: var(--text-light);
}

.average-rating .avg-value {
    font-weight: 600;
    color: var(--text);
}

/* Favorite Section */
.favorite-section {
    margin-bottom: 1rem;
}

/* Notes Section */
.notes-section {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.notes-section h4 {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.notes-list {
    margin-bottom: 1rem;
}

.note-item {
    background: var(--background);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
}

.note-author {
    font-weight: 600;
    color: var(--text);
}

.note-date {
    color: var(--text-light);
}

.note-text {
    font-size: 0.875rem;
    color: var(--text);
}

.note-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.note-form textarea {
    flex: 1 1 100%;
    min-height: 60px;
}

.note-form .btn {
    flex-shrink: 0;
}

/* Artwork Grid */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.artwork-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.artwork-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.artwork-image-container {
    aspect-ratio: 1;
    overflow: hidden;
}

.artwork-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.artwork-card:hover .artwork-image {
    transform: scale(1.05);
}

.artwork-info {
    padding: 1rem;
}

.artwork-title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.artwork-song {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.comment-count {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-content {
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--text);
    color: white;
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1;
}

.lightbox-close:hover {
    background: var(--danger);
}

.lightbox-content img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    background: #f0f0f0;
}

.lightbox-info {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.lightbox-info h3 {
    margin-bottom: 0.25rem;
}

.lightbox-info p {
    color: var(--text-light);
}

.lightbox-comments {
    padding: 1.5rem;
}

.lightbox-comments h4 {
    margin-bottom: 1rem;
}

#lightbox-comments-list {
    margin-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.comment-item {
    background: var(--background);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    color: var(--text-light);
}

.comment-text {
    font-size: 0.875rem;
}

#lightbox-comment-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

#lightbox-comment-form textarea {
    flex: 1;
}

/* Admin Panel */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.tab-btn:hover {
    background: var(--background);
    color: var(--text);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
}

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

.admin-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.admin-section h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.admin-form {
    max-width: 600px;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--radius);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-item-info h4 {
    margin: 0;
    font-size: 1rem;
}

.admin-item-info p {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.admin-item-actions {
    display: flex;
    gap: 0.5rem;
}

.artwork-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.artwork-admin-item {
    background: var(--background);
    border-radius: var(--radius);
    overflow: hidden;
}

.artwork-admin-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.artwork-admin-item .admin-item-info {
    padding: 0.75rem;
}

.artwork-admin-item .admin-item-actions {
    padding: 0 0.75rem 0.75rem;
}

/* Upload Progress */
.upload-progress {
    margin: 1rem 0;
}

.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Invite Result */
.invite-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.invite-result.success {
    background: #dcfce7;
    color: #166534;
}

.invite-result.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-close:hover {
    color: var(--text);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
}

/* User Item */
.user-role {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.role-admin {
    background: #fef3c7;
    color: #92400e;
}

.role-decision_maker {
    background: #dbeafe;
    color: #1e40af;
}

.role-voter {
    background: #f3f4f6;
    color: #6b7280;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
    background: var(--surface);
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.drop-zone-content {
    pointer-events: none;
}

.drop-zone-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.drop-zone p {
    margin: 0;
    color: var(--text);
    font-weight: 500;
}

.drop-zone-hint {
    font-size: 0.875rem;
    color: var(--text-light) !important;
    font-weight: 400 !important;
    margin-top: 0.25rem !important;
}

/* Upload Status */
.upload-status {
    margin-bottom: 1.5rem;
}

.upload-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
}

.upload-filename {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.upload-progress-text {
    font-size: 0.875rem;
    color: var(--text-light);
}

.upload-item.upload-complete .upload-progress-text {
    color: var(--success);
}

.upload-item.upload-error .upload-progress-text {
    color: var(--danger);
}

/* Variants Header */
.variants-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.variants-header h2 {
    margin: 0;
}

/* Filter Bar Enhancement */
.filter-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 640px) {
    .stats-bar {
        justify-content: space-around;
    }

    .songs-grid {
        grid-template-columns: 1fr;
    }

    .artwork-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rating-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .note-form {
        flex-direction: column;
    }

    .note-form .btn {
        width: 100%;
    }

    .song-header-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .song-cover {
        width: 120px;
        height: 120px;
    }

    .variant-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .variant-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
