/* CSS Variables */
:root {
    --theme-primary: #2a1b3d;
    --theme-secondary: #5c2a9d;
    --theme-accent: #ff69b4;
    --theme-text: #e6e6fa;
    --theme-background: #1a1a2e;
    --theme-darker: #231942;
    --sidebar-width: 70px;
    --theme-muted: #b8b8e6;
    --theme-warning: #ffd700;
    --theme-danger-red: #ff4444;
    --theme-secondary-rgb: 92, 42, 157;
    --theme-success: #28a745;
    --theme-success-rgb: 40, 167, 69;
    --theme-info: #0dcaf0;
    --theme-info-rgb: 13, 202, 240;
    --theme-warning-rgb: 255, 193, 7;
    --bs-gray-600: #6c757d;
    --bs-gray-600-rgb: 108, 117, 125;
    --bs-gray-300: #dee2e6;
    --bs-gray-300-rgb: 222, 226, 230;
    --bs-danger: #dc3545;
    --bs-danger-rgb: 220, 53, 69;
    --theme-text-rgb: 230, 230, 250;
    --theme-accent-rgb: 255, 105, 180;
    
    /* Event-specific variables */
    --event-card-background: var(--theme-primary);
    --event-title-text-color: var(--theme-text);
    --event-text-color: var(--theme-text);
    --event-date-color: var(--theme-muted);
    --event-overlay-background: #000000;
    --event-overlay-text-color: #ffffff;
}

/* General Styling */
.content {
    min-height: 100vh;
    width: 100%;
    overflow: visible;
    transition: all 0.35s ease-in-out;
    background-color: var(--theme-background); /* Dark blue background */
    color: var(--theme-text); /* Light purple text */
    padding: 0; /* Remove default padding */
}

::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}

/* Wrapper */
.wrapper {
    display: flex;
}

/* Sidebar */
#sidebar {
    width: var(--sidebar-width, 70px);
    min-width: var(--sidebar-width, 70px);
    z-index: 1000;
    transition: all .25s ease-in-out;
    background-color: var(--theme-background);
    color: var(--theme-text);
    display: flex;
    flex-direction: column;
}

#sidebar.expand {
    width: 260px;
    min-width: 260px;
}

.btn { 
    min-width: unset;
}
.toggle-btn {
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1rem 1.5rem;
}

.toggle-btn i {
    font-size: 1.5rem;
    color: var(--theme-text);
}

.sidebar-logo {
    margin: auto 0;
}

