@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e63946;      /* Passionate red - CTAs, brand */
    --secondary-color: #1d3557;    /* Navy - text, headers */
    --accent-color: #f4a261;       /* Warm orange - highlights, energy */
    --accent-teal: #2a9d8f;        /* Teal - success states */
    --background-warm: #fefcfb;    /* Warm white */
    --dark-color: #1d3557;
    --text-color: #2d3748;         /* Softer dark gray */

    /* Dance style colors */
    --salsa-color: #e63946;
    --bachata-color: #9333ea;
    --kizomba-color: #1d3557;
    --zouk-color: #2a9d8f;

    /* Consistent spacing scale (4px base) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #fefcfb 0%, #fef3e2 100%);
    min-height: 100vh;
}

h1, h2, h3, .detail-title, .festival-name {
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #d62828 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--box-shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
}

/* Compact navbar styles: keep navbar narrower and spacing tighter */
.top-nav .container { display: flex; justify-content: space-between; align-items: center; gap: 8px; max-width: 1100px; }
.top-nav .brand { font-weight: 700; font-size: 0.95rem; color: white; text-decoration: none; margin-right: 8px; }
.top-nav .nav-left { display: flex; gap: 4px; flex: 1 1 auto; flex-wrap: wrap; align-items: center; }
.top-nav .nav-left .nav-link { margin-right: 6px; font-size: 0.88rem; padding: 4px 10px; }
.top-nav .nav-right { flex: 0 0 auto; display: flex; gap: 4px; align-items: center; }
.top-nav .nav-right .notification-bell { margin-right: 0; display: inline-flex; align-items: center; justify-content: center; padding: 2px; }
.top-nav .nav-right .notification-bell .bell-icon { font-size: 1rem; line-height: 1; }
.top-nav .nav-right .user-display { margin-left: 0; padding-left: 8px; }

/* Notification badge tighter layout */
.notification-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; font-size: 0.7rem; border-radius: 8px; margin-left: -8px; transform: translateX(-4px); }

/* Responsive: on narrow screens allow the navbar to grow to multiple rows
   instead of hiding links or showing a horizontal scrollbar. This keeps
   important links (Shops, Shoes) visible and accessible. */
@media (max-width: 900px) {
    .top-nav .container { align-items: flex-start; }

    .top-nav .nav-left {
        /* Allow items to wrap to new lines rather than forcing a single row */
        flex-wrap: wrap;
        overflow-x: visible;
        -webkit-overflow-scrolling: auto;
        gap: 6px;
    }

    .top-nav .nav-left a.nav-link {
        /* Let link text wrap to multiple lines if needed */
        white-space: normal;
    }

    /* Make the right side move onto its own row so it doesn't overlap links */
    .top-nav .nav-right {
        flex-basis: 100%;
        justify-content: flex-end;
        margin-top: 6px;
    }
}

/* Ensure week navigator (events page) stays visible even when navbar grows
   taller on narrow screens. Make it sticky below the top-nav and ensure
   controls remain tappable. */
.week-navigator {
    position: sticky;
    top:  calc( (var(--top-nav-height, 64px)) + 8px );
    z-index: 900;
}

.week-navigator button {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .week-navigator { gap: 8px; padding: 12px; }
    .week-display { min-width: 160px; }
}

/* Footer styles */
.site-footer { padding: 0.6rem 0; color: #555; background: transparent; border-top: 1px solid #eee; }
.site-footer .footer-container { display:flex; justify-content:center; align-items:center; gap:8px; }
.brand-footer { font-weight:700; color: var(--primary-color); }

/* Footer logo sizing */
.site-footer .footer-logo { width:120px; height:auto; display:block; }
.site-footer { padding: 1rem 0; }


/* Main Content */
main {
    padding: 0.5rem 0;
}

.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.welcome-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    font-size: 1.2rem;
    color: #666;
}

/* Add Festival CTA Section */
.add-festival-cta {
    margin-top: 2rem;
}

.btn-add-festival {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: var(--border-radius);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-festival:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
    background: #d62828;
}

