* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-card: rgba(20, 20, 20, 0.85);
    --border: rgba(255, 255, 255, 0.2);
    --text-primary: #d1d5db;
    --text-secondary: #9ca3af;
    --accent: #7c3aed;
    --accent-hover: #a78bfa;
    --danger: #dc2626;
    --success: #10b981;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --blur: blur(12px);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000000;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.glass-nav {
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.staff-logged-in {
    background: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.logout-btn {
    background: var(--accent);
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.logout-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Top Picks Section */
.top-picks-section {
    position: relative;
}

.top-picks-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-picks-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
}

.top-picks-scroll::-webkit-scrollbar {
    height: 8px;
}

.top-picks-scroll::-webkit-scrollbar-thumb {
    background: var(--bg-glass);
    border-radius: 4px;
}

.top-picks-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.top-pick-card {
    flex: 0 0 320px;
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #ff8500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 133, 0, 0.3);
    transform: perspective(1000px) translateZ(0);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.top-pick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff8500, #ffa500, #ff6500);
    border-radius: 12px 12px 0 0;
}

.top-pick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 133, 0, 0.5);
    border-color: #ffa500;
}

.top-pick-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(255, 133, 0, 0.3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-pick-card .sheet-preview {
    flex: 1;
    margin-bottom: 1rem;
    background: var(--bg-glass);
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid var(--border);
}

.top-pick-card .sheet-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    align-items: center;
}

.top-pick-card .sheet-meta .category-badge,
.top-pick-card .sheet-meta .difficulty-badge,
.top-pick-card .sheet-meta > span:not(.like-count) {
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-weight: 500;
}

/* Override any span styling inside like button */
.top-pick-card .like-btn span {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-weight: normal !important;
}

.top-pick-card .sheet-likes {
    margin-left: auto;
}

.top-pick-card .difficulty-badge {
    font-weight: 600;
    text-transform: capitalize;
}