.sidebar-logo a {
    color: var(--theme-text);
    font-size: 1.15rem;
    font-weight: 600;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span {
    display: none;
}

.sidebar-nav {
    padding: 2rem 0;
    flex: 1 1 auto;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: var(--theme-text);
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.sidebar-link i {
    font-size: 1.1rem;
    margin-right: .75rem;
}

a.sidebar-link:hover {
    background-color: var(--theme-secondary);
    border-left: 3px solid var(--theme-accent);
}

.sidebar-item {
    position: relative;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: var(--sidebar-width, 70px);
    background-color: var(--theme-background);
    padding: 0;
    min-width: 15rem;
    display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
    display: block;
    max-height: 15em;
    width: 100%;
    opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
    border-color: var(--theme-text);
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
    border-color: var(--theme-text);
}

/* Additional Styles */
#spots {
    scroll-behavior: auto;
}

/* Custom Bootstrap Overrides */
body {
    background-color: var(--theme-background);
    color: var(--theme-text);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Dark Theme Utility Classes */
.bg-theme-dark { background-color: var(--theme-background); }

.bg-theme-darker { background-color: var(--theme-darker); }

.bg-theme-primary { background-color: var(--theme-primary); }

.bg-theme-accent { background-color: var(--theme-secondary); }

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

.text-theme-accent { color: var(--theme-accent); }

/* Override Bootstrap background classes
   Note: We scope these overrides under body/.container-fluid to reduce global impact.
   Intentional: align Bootstrap utility colors to dark theme palette. */
body .bg-light,
.container-fluid .bg-light {
    background-color: var(--theme-primary);
}

body .bg-dark,
.container-fluid .bg-dark {
    background-color: var(--theme-background);
}

body .bg-white,
.container-fluid .bg-white {
    background-color: var(--theme-background);
}

/* Override Bootstrap text colors
   Rationale: ensure text utilities remain readable on dark backgrounds. */
body .text-dark,
.container-fluid .text-dark {
    color: var(--theme-text);
}

body .text-muted,
.container-fluid .text-muted {
    color: var(--theme-muted);
}

/* Container and Content Layout */
.container-fluid .content {
    padding: 0;
}

.events-section .container {
    max-width: 100%;
    padding: 0 1rem;
}

.events-section .row { margin: 0 -0.5rem; }

.events-section .col { padding: 0.5rem; }

/* Event Card Styles */
.event-card {
    background: var(--event-card-background);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.event-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card .card-header {
    padding: 0;
    border-bottom: none;
    background-color: var(--event-card-background);
}

/* Event date overlay in image corner */
.event-date-overlay { 
    background-color: var(--event-overlay-background);
    color: var(--event-overlay-text-color);
    border-bottom-right-radius: 8px; 
    opacity: 0.95;
}
.event-date-overlay .small { 
    line-height: 1;
    color: var(--event-overlay-text-color);
}

.event-card .card-body { 
    padding: 1rem;
    background-color: var(--event-card-background);
}

.event-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--event-title-text-color);
}

.event-card .card-text { color: var(--event-text-color); }

.event-card .event-date, 
.event-card .event-venue { color: var(--event-date-color); }

/* Badge Overrides */
body .badge.bg-success { background-color: var(--theme-accent); color: var(--theme-background); }
body .badge.bg-secondary { background-color: var(--theme-secondary); color: var(--theme-text); }
body .badge.bg-warning { background-color: var(--theme-warning); color: var(--theme-background); }
body .badge.bg-info { background-color: var(--theme-text); color: var(--theme-background); }
body .badge.bg-danger { background-color: var(--theme-danger-red); color: var(--theme-background); }
body .badge.bg-primary { background-color: var(--theme-secondary); color: var(--theme-text); }

/* Dropdown Overrides */
body .dropdown-menu { background-color: var(--theme-darker); border: 1px solid var(--theme-secondary); }
body .dropdown-menu .dropdown-item { color: var(--theme-text); }
body .dropdown-menu .dropdown-item:hover,
body .dropdown-menu .dropdown-item:focus { background-color: var(--theme-secondary); color: var(--theme-accent); }
body .dropdown-menu .dropdown-divider { border-top: 1px solid var(--theme-secondary); }

/* Button Overrides */
body .btn-secondary { background-color: var(--theme-secondary); border-color: var(--theme-accent); color: var(--theme-text); }
body .btn-secondary:hover,
body .btn-secondary:focus { background-color: var(--theme-accent); border-color: var(--theme-secondary); color: var(--theme-background); }

/* Remove global modal overrides; prefer using existing theme utility classes in templates */

/* Consolidated Mobile Responsiveness */
@media (max-width: 768px) {
    /* Event card styles */
    .event-card { 
        max-width: none; 
        border-radius: 8px;
        margin-bottom: 0.75rem;
    }
    
    /* Container padding adjustments */
    .events-section .container, 
    .events-section .container-fluid { 
        padding-left: 0.25rem; 
        padding-right: 0.25rem; 
    }
    
    /* Remove border and padding from main content area on mobile */
    .container-fluid .content.border-theme {
        border: none;
        padding: 0;
    }
    
    /* Ensure full width utilization */
    .container-fluid { padding-left: 0; padding-right: 0; }
    
    /* Hero section adjustments */
    .hero-content h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    
    .feature-card { margin-bottom: 2rem; }
    
    /* Performer image adjustments */
    .performer-image-container { height: 120px; }
    .performer-image-container img { height: 120px; }
    .placeholder-image { height: 120px; }
    
    /* Floating search bar on mobile */
    #event-search {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        z-index: 1020;
        background-color: rgba(26, 26, 46, 0.95);
        padding: 0.5rem 0.25rem;
        margin: 0;
        border-bottom: 1px solid var(--theme-secondary);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    /* Add padding to the events content to account for fixed search bar */
    .events-section .tab-content { padding-top: 60px; }
}

/* Avatar stack for lineup */
.avatar-stack .avatar { border: 2px solid var(--theme-primary); border-radius: 50%; overflow: hidden; }

/* Event header date column */
.event-date-col { width: var(--sidebar-width, 70px); min-width: var(--sidebar-width, 70px); background-color: var(--theme-darker); }

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(42, 27, 61, 0.8), rgba(26, 26, 46, 0.8)),
                url('../images/stage-hero.webp') center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--theme-text);
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--theme-accent);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    color: var(--theme-text);
}