.add-festival-prompt-main {
    padding: 2rem;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border-radius: var(--border-radius);
    border: 3px solid #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.add-festival-prompt-main p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.add-festival-prompt-main p:first-child {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-buttons button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 200px;
}

/* Search Section */
.search-section {
    margin-bottom: 0.75rem;
}

.search-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: white;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.search-controls input,
.search-controls select,
.btn-filter {
    flex: 1;
    min-width: 150px;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

/* Compact search input for festivals only — keeps buttons visible */
.search-controls input.compact-input {
    flex: none;
    width: 300px;
    max-width: 48%;
}

@media (max-width: 720px) {
    .search-controls input.compact-input {
        width: 100%;
        flex: 1;
    }
}

.btn-filter {
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    max-width: 200px;
    transition: all 0.3s;
}

.btn-filter:hover {
    background: #d62828;
    transform: translateY(-2px);
}

.add-festival-btn {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    display: inline-block;
}

.add-festival-btn:hover {
    background: #d62828;
    color: white;
}

.search-controls input:focus,
.search-controls select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}


/* Add Festival/Artist Section */
.add-section {
    text-align: center;
    margin: 0px 0;
}

.add-section-hidden {
    display: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--border-radius, 8px);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-primary:hover {
    background: #d62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Blue primary variant */
.btn-primary-blue {
    background: #2563eb; /* blue-600 */
    color: white;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--border-radius, 8px);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-primary-blue:hover {
    background: #1d4ed8; /* blue-700 */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Festivals List */
.festivals-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: white;
    border-radius: var(--border-radius);
    padding: var(--space-sm);
    box-shadow: var(--box-shadow);
    max-width: 960px;
    margin: 0 auto;
}

.festival-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.15s ease;
    cursor: pointer;
    border-radius: 4px;
}

.festival-row:hover {
    background-color: #fff5f5;
    box-shadow: 0 1px 4px rgba(230, 57, 70, 0.1);
}

.festival-row:last-child {
    border-bottom: none;
}

.festival-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
}

.festival-name {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 160px;
}

.festival-meta {
    color: #666;
    font-size: 0.8rem;
    white-space: nowrap;
}

.festival-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.festival-link:hover {
    text-decoration: underline;
}

.festival-row-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

/* Festival promo badge in list */
.festival-promo {
    background: #ffbf00;
    color: #1a1a1a;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-left: 12px;
    flex-shrink: 0;
}

/* Mode chooser modal styles */
.modal.hidden { display: none; }
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1200; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.modal-content { position: relative; width: 360px; max-width: calc(100% - 32px); margin: 8% auto; background: white; border-radius: 8px; padding: 18px; box-shadow: var(--box-shadow); z-index: 2; }
.modal-content h3 { margin-bottom: 12px; color: var(--primary-color); }
.mode-options { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.mode-options label { display:flex; gap:8px; align-items:center; font-weight:600; }
.modal-actions { display:flex; gap:8px; justify-content:flex-end; }

.btn-list-edit,
.btn-list-delete {
    padding: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, transform 0.15s ease;
    background: transparent;
    color: inherit;
}

.btn-list-edit svg, .btn-list-delete svg { display: block; width: 16px; height: 16px; }

.btn-list-edit:hover, .btn-list-delete:hover { transform: translateY(-1px); }

/* Interest button - Fire icon */
.btn-interest {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-interest .interest-icon {
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-interest:not(.interested) .interest-icon {
    filter: grayscale(100%) opacity(0.4);
}

.btn-interest:hover .interest-icon {
    transform: scale(1.3);
}

.btn-interest:hover:not(.interested) .interest-icon {
    filter: grayscale(0%) opacity(0.7);
}

.btn-interest:active .interest-icon {
    transform: scale(0.95);
}

.btn-interest.interested .interest-icon {
    animation: flame-flicker 0.8s ease-in-out infinite alternate;
}

@keyframes flame-flicker {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-large {
    max-width: 700px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #000;
}

/* Auth Tabs */
#authTabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Forms */
.auth-form,
#festivalForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Filter Modal Specific Styles */
.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.filter-actions button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

/* Google Sign-In Styling */
.google-signin-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span {
    padding: 0 1rem;
    color: #666;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #666;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.empty-state h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Add Festival Prompt */
.add-festival-prompt {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(230, 57, 70, 0.1);
    border-radius: var(--border-radius);
    border: 2px dashed var(--primary-color);
    display: none; /* Deprecated - using new CTA */
}

.add-festival-prompt p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.add-festival-prompt a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.add-festival-prompt a:hover {
    text-decoration: underline;
}

/* Floating Add Button */
.floating-add-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    transition: all 0.2s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(230, 57, 70, 0.6); }
}

.floating-add-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.6);
    animation: none;
}

.floating-add-btn span {
    line-height: 1;
    font-weight: 300;
}

/* Success Toast */
.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s;
}