.top-pick-card .difficulty-easy { background: rgba(16, 185, 129, 0.2) !important; color: var(--success); }
.top-pick-card .difficulty-medium { background: rgba(245, 158, 11, 0.2) !important; color: #f59e0b; }
.top-pick-card .difficulty-hard { background: rgba(239, 68, 68, 0.2) !important; color: var(--danger); }
.top-pick-card .difficulty-impossible { background: rgba(139, 92, 246, 0.2) !important; color: #8b5cf6; }

.scroll-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    position: sticky;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.scroll-btn:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.scroll-left {
    left: 1rem;
}

.scroll-right {
    right: 1rem;
}

/* Categories Section */
.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.category-card {
    backdrop-filter: var(--blur);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) translateZ(0);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.category-card:hover::before {
    left: 100%;
}

.category-card.Classical { background: rgba(63, 130, 246, 0.2); color: #3f82f6; }
.category-card.Pop { background: rgba(236, 72, 153, 0.2); color: #ec4899; }
.category-card.Gaming { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.category-card.Anime { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.category-card.Movies { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.category-card.Jazz { background: rgba(6, 182, 212, 0.2); color: #06b6d4; }
.category-card.Rock { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.category-card.Electronic { background: rgba(99, 102, 241, 0.2); color: #6366f1; }
.category-card:not(.Classical):not(.Pop):not(.Gaming):not(.Anime):not(.Movies):not(.Jazz):not(.Rock):not(.Electronic) {
    background: var(--bg-card); /* Fallback for "All" */
    color: var(--text-primary);
}

.category-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: currentColor;
}

.category-card.active {
    border-color: currentColor;
    box-shadow: 0 0 0 3px currentColor, var(--shadow-lg);
    transform: translateY(-2px);
}

.category-card .category-name {
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.category-emoji {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.category-card:hover .category-emoji {
    transform: scale(1.1) rotate(5deg);
}

/* Difficulty Filter Section */
.difficulty-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.difficulty-card {
    backdrop-filter: var(--blur);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.difficulty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.difficulty-card:hover::before {
    left: 100%;
}

.difficulty-card.Easy { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.difficulty-card.Medium { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.difficulty-card.Hard { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.difficulty-card.Impossible { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.difficulty-card.All { background: var(--bg-card); color: var(--text-primary); }

.difficulty-card:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: currentColor;
}

.difficulty-card.active {
    border-color: currentColor;
    box-shadow: 0 0 0 3px currentColor, var(--shadow-sm);
    transform: translateY(-2px);
}

.difficulty-card .difficulty-name {
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.difficulty-card:hover .difficulty-name {
    transform: translateY(-2px);
}

/* Sheets Section */
.sheets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.sheet-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.sheet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.sheet-card:hover::before {
    left: 100%;
}

.sheet-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(124, 58, 237, 0.3);
    border-color: var(--accent);
}

.sheet-card > * {
    position: relative;
    z-index: 2;
}

.sheet-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sheet-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-preview {
    flex: 1;
    margin-bottom: 1rem;
    background: var(--bg-glass);
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid var(--border);
}

.notes-preview {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0;
    line-height: 1.4;
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sheet-meta > span:not(.like-count):not(.category-badge):not(.difficulty-badge) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.sheet-meta span {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.sheet-meta .category-badge {
    background: var(--bg-glass); /* Fallback */
}

.sheet-meta .Classical { background: rgba(63, 130, 246, 0.2); color: #3f82f6; }
.sheet-meta .Pop { background: rgba(236, 72, 153, 0.2); color: #ec4899; }
.sheet-meta .Gaming { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.sheet-meta .Anime { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.sheet-meta .Movies { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.sheet-meta .Jazz { background: rgba(6, 182, 212, 0.2); color: #06b6d4; }
.sheet-meta .Rock { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.sheet-meta .Electronic { background: rgba(99, 102, 241, 0.2); color: #6366f1; }

.difficulty-easy { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.difficulty-medium { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.difficulty-hard { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.difficulty-impossible { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) translateZ(0);
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--accent);
}

.modal-content .sheet-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-author {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-content .sheet-meta {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.modal-content .sheet-meta .category-badge,
.modal-content .sheet-meta .difficulty-badge {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.modal-content .sheet-meta .category-badge:hover,
.modal-content .sheet-meta .difficulty-badge:hover {
    transform: scale(1.05);
}

.sheet-notes {
    background: var(--bg-glass);
    color: var(--text-primary);
    padding: 2rem;
    border-radius: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    line-height: 1.7;
    max-height: 50vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.sheet-notes:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-copy, .btn-primary {
    background: var(--accent);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.btn-copy:hover, .btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px) scale(1.02);
}

.btn-delete {
    background: var(--danger);
    color: white;
}

.btn-delete:hover {
    background: #b91c1c;
    color: white;
    transform: translateY(-2px);
}

.staff-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.top-pick-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: none;
    position: relative;
    overflow: hidden;
}

.top-pick-toggle:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.top-pick-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.top-pick-toggle:hover::before {
    left: 100%;
}

.top-pick-toggle label {
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.top-pick-toggle input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: white;
    position: relative;
    z-index: 2;
}

/* Login Modal */
.login-modal .modal-content {
    max-width: 500px;
}

.login-modal h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Custom select dropdown styling */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* Multi-select category dropdown */
#sheetCategory, .category-select {
    min-height: 250px;
    padding: 0.75rem;
    background-image: none;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-glass);
    color: var(--text-primary);
}

#sheetCategory::-webkit-scrollbar, .category-select::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Main page category select */
.category-select {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    font-size: 1rem;
}

.category-select:focus, #sheetCategory:focus {
    outline: none;
    border-color: var(--accent);
}

/* Category option colors */
.category-select option, #sheetCategory option {
    padding: 0.5rem;
    margin: 0.2rem 0;
    border-radius: 6px;
}

.category-select option[value="Classical"], #sheetCategory option[value="Classical"] { background: rgba(63, 130, 246, 0.3); color: #3f82f6; }
.category-select option[value="Pop"], #sheetCategory option[value="Pop"] { background: rgba(236, 72, 153, 0.3); color: #ec4899; }
.category-select option[value="Gaming"], #sheetCategory option[value="Gaming"] { background: rgba(16, 185, 129, 0.3); color: #10b981; }
.category-select option[value="Anime"], #sheetCategory option[value="Anime"] { background: rgba(245, 158, 11, 0.3); color: #f59e0b; }
.category-select option[value="Movies"], #sheetCategory option[value="Movies"] { background: rgba(139, 92, 246, 0.3); color: #8b5cf6; }
.category-select option[value="Jazz"], #sheetCategory option[value="Jazz"] { background: rgba(6, 182, 212, 0.3); color: #06b6d4; }
.category-select option[value="Rock"], #sheetCategory option[value="Rock"] { background: rgba(239, 68, 68, 0.3); color: #ef4444; }
.category-select option[value="Electronic"], #sheetCategory option[value="Electronic"] { background: rgba(99, 102, 241, 0.3); color: #6366f1; }
.category-select option[value="Country"], #sheetCategory option[value="Country"] { background: rgba(217, 119, 6, 0.3); color: #d97706; }
.category-select option[value="RnB"], #sheetCategory option[value="RnB"] { background: rgba(168, 85, 247, 0.3); color: #a855f7; }
.category-select option[value="Rap"], #sheetCategory option[value="Rap"] { background: rgba(239, 68, 68, 0.3); color: #ef4444; }
.category-select option[value="Lo-Fi"], #sheetCategory option[value="Lo-Fi"] { background: rgba(139, 92, 246, 0.3); color: #8b5cf6; }
.category-select option[value="K-Pop"], #sheetCategory option[value="K-Pop"] { background: rgba(236, 72, 153, 0.3); color: #ec4899; }
.category-select option[value="Metal"], #sheetCategory option[value="Metal"] { background: rgba(51, 51, 51, 0.3); color: #999; }
.category-select option[value="Blues"], #sheetCategory option[value="Blues"] { background: rgba(59, 130, 246, 0.3); color: #3b82f6; }
.category-select option[value="Gospel"], #sheetCategory option[value="Gospel"] { background: rgba(251, 191, 36, 0.3); color: #fbbf24; }
.category-select option[value="Latin"], #sheetCategory option[value="Latin"] { background: rgba(234, 88, 12, 0.3); color: #ea580c; }
.category-select option[value="Reggae"], #sheetCategory option[value="Reggae"] { background: rgba(34, 197, 94, 0.3); color: #22c55e; }
.category-select option[value="Folk"], #sheetCategory option[value="Folk"] { background: rgba(133, 77, 14, 0.3); color: #854d0e; }
.category-select option[value="Indie"], #sheetCategory option[value="Indie"] { background: rgba(219, 39, 119, 0.3); color: #db2777; }
.category-select option[value="Hip-Hop"], #sheetCategory option[value="Hip-Hop"] { background: rgba(245, 158, 11, 0.3); color: #f59e0b; }
.category-select option[value="Soul"], #sheetCategory option[value="Soul"] { background: rgba(168, 85, 247, 0.3); color: #a855f7; }
.category-select option[value="Disco"], #sheetCategory option[value="Disco"] { background: rgba(236, 72, 153, 0.3); color: #ec4899; }
.category-select option[value="Funk"], #sheetCategory option[value="Funk"] { background: rgba(234, 88, 12, 0.3); color: #ea580c; }
.category-select option[value="Punk"], #sheetCategory option[value="Punk"] { background: rgba(239, 68, 68, 0.3); color: #ef4444; }
.category-select option[value="Trap"], #sheetCategory option[value="Trap"] { background: rgba(99, 102, 241, 0.3); color: #6366f1; }
.category-select option[value="House"], #sheetCategory option[value="House"] { background: rgba(6, 182, 212, 0.3); color: #06b6d4; }
.category-select option[value="Techno"], #sheetCategory option[value="Techno"] { background: rgba(139, 92, 246, 0.3); color: #8b5cf6; }
.category-select option[value="Dubstep"], #sheetCategory option[value="Dubstep"] { background: rgba(168, 85, 247, 0.3); color: #a855f7; }
.category-select option[value="Trance"], #sheetCategory option[value="Trance"] { background: rgba(99, 102, 241, 0.3); color: #6366f1; }
.category-select option[value="Ambient"], #sheetCategory option[value="Ambient"] { background: rgba(6, 182, 212, 0.3); color: #06b6d4; }
.category-select option[value="Vaporwave"], #sheetCategory option[value="Vaporwave"] { background: rgba(236, 72, 153, 0.3); color: #ec4899; }
.category-select option[value="Synthwave"], #sheetCategory option[value="Synthwave"] { background: rgba(168, 85, 247, 0.3); color: #a855f7; }
.category-select option[value="Chillhop"], #sheetCategory option[value="Chillhop"] { background: rgba(16, 185, 129, 0.3); color: #10b981; }
.category-select option[value="Broadway"], #sheetCategory option[value="Broadway"] { background: rgba(245, 158, 11, 0.3); color: #f59e0b; }
.category-select option[value="Orchestral"], #sheetCategory option[value="Orchestral"] { background: rgba(63, 130, 246, 0.3); color: #3f82f6; }
.category-select option[value="Soundtrack"], #sheetCategory option[value="Soundtrack"] { background: rgba(139, 92, 246, 0.3); color: #8b5cf6; }
.category-select option[value="Video-Game"], #sheetCategory option[value="Video-Game"] { background: rgba(16, 185, 129, 0.3); color: #10b981; }
.category-select option[value="Meme"], #sheetCategory option[value="Meme"] { background: rgba(245, 158, 11, 0.3); color: #f59e0b; }
.category-select option[value="Holiday"], #sheetCategory option[value="Holiday"] { background: rgba(239, 68, 68, 0.3); color: #ef4444; }

/* Category Badge Colors - Applied to all badges */
.category-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    margin: 0.1rem;
}

.category-badge.Classical { background: rgba(63, 130, 246, 0.2); color: #3f82f6; }
.category-badge.Pop { background: rgba(236, 72, 153, 0.2); color: #ec4899; }
.category-badge.Gaming { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.category-badge.Anime { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.category-badge.Movies { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.category-badge.Jazz { background: rgba(6, 182, 212, 0.2); color: #06b6d4; }
.category-badge.Rock { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.category-badge.Electronic { background: rgba(99, 102, 241, 0.2); color: #6366f1; }
.category-badge.Country { background: rgba(217, 119, 6, 0.2); color: #d97706; }
.category-badge.RnB { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.category-badge.Rap { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.category-badge.Lo-Fi { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.category-badge.K-Pop { background: rgba(236, 72, 153, 0.2); color: #ec4899; }
.category-badge.Metal { background: rgba(51, 51, 51, 0.2); color: #999; }
.category-badge.Blues { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.category-badge.Gospel { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.category-badge.Latin { background: rgba(234, 88, 12, 0.2); color: #ea580c; }
.category-badge.Reggae { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.category-badge.Folk { background: rgba(133, 77, 14, 0.2); color: #d97706; }
.category-badge.Indie { background: rgba(219, 39, 119, 0.2); color: #db2777; }
.category-badge.Hip-Hop { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.category-badge.Soul { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.category-badge.Disco { background: rgba(236, 72, 153, 0.2); color: #ec4899; }
.category-badge.Funk { background: rgba(234, 88, 12, 0.2); color: #ea580c; }
.category-badge.Punk { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.category-badge.Trap { background: rgba(99, 102, 241, 0.2); color: #6366f1; }
.category-badge.House { background: rgba(6, 182, 212, 0.2); color: #06b6d4; }
.category-badge.Techno { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.category-badge.Dubstep { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.category-badge.Trance { background: rgba(99, 102, 241, 0.2); color: #6366f1; }
.category-badge.Ambient { background: rgba(6, 182, 212, 0.2); color: #06b6d4; }
.category-badge.Vaporwave { background: rgba(236, 72, 153, 0.2); color: #ec4899; }
.category-badge.Synthwave { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.category-badge.Chillhop { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.category-badge.Broadway { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.category-badge.Orchestral { background: rgba(63, 130, 246, 0.2); color: #3f82f6; }
.category-badge.Soundtrack { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.category-badge.Video-Game { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.category-badge.Meme { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.category-badge.Holiday { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Transpose Badge */
.transpose-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    margin: 0.1rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* More Categories Badge */
.more-badge {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    margin: 0.1rem;
}

/* Filters Section */
.filters-section {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.filters-section h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.filters-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .filters-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.filter-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: -0.25rem;
}

/* Sheets Section */
.sheets-section {
    margin: 2rem 0;
}

.sheets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.sheets-header h2 {
    margin: 0;
    font-size: 1.75rem;
}

.sheet-count-badge {
    background: var(--bg-glass);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.error-message {
    color: var(--danger);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Upload Page */
.upload-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(calc(100% + 2rem));
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 3000;
    max-width: 300px;
    word-wrap: break-word;
    opacity: 0;
    visibility: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.notification.success {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.15);
}

.notification.error {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.15);
}

.notification.info {
    border-color: var(--accent);
    background: rgba(124, 58, 237, 0.15);
}

/* Loading and Empty States */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
}

/* Like Button Styling */
.like-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.like-btn:hover {
    background: rgba(220, 38, 127, 0.1);
    border-color: #dc2626;
    color: #dc2626;
    transform: scale(1.05);
}

.like-btn.liked {
    background: rgba(220, 38, 127, 0.2);
    border-color: #dc2626;
    color: #dc2626;
    cursor: default;
}

.like-btn.liked:hover {
    transform: none;
    background: rgba(220, 38, 127, 0.2);
}

.sheet-likes {
    margin-left: auto;
}

.sheet-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    align-items: center;
}

/* Recent Viewed Styling */
.recent-viewed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.recent-viewed-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.recent-viewed-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.recent-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.recent-meta .category-badge,
.recent-meta .difficulty-badge,
.recent-meta .transpose-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
}

/* Recent viewed category colors */
.recent-meta .Classical { background: rgba(63, 130, 246, 0.2); color: #3f82f6; }
.recent-meta .Pop { background: rgba(236, 72, 153, 0.2); color: #ec4899; }
.recent-meta .Gaming { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.recent-meta .Anime { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.recent-meta .Movies { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.recent-meta .Jazz { background: rgba(6, 182, 212, 0.2); color: #06b6d4; }
.recent-meta .Rock { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.recent-meta .Electronic { background: rgba(99, 102, 241, 0.2); color: #6366f1; }
.recent-meta .Country { background: rgba(217, 119, 6, 0.2); color: #d97706; }
.recent-meta .RnB { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.recent-meta .Rap { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.recent-meta .Lo-Fi { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.recent-meta .K-Pop { background: rgba(236, 72, 153, 0.2); color: #ec4899; }
.recent-meta .Metal { background: rgba(51, 51, 51, 0.2); color: #999; }
.recent-meta .Blues { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.recent-meta .Gospel { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.recent-meta .Latin { background: rgba(234, 88, 12, 0.2); color: #ea580c; }
.recent-meta .Reggae { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.recent-meta .Folk { background: rgba(133, 77, 14, 0.2); color: #854d0e; }
.recent-meta .Indie { background: rgba(219, 39, 119, 0.2); color: #db2777; }
.recent-meta .Hip-Hop { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.recent-meta .Soul { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.recent-meta .Disco { background: rgba(236, 72, 153, 0.2); color: #ec4899; }
.recent-meta .Funk { background: rgba(234, 88, 12, 0.2); color: #ea580c; }
.recent-meta .Punk { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.recent-meta .Trap { background: rgba(99, 102, 241, 0.2); color: #6366f1; }
.recent-meta .House { background: rgba(6, 182, 212, 0.2); color: #06b6d4; }
.recent-meta .Techno { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.recent-meta .Dubstep { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.recent-meta .Trance { background: rgba(99, 102, 241, 0.2); color: #6366f1; }
.recent-meta .Ambient { background: rgba(6, 182, 212, 0.2); color: #06b6d4; }
.recent-meta .Vaporwave { background: rgba(236, 72, 153, 0.2); color: #ec4899; }
.recent-meta .Synthwave { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.recent-meta .Chillhop { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.recent-meta .Broadway { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.recent-meta .Orchestral { background: rgba(63, 130, 246, 0.2); color: #3f82f6; }
.recent-meta .Soundtrack { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.recent-meta .Video-Game { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.recent-meta .Meme { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.recent-meta .Holiday { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Recent viewed difficulty colors */
.recent-meta .difficulty-easy { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.recent-meta .difficulty-medium { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.recent-meta .difficulty-hard { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.recent-meta .difficulty-impossible { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }

.recent-author {
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Terms Modal Styling */
.terms-modal .modal-content {
    max-width: 90%;
    width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.terms-modal-content {
    padding: 0 !important;
}

.terms-container {
    padding: 2rem;
    background: none;
    border: none;
    box-shadow: none;
    margin: 0;
}

.terms-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.025em;
}

.terms-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.highlight-date {
    color: var(--accent);
    font-weight: 600;
}

.terms-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.terms-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.data-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.data-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.data-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.data-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.data-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.data-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.protection-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.protection-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.protection-item:hover {
    transform: translateX(5px);
    border-color: var(--accent);
}

.protection-icon {
    font-size: 1.5rem;
    min-width: 2rem;
}

.contact-section {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(245, 158, 11, 0.1));
    border-color: var(--accent);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    border-color: var(--accent);
}

.contact-icon {
    font-size: 1.5rem;
    min-width: 2rem;
}

.contact-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.back-to-site {
    text-align: center;
    margin-top: 3rem;
}

.back-to-site .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-link {
        flex: 1;
        text-align: center;
        padding: 0.5rem;
        font-size: 1rem;
    }

    .top-picks-scroll {
        gap: 1rem;
    }

    .top-pick-card {
        flex: 0 0 250px;
    }

    .scroll-btn {
        display: none;
    }

    .categories-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }

    .difficulty-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .sheets-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.5rem;
        max-width: 95%;
    }

    .modal-content .sheet-title {
        font-size: 2rem;
    }

    .staff-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-copy, .btn-delete {
        width: 100%;
    }

    .notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        transform: translateY(calc(100% + 2rem));
        opacity: 0;
        visibility: hidden;
    }

    .notification.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .upload-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .terms-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .terms-title {
        font-size: 2rem;
    }

    .data-collection-grid {
        grid-template-columns: 1fr;
    }

    .protection-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .terms-section {
        padding: 1.5rem;
    }
}

/* Loading States */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
}

.loading-state::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.75rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--text-primary);
}

.error-state h3 {
    color: var(--danger);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.error-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.retry-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.retry-btn:active {
    transform: translateY(0);
}

.upload-link-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.upload-link-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Enhanced Notification Styles */
.notification {
    cursor: pointer;
    user-select: none;
}

.notification.success {
    border-left: 4px solid var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.notification.error {
    border-left: 4px solid var(--danger);
    background: rgba(220, 38, 38, 0.1);
}

.notification.warning {
    border-left: 4px solid #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.notification.info {
    border-left: 4px solid #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

/* Improved Like Button */
.like-btn {
    position: relative;
    overflow: hidden;
}

.like-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(220, 38, 38, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.like-btn:hover::before,
.like-btn.liked::before {
    width: 100%;
    height: 100%;
}

.like-btn:active {
    transform: scale(0.95);
}

/* Loading shimmer effect */
.shimmer {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Smooth transitions for category and difficulty cards */
.category-card,
.difficulty-card {
    transition: all 0.2s ease;
}

.category-card:hover,
.difficulty-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.category-card.active,
.difficulty-card.active {
    box-shadow: 0 0 0 2px var(--accent);
}

/* Sheet card hover improvements */
.sheet-card {
    transition: all 0.2s ease;
}

.sheet-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.top-pick-card {
    transition: all 0.2s ease;
}

.top-pick-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Draft Indicator */
.draft-indicator {
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 0.9rem;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Character Counter */
.character-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.character-counter.warning {
    color: #f59e0b;
    font-weight: 600;
}

.character-counter.over-limit {
    color: var(--danger);
    font-weight: 700;
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}