.microphone-card {
    background-color: var(--theme-secondary);
    background: linear-gradient(rgba(var(--theme-secondary-rgb), 0.5), rgba(var(--theme-secondary-rgb), 0.5)), url('../images/microphone-hero.webp') center/cover;
    color: white;
}

.producer-card {
    background-color: var(--theme-secondary);
    background: linear-gradient(rgba(var(--theme-secondary-rgb), 0.5), rgba(var(--theme-secondary-rgb), 0.5)), url('../images/producer-hero.webp') center/cover;
    color: var(--theme-text);
}

.venue-card {
    background-color: var(--theme-secondary);
    background: linear-gradient(rgba(var(--theme-secondary-rgb), 0.5), rgba(var(--theme-secondary-rgb), 0.5)), url('../images/venue-hero.webp') center/cover;
    color: var(--theme-text);
}
    
/* Feature Cards */
.user-types-section { padding: 4rem 0; background-color: var(--theme-background); }

.feature-card {
    background: var(--theme-primary);
    border: 1px solid var(--theme-secondary);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--theme-secondary-rgb), 0.2);
}

.feature-card:hover { transform: translateY(-5px); }

.icon-wrapper { width: 80px; height: 80px; margin: 0 auto 1.5rem; }
.icon-wrapper img { width: 100%; height: 100%; object-fit: contain; }

.feature-list { padding-left: 0; margin: 1.5rem 0; }

.feature-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li:before { content: "•"; color: var(--theme-accent); position: absolute; left: 0; }

/* Events Section */
.events-section { padding: 4rem 0; }

.events-section h2 { text-align: center; margin-bottom: 2rem; }

.event-date, .event-venue { color: var(--theme-muted); margin-bottom: 0.5rem; }