.success-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.top-nav {
    background: linear-gradient(135deg, #e63946 0%, #f4a261 50%, #ffd166 100%);
    box-shadow: 0 2px 10px rgba(230, 57, 70, 0.3);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-left {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-display {
    /* Match nav button/link appearance: inherit color and sizing
       so the username doesn't stand out with a different background */
    color: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
}

.user-link {
    color: white;
    text-decoration: none;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-weight: 600;
}

/* Nav Brand */
.nav-brand {
    color: white;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.nav-brand:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Nav Divider: hide separators */
.nav-divider {
    display: none;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.nav-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-dropdown-btn.active {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 8px;  /* Creates hover bridge */
    z-index: 1001;
}

.nav-dropdown-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;  /* Invisible hover bridge */
}

.nav-dropdown-content-inner {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    overflow: hidden;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
    animation: dropdownFade 0.2s ease;
}

/* Allow programmatic (click) open by toggling .open on the .nav-dropdown */
.nav-dropdown.open .nav-dropdown-content {
    display: block;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown-content-inner .nav-dropdown-link {
    display: block;
    padding: 10px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.nav-dropdown-content-inner .nav-dropdown-link:hover {
    background: #fff5f5;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-dropdown-content-inner .nav-dropdown-link.active {
    background: #fff5f5;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* Make sure button elements styled as nav-dropdown-link match anchors */
.nav-dropdown-content-inner button.nav-dropdown-link {
    background: transparent;
    border: none;
    padding: 10px 16px;
    text-align: left;
    width: 100%;
    display: block;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.nav-dropdown-content-inner button.nav-dropdown-link:hover {
    background: #fff5f5;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-logout-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 10px;
    transition: all 0.2s ease;
}

.nav-logout-btn:hover {
    background: white;
    transform: translateY(-1px);
}

/* Notification Bell */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 6px 10px;
    margin-right: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bell-icon {
    font-size: 1.2rem;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown.show {
    display: block;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #333;
}

.notification-header .view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.notification-list {
    max-height: 280px;
    overflow-y: auto;
}

/* User menu dropdown */
.user-menu-button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px 8px;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    z-index: 1000;
    min-width: 160px;
    overflow: hidden;
}

.user-menu-dropdown.show {
    display: block;
}

.user-menu-item {
    display: block;
    padding: 10px 12px;
    color: var(--text-color);
    text-decoration: none;
    border: none;
    width: 100%;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.user-menu-item:hover {
    background: #f5f7fb;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #f0f4ff;
}

.notification-item.unread:hover {
    background: #e8edff;
}

.notification-item-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.notification-item-message {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.notification-item-time {
    color: #999;
    font-size: 0.75rem;
}

.notification-empty {
    padding: 30px 16px;
    text-align: center;
    color: #999;
}

.notification-footer {
    padding: 10px 16px;
    border-top: 1px solid #eee;
    text-align: center;
}

.mark-read-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

.mark-read-btn:hover {
    text-decoration: underline;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    .welcome-section h2 {
        font-size: 2rem;
    }

    .festival-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .festival-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .search-controls {
        flex-direction: column;
    }

    .search-controls input,
    .search-controls select,
    .search-controls button {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    .floating-add-btn {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Artist Selection in Modal */
.artists-selection-modal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.artist-checkbox-modal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.artist-checkbox-modal:hover {
    background: #f0f0f0;
}

.artist-checkbox-modal input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.info-text {
    text-align: center;
    padding: 20px;
    color: #666;
}