/* Extra mobile optimizations for smaller screens */
@media (max-width: 576px) {
    /* Even tighter spacing on small mobile screens */
    .events-section .container-fluid { padding: 0 0.125rem; }
    
    /* Tighter search form */
    #event-search { padding: 0.25rem 0.125rem; margin: 0; }
    
    /* Adjust event card spacing */
    .row.g-2 { --bs-gutter-x: 0.25rem; --bs-gutter-y: 0.25rem; }
    
    /* Remove any remaining margins from events section rows only */
    .events-section .row { margin-left: 0; margin-right: 0; }
    
    /* Optimize input group on mobile */
    #event-search .input-group .form-control { font-size: 16px; }
    #event-search .input-group .btn { padding: 0.375rem 0.5rem; font-size: 0.875rem; }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-card { animation: fadeIn 0.5s ease-out forwards; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }

/* Performer Card Styles */
.performer-image-container { height: 150px; width: 100%; overflow: hidden; }

.performer-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.placeholder-image { background-color: var(--theme-secondary); color: var(--theme-text); height: 150px; width: 100%; }

.placeholder-image .display-4 { font-size: 2rem; }

.card { height: auto; margin-bottom: 1rem; }

.card-body { padding: 1rem; }

.card-text { margin-bottom: 0.5rem; }

/* Ensure buttons stay at bottom */
.card-body .mt-auto { margin-top: 1rem; }

/* Dropdown positioning */
.navbar .dropdown { position: relative; }
.navbar .dropdown-menu { position: absolute; top: 100%; z-index: 1000; }
.navbar .dropdown-menu-end { right: 0; }

/* Ensure navbar items are properly spaced and aligned */
.navbar .nav-item { position: relative; display: flex; align-items: center; }

/* Ensure proper spacing between navbar elements */
.navbar .me-2 { margin-right: 0.75rem; }

/* Add padding to bottom of page on mobile to prevent content from being hidden behind fixed nav */
@media (max-width: 767.98px) {
    body { padding-bottom: var(--sidebar-width, 70px); }
    .content { overflow-y: auto; -webkit-overflow-scrolling: touch; }
}

/* Spot management buttons */
.btn-group-sm .btn { padding: 0.25rem 0.5rem; font-size: 0.875rem; line-height: 1; }
.btn-group-sm .btn i { font-size: 1rem; vertical-align: middle; }

/* Card body padding for spots */
.spot-card .card-body { padding: 0.75rem; }

/* Ensure buttons don't wrap */
.btn-group.flex-nowrap { white-space: nowrap; }

/* Ensure icons are centered */
.lni { display: inline-flex; align-items: center; justify-content: center; }

/* Dark theme LineIcon colors */
body .bg-theme-dark .lni,
body .form-section .lni,
.content .bg-theme-dark .lni,
.content .form-section .lni { color: var(--theme-muted); }

body .bg-theme-dark .input-group .form-control:focus + .lni,
body .form-section .input-group .form-control:focus + .lni,
.content .bg-theme-dark .input-group .form-control:focus + .lni,
.content .form-section .input-group .form-control:focus + .lni { color: var(--theme-accent); }

/* Spot action buttons */
.card .btn-sm { min-width: 0; width: auto; font-size: 0.75rem; padding: 0.25rem; }
.card .btn-sm i { font-size: 1rem; margin-bottom: 0.125rem; }
.card .btn-sm small { font-size: 0.65rem; line-height: 1; white-space: nowrap; }

@media (max-width: 576px) {
    .card .btn-sm { padding: 0.15rem; }
    .card .btn-sm i { font-size: 0.875rem; }
    .card .btn-sm small { font-size: 0.6rem; }
}

/* Form Styling */
.form-section { background: var(--theme-primary); border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); margin-bottom: 2rem; }

.form-section-header { padding: 1.5rem; border-bottom: 1px solid var(--theme-secondary); }

.form-section-body { padding: 1.5rem; }

/* Dark-themed Form Controls for main site - using higher specificity instead of !important */
body .bg-theme-dark .form-control,
body .form-section .form-control,
.content .bg-theme-dark .form-control,
.content .form-section .form-control { background-color: var(--theme-background); border: 2px solid var(--theme-secondary); color: var(--theme-text); }

body .bg-theme-dark .form-control:focus,
body .form-section .form-control:focus,
.content .bg-theme-dark .form-control:focus,
.content .form-section .form-control:focus { background-color: var(--theme-background); border-color: var(--theme-accent); color: var(--theme-text); box-shadow: 0 0 0 0.2rem rgba(255,105,180,0.25); }

.bg-theme-dark textarea.form-control,
.form-section textarea.form-control { min-height: 120px; }

/* Form Labels */
.form-label { color: var(--theme-text); }

.required-field .form-label::after { content: " *"; color: var(--theme-accent); }

/* Accordion Styling */
.form-accordion .accordion-button { background-color: var(--theme-primary); color: var(--theme-text); font-weight: 500; padding: 1rem 1.5rem; }
.form-accordion .accordion-button:not(.collapsed) { background-color: var(--theme-secondary); color: var(--theme-text); }
.form-accordion .accordion-button:focus { box-shadow: none; border-color: var(--theme-secondary); }

/* Optional Fields Section */
.optional-fields { background-color: var(--theme-background); border-radius: 6px; padding: 1rem; }
.optional-fields .form-label { color: var(--theme-text); }

/* Help Text */
.form-text { font-size: 0.875rem; color: var(--theme-muted); margin-top: 0.25rem; }

/* File Input Styling */
input[type="file"].form-control { padding: 0.5rem; line-height: 1.5; }

/* Social Media Fields */
.social-media-fields .form-control { padding-left: 2.5rem; background-repeat: no-repeat; background-position: 0.75rem center; background-size: 1.25rem; transition: all 0.2s ease; }

.social-media-fields .input-group { position: relative; }


.social-media-fields .input-group .form-control { padding-left: 3rem; }


/* Platform specific colors on hover */
.social-media-fields .facebook-field:focus { border-color: #4267B2; box-shadow: 0 0 0 0.2rem rgba(66, 103, 178, 0.15); }
.social-media-fields .instagram-field:focus { border-color: #E1306C; box-shadow: 0 0 0 0.2rem rgba(225, 48, 108, 0.15); }
.social-media-fields .twitter-field:focus { border-color: #1DA1F2; box-shadow: 0 0 0 0.2rem rgba(29, 161, 242, 0.15); }
.social-media-fields .youtube-field:focus { border-color: #FF0000; box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.15); }
.social-media-fields .spotify-field:focus { border-color: #1DB954; box-shadow: 0 0 0 0.2rem rgba(29, 185, 84, 0.15); }

/* Section headers */
.social-media-fields .section-header { color: var(--theme-muted); font-size: 1rem; font-weight: 500; padding-bottom: 0.5rem; margin: 1.5rem 0 1rem; border-bottom: 1px solid var(--bs-gray-300); }
.social-media-fields .section-header:first-child { margin-top: 0; }

/* Form field icons */
.input-group { position: relative; }
.input-group i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); z-index: 4; color: var(--theme-muted); font-size: 1.1rem; }

/* Dark theme icon colors */
body .bg-theme-dark .input-group i,
body .form-section .input-group i,
.content .bg-theme-dark .input-group i,
.content .form-section .input-group i { color: var(--theme-muted); }

.input-group .form-control { padding-left: 3rem; }
.input-group .form-control:focus + i { color: var(--theme-accent); }

/* Dark theme focused icon colors */
body .bg-theme-dark .input-group .form-control:focus + i,
body .form-section .input-group .form-control:focus + i,
.content .bg-theme-dark .input-group .form-control:focus + i,
.content .form-section .input-group .form-control:focus + i { color: var(--theme-accent); }

/* Section headers with icons */
h4 i, .accordion-button i { color: var(--theme-accent); }

.accordion-button:not(.collapsed) i { color: white; }

/* Textarea specific styling */
.input-group textarea.form-control { padding-top: 2rem; }
.input-group textarea.form-control + i { top: 1.5rem; }

/* File input specific styling */
.input-group input[type="file"].form-control { padding-left: 3rem; }

/* Spot List Styles */
.spot-table td { vertical-align: middle; }

.spot-card { background-color: var(--theme-primary); border: 1px solid var(--theme-secondary); transition: transform 0.2s ease; position: relative; background-size: cover; background-position: center; }
.spot-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--theme-background); opacity: 0.85; }
.spot-card > * { position: relative; }
.spot-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(255,105,180,0.2); }
.spot-card .card-header { background-color: rgba(128, 0, 128, 0.05); border-bottom: 1px solid var(--theme-secondary); }
.spot-card .btn-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Spot status badges */
.badge { padding: 0.5em 0.75em; }

/* Badge, Dropdown, and Button Overrides consolidated from duplicates below */

/* Responsive adjustments for spots */
@media (max-width: 767.98px) {
    .spot-card { margin-bottom: 1rem; }
    .spot-card .card-body { padding: 1rem; }
    .spot-card .btn-group { justify-content: flex-start; }
}

/* Spot action buttons */
.spot-card .btn-sm { padding: 0.25rem 0.75rem; font-size: 0.875rem; white-space: nowrap; }

/* Spot status display */
.spots-status { min-width: 200px; padding: 0.5rem; }

.spots-grid { display: flex; align-items: center; gap: 0.5rem; justify-content: center; }

.spot-item { display: flex; flex-direction: column; align-items: center; min-width: 32px; padding: 0.35rem 0.5rem; border-radius: 6px; transition: all 0.2s ease; border: 1px solid rgba(255,255,255,0.1); background: var(--theme-darker); color: var(--theme-text); }

/* Total - darker purple */
.spot-item { background: var(--theme-darker); color: var(--theme-text); }

/* Confirmed - hot pink */
.spot-item.confirmed { background: var(--theme-accent); color: var(--theme-background); }

/* Pending - gold */
.spot-item.pending { background: var(--theme-warning); color: var(--theme-background); }

/* Invited & Requested - info blue (both are producer-initiated statuses) */
.spot-item.invited,
.spot-item.requested { background: var(--theme-info); color: var(--theme-background); }

/* Rejected - bright red */
.spot-item.rejected { background: var(--theme-danger-red); color: var(--theme-background); }

.spot-item:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 2px 8px rgba(255,105,180,0.3); }

/* Mobile styles for spots */
@media (max-width: 768px) {
    .spots-status { min-width: 0; }
    .spots-grid { margin-left: 50%; justify-content: flex-end; flex-wrap: wrap; }
    .spot-item { padding: 0.25rem 0.4rem; min-width: 28px; }
    .spot-number { font-size: 0.75rem; }
    .spot-label { font-size: 0.65rem; }
}

.event-card .card-header { background-color: var(--event-card-background); color: var(--event-title-text-color); }
.event-card .card-footer { 
    background-color: var(--event-card-background); 
    border-top: 1px solid var(--theme-secondary);
    color: var(--event-text-color);
}

/* Color Picker Widget Styling */
.color-picker-widget {
    width: 5rem;
    height: 5rem;
}

/* Theme-aware utility classes */
.text-theme {
    color: var(--theme-text);
}

.text-theme-muted {
    color: var(--theme-muted);
}

.bg-theme {
    background-color: var(--theme-background);
}

.border-theme-accent {
    border-color: var(--theme-accent);
}

.border-theme-text {
    border-color: var(--theme-text);
}

/* Stage navigation border utilities */
.border-top-accent-2 {
    border-top: 2px solid var(--theme-accent);
}

.border-bottom-accent-2 {
    border-bottom: 2px solid var(--theme-accent);
}

/* Button utilities for themed outlines */
.btn-outline-theme {
    border: 1px solid var(--theme-text);
    color: var(--theme-text);
    background: transparent;
}

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

.btn-outline-accent {
    border: 1px solid var(--theme-accent);
    color: var(--theme-accent);
    background: transparent;
}

.btn-outline-accent:hover {
    background-color: var(--theme-accent);
    color: var(--theme-background);
}

/* Navigation */
/* Navbar uses theme variables that can be customized per profile */
.navbar { 
    background-color: var(--theme-background);
    z-index: 1030; 
    border-bottom: 2px solid var(--theme-accent); 
}

.navbar-brand, 
.navbar-nav .nav-link { 
    color: var(--theme-text); 
}

.navbar-nav .nav-link:hover { 
    color: var(--theme-accent); 
}

/* Logout button in hamburger menu styling */
.navbar-collapse .btn-link.nav-link { 
    text-align: left; 
    width: 100%; 
    padding: 0.5rem 1rem; 
    color: var(--theme-text); 
    text-decoration: none; 
}
.navbar-collapse .btn-link.nav-link:hover { 
    color: var(--theme-accent); 
}

/* Card Base Styles */
.card { background-color: var(--theme-primary); border: 1px solid var(--theme-secondary); color: var(--theme-text); }

.card-header { background-color: var(--theme-darker); border-bottom: 1px solid var(--theme-secondary); }

.card-title { color: var(--theme-text); }

.card-text { color: var(--theme-text); }

/* Button Base Styles */
.btn-primary { background-color: var(--theme-secondary); border-color: var(--theme-accent); color: var(--theme-text); }

.btn-primary:hover,
.btn-primary:focus { background-color: var(--theme-accent); border-color: var(--theme-secondary); color: var(--theme-background); }

/* Table Styles */
.table { background-color: var(--theme-primary); color: var(--theme-text); }

.table th, 
.table td { border-color: var(--theme-secondary); }

.table-hover tbody tr:hover { background-color: var(--theme-darker); }


/* Event card styles consolidated - see lines 267-306 for full definition */

/* Corner Ribbon */
.corner-ribbon { position: absolute; top: 15px; right: -20px; width: 80px; text-align: center; transform: rotate(45deg); z-index: 2; pointer-events: none; }
.corner-ribbon span {
    display: block;
    background: var(--theme-accent);
    color: var(--theme-background);
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.1;
    padding: 4px 0;
    box-shadow: 0 6px 14px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: .3px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.35);
}
@media (prefers-color-scheme: dark) {
    .corner-ribbon span {
        background: var(--theme-secondary);
        color: var(--theme-text);
    }
}

/* Form Controls */
.form-control { background-color: var(--theme-background); border: 2px solid var(--theme-secondary); color: var(--theme-text); }
.form-control:focus { background-color: var(--theme-background); border-color: var(--theme-accent); color: var(--theme-text); box-shadow: 0 0 0 0.2rem rgba(255,105,180,0.25); }

.form-label { color: var(--theme-text); }

/* Lineup horizontal scroller */
#lineup .overflow-auto { scrollbar-width: thin; }
#lineup .overflow-auto::-webkit-scrollbar { height: 6px; }
#lineup .overflow-auto::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 3px; }

/* Box office bar spacing on mobile */

/* Hamburger Menu Styles */
.hamburger-dropdown { min-width: 280px; max-width: 320px; border: 1px solid var(--theme-secondary); border-radius: 8px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); background-color: var(--theme-darker); padding: 0; margin-top: 0.5rem; z-index: 1050; }

.hamburger-menu-content { padding: 0.75rem; color: var(--theme-text); }

.hamburger-dropdown .menu-section { margin-bottom: 0; }

.hamburger-dropdown .dropdown-header { color: var(--theme-accent); font-weight: 600; font-size: 0.85rem; padding: 0.25rem 0; margin-bottom: 0.5rem; border-bottom: 1px solid var(--theme-secondary); }

.hamburger-dropdown .dropdown-item { color: var(--theme-text); padding: 0.5rem 0.75rem; border-radius: 4px; margin-bottom: 0.25rem; transition: all 0.2s ease; font-size: 0.9rem; border: none; background: none; width: 100%; text-align: left; }
.hamburger-dropdown .dropdown-item:hover,
.hamburger-dropdown .dropdown-item:focus { background-color: var(--theme-secondary); color: var(--theme-accent); transform: translateX(4px); }

.hamburger-dropdown .dropdown-item.text-danger {
    color: var(--theme-danger-red);
}
.hamburger-dropdown .dropdown-item.text-danger:hover {
    background-color: var(--theme-danger-red);
    color: var(--theme-background);
}

.hamburger-dropdown .dropdown-divider { border-color: var(--theme-secondary); margin: 0.75rem 0; }

.hamburger-dropdown .current-profile { background-color: var(--theme-primary); border: 1px solid var(--theme-secondary); border-radius: 6px; padding: 0.5rem; color: var(--theme-text); font-size: 0.9rem; }

.hamburger-dropdown .profile-switcher { margin-top: 0.5rem; }
.hamburger-dropdown .profile-switcher .dropdown-item { margin-bottom: 0.125rem; padding: 0.25rem 0.5rem; font-size: 0.8rem; }

/* Hamburger button styling */
#hamburgerMenuButton { border: none; padding: 0.5rem; transition: all 0.2s ease; }
#hamburgerMenuButton:hover { background-color: rgba(255, 105, 180, 0.1); border-radius: 4px; }
#hamburgerMenuButton:focus { box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25); }

/* Ensure dropdown stays in viewport */
@media (max-width: 576px) {
    .hamburger-dropdown { min-width: 260px; max-width: 90vw; right: 0.5rem; }
    .hamburger-menu-content { padding: 0.5rem; }
    .hamburger-dropdown .dropdown-item { padding: 0.4rem 0.5rem; font-size: 0.85rem; }
}

/* Sticky navbar adjustments */
.navbar.position-sticky { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Make top hamburger menu more subtle on desktop since left sidebar is primary */
@media (min-width: 768px) {
    #hamburgerMenuButton { opacity: 0.8; }
    #hamburgerMenuButton:hover { opacity: 1; }
}