/* Search Results Styling */
.search-result-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.search-result-band-image {
    border-radius: 0.375rem; /* Bootstrap rounded */
}

.search-result-show-image {
    border-radius: 0.375rem; /* Bootstrap rounded */
}

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght:100,200,300,400,500,600,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

html {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

body {
    background: #161C1D;
    color: #E8E8E8;
    padding: 0;
    margin: 0;
    font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
    width: 100%;
    line-height: 1.6;
    font-size: 15px;

    h1, h2, h3, h4, h5, h6 {
        color: #E8E8E8;
        font-family: 'Oswald', sans-serif;
        font-weight: 500;
        letter-spacing: 0.5px;
    }

    a {
        color: #F5C56C;
        font-weight: 500;
        text-decoration: none;
        transition: color 0.2s ease;
    }
    
    a:hover {
        color: #FFD68A;
    }
}

/* Sticky Footer Layout - ensures footer stays at bottom of viewport */
.sticky-footer-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sticky-footer-layout main {
    flex: 1;
}

/* Helper classes for pages that need sticky footer */
.min-vh-100 {
    min-height: 100vh !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

#mainNav {
    width: 100%;
    font-family: 'Yanone Kaffeesatz', 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    background-color: #2a3133;
    margin: 0 0 2rem 0;
    font-size: 1.2em;
    padding: 10px 0;
}

#mainNav .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
    gap: 20px;
}

#mainNav .nav-search {
    flex: 0 1 350px;
    max-width: 350px;
}

.desktop-search-icon {
    display: flex;
    align-items: center;
}

.search-icon-btn {
    background: none;
    border: none;
    color: #E6E6E6;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.search-icon-btn:hover {
    color: #EDC78A;
    background-color: rgba(237, 199, 138, 0.1);
}

#mainNav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

#mainNav ul li {
    margin: 0;
}

/* Hide mobile nav components on desktop */
.mobile-nav-container,
.mobile-search-overlay {
    display: none;
}

/* Responsive - Mobile Only */
@media (max-width: 768px) {
    /* Hide desktop nav on mobile */
    #mainNav {
        display: none;
    }
    
    /* Show mobile nav on mobile */
    .mobile-nav-container {
        display: block;
    }
    
    .mobile-nav-header {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 8px 12px;
        background-color: #2a3133;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        transition: padding 0.3s ease, font-size 0.3s ease;
        gap: 8px;
    }

    .mobile-nav-header .mobile-nav-toggle {
        flex-shrink: 0;
        order: 1;
    }

    .mobile-nav-header .mobile-logo-link {
        display: flex;
        align-items: center;
        height: 100%;
        order: 2;
        flex: 1;
        justify-content: center;
        flex-shrink: 0;
    }

    .mobile-nav-header .mobile-search-icon-btn {
        order: 3;
        flex-shrink: 0;
        background: transparent;
        border: none;
        color: #EDC78A;
        font-size: 20px;
        cursor: pointer;
        padding: 8px;
        transition: opacity 0.2s ease;
    }

    .mobile-nav-header .mobile-search-icon-btn:active {
        opacity: 0.7;
    }

    /* Homepage layout: search takes 2/3 width */
    .mobile-nav-header .mobile-header-search.homepage {
        order: 2;
        flex: 1;
        display: flex !important;
        min-width: 0;
        margin: 0;
    }

    /* Other pages layout: search on right, initially hidden */
    .mobile-nav-header .mobile-header-search:not(.homepage) {
        order: 4;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        background-color: #2a3133;
        border-bottom: 1px solid #495057;
        padding: 12px;
        margin: 0;
        z-index: 999;
    }

    .mobile-nav-header .mobile-header-search:not(.homepage).active {
        display: flex;
    }

    /* Centered mobile logo in the top bar (hidden on homepage by PHP) */
    .mobile-logo-link {
        display: flex;
        align-items: center;
        height: 100%;
    }
    .mobile-logo {
        height: auto;
        max-height: 1.8rem;
        width: auto;
        display: block;
    }
    .mobile-nav-header.scrolled .mobile-logo {
        max-height: 1.2rem;
    }
    
    .mobile-nav-header.scrolled {
        padding: 8px 15px;
    }
    
    .mobile-nav-header.scrolled .mobile-nav-toggle .btn,
    .mobile-nav-header.scrolled .mobile-search-toggle {
        font-size: 1.3rem;
    }
    
    .mobile-search-toggle {
        background: none;
        border: none;
        color: #ffffff;
        font-size: 20px;
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }
    
    .mobile-search-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Mobile header search bar */
    .mobile-header-search {
        flex: 1;
        max-width: 100%;
        margin: 0 0 0 auto;
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .mobile-header-search .unified-search {
        max-width: 100%;
        margin: 0;
        width: 100%;
    }

    .mobile-header-search .search-container {
        position: relative;
    }

    .mobile-header-search .search-input {
        width: 100%;
        padding: 6px 10px 6px 30px;
        border: 1px solid #495057;
        border-radius: 18px;
        background-color: #1a1a1a;
        color: #ffffff;
        font-size: 13px;
        outline: none;
        transition: all 0.2s ease;
    }

    .mobile-header-search .search-input:focus {
        border-color: #EDC78A;
        box-shadow: 0 0 0 2px rgba(237, 199, 138, 0.1);
    }

    .mobile-header-search .search-icon {
        left: 8px;
        font-size: 13px;
    }

    .mobile-header-search .search-clear {
        right: 8px;
        font-size: 13px;
    }

    .mobile-header-search .search-filters {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2a3133;
        border: 1px solid #495057;
        border-top: none;
        border-radius: 0 0 8px 8px;
        padding: 8px;
        margin-top: 0;
        z-index: 999;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-header-search .search-filters.active {
        display: flex;
    }

    .mobile-header-search .search-filter {
        padding: 4px 10px;
        border: 1px solid #495057;
        border-radius: 12px;
        background-color: #343a40;
        color: #ffffff;
        font-size: 11px;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
    }

    .mobile-header-search .search-filter:hover,
    .mobile-header-search .search-filter.active {
        background-color: #EDC78A;
        color: #161C1D;
        border-color: #EDC78A;
    }

    .mobile-header-search .search-results {
        max-height: 300px;
        border-radius: 8px;
        margin-top: 8px;
        position: static;
        top: auto;
        left: auto;
        right: auto;
        background-color: #2a3133;
        border: 1px solid #495057;
        border-radius: 4px;
    }
    
    .mobile-search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(22, 28, 29, 0.95);
        z-index: 2000;
        display: none;
        padding: 20px;
        box-sizing: border-box;
    }
    
    .mobile-search-overlay.active {
        display: flex;
        flex-direction: column;
    }
    
    .mobile-search-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .mobile-search-close {
        background: none;
        border: none;
        color: #ffffff;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
    }
    
    .mobile-search-overlay .unified-search {
        max-width: 100%;
        margin: 0;
    }
}

nav a {
    text-decoration: none;
}

nav ul li a.inactive {
    font-weight: 200;
}

nav ul li a.current {
    font-weight: 700;
    text-decoration: underline;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    min-width: 320px;
    width: 100%;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    padding: 0; /* Padding is now on the 'a' tag to make the whole area clickable */
    border-color: #CACACA;
    color: #E6E6E6;
    flex-grow: 1;
    border-width: 0 0.5px 0 0;
    border-style: solid;
    text-align: center;
}

/* Make the link fill the entire list item */
#mainNav ul li a {
    display: block;
    padding: 0.125em;
    color: #E6E6E6;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* The hover effect for the entire 'box' */
#mainNav ul li:hover {
    color: #EDC78A;
    background-color: rgba(237, 199, 138, 0.1);
}
#mainNav ul li:hover a {
    color: #EDC78A;
}

nav ul li:first-of-type {
    border-right-width: 1px;
}

nav ul li:last-of-type {
    border-right-width: 1px;
}

.mainImage {
    width: 100%;
    /* max-width: 2700px; */
    margin-top: 1vh;
    /* margin-left: 10vw; */
}

/* ===== HOMEPAGE GRID (2:3:3) ===== */
.mainPage .home-grid {
    display: grid;
    grid-template-columns: 2fr 3fr 3fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.mainPage .home-sidebar {
    grid-column: 1;
    position: sticky;
    top: 5.5rem; /* below fixed nav */
    padding-right: 0.25rem;
}

.mainPage .home-bandlist {
    grid-column: 2 / 4;
    min-width: 0;
}

.mainPage .home-logo {
    text-align: center;
    margin-bottom: 0.75rem;
}

.mainPage .home-logo-image {
    width: 100%;
    height: auto;
}

.mainPage .home-section {
    background-color: rgba(26, 26, 26, 0.6);
    border-radius: 0;
    padding: 0.75rem;
    margin-bottom: 0rem;
}

.mainPage .home-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #F5C56C;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mainPage .home-subsection {
    margin-top: 0.75rem;
}

.mainPage .home-subsection-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #B8BFC4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mainPage .home-muted {
    color: #B8BFC4;
    font-size: 0.85rem;
    line-height: 1.5;
}

.mainPage .home-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mainPage .home-list li {
    margin: 0.4rem 0;
    line-height: 1.6;
}

.mainPage .home-list a {
    text-decoration: none;
}

/* Band list density for the wider 2-column area */
.mainPage .home-bandlist #band-list {
    column-count: 4;
    column-gap: 12px;
}

@media (max-width: 1200px) {
    .mainPage .home-bandlist #band-list {
        column-count: 3;
    }
}

@media (max-width: 992px) {
    .mainPage .home-grid {
        grid-template-columns: 1fr;
    }
    .mainPage .home-sidebar,
    .mainPage .home-bandlist {
        grid-column: auto;
        position: static;
        max-height: none;
        overflow: visible;
    }
    .mainPage .home-bandlist #band-list {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .mainPage .home-bandlist #band-list {
        column-count: 1;
    }
}

.hidden {
    /* font-size: 1px; */
    line-height: 0;
    color: #FEE7BE;
}

.represent {
    text-align: center;
    text-transform: uppercase;
}

#band-list { 
        list-style-type: none;
        margin: 1em 0;
        padding: 0;
        width: 100%;
        /* Make it 5 columns, no scrolling down, alpha sorted */
        column-count: 5;
        column-gap: 5px;
        column-fill: balance;
        .adjacent {
            /* italics */
            font-style: italic;
        }
        li {
            /* no bullets */
            list-style-type: none;
            margin-bottom: 0.5rem;
            padding: 0.5rem;
            /* no padding */
            padding: 0;
            /* no border */
            border: none;
            /* no background */
            background: none;
            /* no text decoration */
            text-decoration: none;
        }
}

/* Override Bootstrap's dark table text */
.table td, .table th {
  color: #FEE7BE; /* Or any other light color you prefer */
}

/* For better specificity, target the table directly if you have a specific class or ID */
#my-table td, #my-table th {
  color: #FEE7BE;
}

.table-dark td, .table-dark th {
    color: #FEE7BE; /* Or your preferred light color */
}

/* Fix text-muted for dark theme */
.text-muted {
    color: #adb5bd !important;
}

/* Ensure small text is visible on dark backgrounds */
small {
    color: #dee2e6;
}

/* Fix form elements with dark backgrounds */
.form-control {
    background-color: #2b3035 !important;
    border-color: #495057 !important;
    color: #fff !important;
}

.form-control:focus {
    background-color: #2b3035 !important;
    border-color: #80bdff !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.form-control::placeholder {
    color: #adb5bd !important;
}

/* Fix file input styling */
.form-control[type="file"] {
    background-color: #343a40 !important;
    border-color: #495057 !important;
    color: #fff !important;
}

/* Fix textarea specifically */
textarea.form-control {
    background-color: #2b3035 !important;
    border-color: #495057 !important;
    color: #fff !important;
}

/* Fix form labels */
.form-label, label {
    color: #fff !important;
}

/* Fix select elements */
select.form-control, .form-select {
    background-color: #2b3035 !important;
    border-color: #495057 !important;
    color: #fff !important;
}

/* Band Page START */
.bandPage {
    #nameAndEras {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: flex-start;
        column-gap: 0;
        align-items: center;
        .bandName {
            font-size: 3.5rem;
            font-weight: 400;
            margin: 0;
            text-align: center;
            flex-grow: 1;
            flex-basis: 100%;
            line-height: normal;
        }
        .eras {
            font-size: 0.8rem;
            white-space: nowrap;
            line-height: 0.7rem;

        }
    }
    #mainImage img {
        width: 100%;
        max-width: 2700px;
        max-height: 80vh;
        /* don't break up into different lines if possible */
        }

}

.showPage {
    .flierImage {   
        width: 100%;
    }
    
    /* Flier Management Styles */
    #flierManagement {
        .flier-item {
            transition: all 0.3s ease;
            &:hover {
                box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            }
        }
        
        .flier-preview {
            transition: all 0.3s ease;
            &:hover {
                box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            }
        }
        
        .selectable-image {
            transition: all 0.3s ease;
            &:hover {
                opacity: 0.8;
                box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            }
            
            &.already-associated {
                cursor: not-allowed;
            }
        }
        
        #existingImagesGallery {
            .position-relative {
                .badge {
                    font-size: 0.7em;
                }
            }
        }
        
        #newFlierPreviews, #currentFliersDisplay {
            .flier-item, .flier-preview {
                background: #f8f9fa;
                border: 1px solid #dee2e6;
                
                img {
                    border-radius: 4px;
                }
            }
        }
    }
}



#theBandRows {

    .band-entry {
        /* remove the gaps between bootstrap colummns */
        margin-bottom: 0;
        padding: 0;
    }
    .band-entry > div {
        display: flex;
        flex-direction: row;
    }
    .bi.bi-grip-vertical {
        cursor: move;
        height: 100%;
        width: 30px;
        line-height: 38px;
        vertical-align: center;
    }
    input.band-name-input {
        width: 100%;
        }
}

.selectable-image {
  cursor: pointer;
}
.selectable-image.selected {
  border: 3px solid #EDC78A; /* Gold border to show selection */
}

.dark-form-card {
    margin-top: 50px;
    background-color: #2a3133;
    border-color: #EDC78A;
}

.dark-form-card .card-header {
    border-bottom: 1px solid #EDC78A;
}

.dark-form-card label {
    color: #FEE7BE; /* Light color for labels */
}

.dark-form-card .form-control {
    background-color: #161C1D;
    color: #FEE7BE;
    border-color: #EDC78A;
}

/* --- Mobile Navigation --- */

/* Hide desktop nav on small screens */
@media screen and (max-width: 768px) {
  #mainNav {
    display: none;
  }

  /* Add space for the fixed mobile nav toggle */
  body {
    padding-top: 80px !important;
  }

  /* Make band list single-column on mobile */
  #band-list {
    column-count: 1;
  }
  
  /* Hide homepage sidebar search on mobile */
  .home-sidebar .home-section[aria-label="Search"] {
    display: none;
  }
}

/* Show mobile toggle on small screens */
.mobile-nav-toggle {
  display: none; /* Hidden by default */
  z-index: 1002; /* Above sidenav and overlay */
}

@media screen and (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
}

.mobile-nav-toggle .btn {
    font-size: 2.2rem;
    color: #EDC78A;
    padding: 0;
    border: none;
    line-height: 1;
}

/* The close button should be dark to contrast with the light menu */
.mobile-nav-toggle #closeSidenav.btn {
    color: #161C1D;
}

/* Close button inside sidenav */
.sidenav .closebtn {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 36px;
    color: #161C1D;
    text-decoration: none;
    line-height: 1;
    padding: 0;
    z-index: 1003;
}

.sidenav .closebtn:hover {
    color: #000;
}

/* The side navigation menu */
.sidenav {
  height: 100%;
  width: 0; /* Initially hidden */
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  background-color: #FEE7BE; /* Flipped to light cream, 100% opacity */
  overflow-x: hidden;
  transition: 0.4s;
  padding-top: 60px;
  max-width: 220px; /* Cap the width on larger screens */
}

/* The navigation menu links */
.sidenav a {
  padding: 10px 15px 10px 32px;
  text-decoration: none;
  font-size: 22px;
  color: #161C1D; /* Flipped to dark text */
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #EDC78A;
}

/* Style for the horizontal rule in the menu */
.sidenav hr {
    border-color: #161C1D; /* Flipped to dark color */
}

/* The overlay effect (for closing the menu) */
.overlay {
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  display: none; /* Hidden by default */
}

/* Show Page Styles */
.show-page {
    margin-top: 2rem;
}

.show-date {
    font-size: 2rem;
    font-weight: 700;
    color: #CACACA;
    font-family: 'Oswald', sans-serif;
}

.show-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #E6E6E6;
    font-family: 'Oswald', sans-serif;
}

.venue-info {
    padding: 1.5rem 0;
    border-bottom: 1px solid #2a3133;
}

.venue-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #CACACA;
    font-family: 'Oswald', sans-serif;
}

.venue-address {
    font-size: 1.1rem;
    color: #E6E6E6;
    margin-bottom: 0.5rem;
}

.show-details {
    font-size: 1rem;
    color: #CACACA;
}

.detail-item {
    display: inline-block;
}

.lineup-container {
    background-color: #0a0e0f !important;
    border: 1px solid #2a3133;
    border-radius: 8px;
}

.lineup-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #2a3133;
    font-size: 1.1rem;
}

.lineup-item:last-child {
    border-bottom: none;
}

.band-link {
    font-weight: 500;
    transition: color 0.2s ease;
    color: #EDC78A !important;
    text-decoration: none;
}

.band-link:hover {
    color: #FEE7BE !important;
    text-decoration: underline !important;
}

/* Public band pages get heavier weight */
.band-link.public-band {
    font-weight: 600;
}

/* Multi-show admin bands get normal weight (same as base) */
.band-link.multi-show-band {
    font-weight: 500;
}

.band-name {
    font-weight: 500;
    color: #E6E6E6 !important;
}

.flier-gallery {
    text-align: center;
    position: relative;
}

.primary-flier-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.primary-flier-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
}

.flier-thumbnails {
    margin-top: 1rem;
}

.thumbnail-row {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.flier-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.flier-thumbnail:hover,
.flier-thumbnail.active {
    border-color: #EDC78A;
}

/* Mobile Flier Navigation */
.mobile-flier-nav {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.flier-nav-dots {
    display: flex;
    gap: 0.5rem;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2a3133;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nav-dot.active {
    background-color: #EDC78A;
}

.flier-nav-arrows {
    display: flex;
    gap: 1rem;
}

.nav-arrow {
    background: #2a3133;
    color: #E6E6E6;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    background: #EDC78A;
    color: #161C1D;
}

.nav-arrow:disabled {
    background: #161C1D;
    color: #2a3133;
    cursor: not-allowed;
}

.show-notes {
    font-size: 1rem;
    line-height: 1.6;
    color: #E6E6E6;
    background-color: #0a0e0f;
    border: 1px solid #2a3133;
}

/* Touch/Swipe Support */
.primary-flier-container {
    touch-action: pan-y;
    user-select: none;
}

@media (max-width: 991px) {
    .primary-flier-container {
        touch-action: pan-y;
    }
}

@media (max-width: 768px) {
    .show-date {
        font-size: 1.5rem;
    }
    
    .show-name {
        font-size: 1.4rem;
        margin-top: 0.5rem;
    }
    
    .venue-name {
        font-size: 1.3rem;
    }
    
    .show-details {
        margin-top: 1rem;
    }
    
    .detail-item {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .lineup-item {
        padding: 1rem 0;
        font-size: 1.2rem;
    }
}

/* Mobile ordering for show page sections */
@media (max-width: 991px) {
    .show-metadata {
        order: 1 !important;
    }
    
    .fliers-section {
        order: 2 !important;
    }
    
    .lineup-section {
        order: 3 !important;
    }
}

.show-metadata {
    background-color: #0a0e0f;
    border: 1px solid #2a3133;
    border-radius: 8px;
    padding: 1.5rem;
}

.detail-row {
    font-size: 1.1rem;
    color: #E6E6E6;
}

.detail-row strong {
    color: #CACACA;
}

/* Release Interface Improvements */
.band-suggestions {
    position: relative;
    z-index: 1000;
    background: #343a40;
    border: 1px solid #6c757d;
    border-radius: 0.375rem;
    margin-top: 2px;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    background: #343a40;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #495057;
}

.suggestion-item:hover {
    background: #495057;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.existing-image-item .card {
    transition: transform 0.2s, box-shadow 0.2s;
    background: #343a40 !important;
}

.existing-image-item .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.ui-state-highlight {
    height: 60px;
    background: rgba(0,123,255,0.2);
    border: 2px dashed #007bff;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.release-track-entry {
    background: rgba(255,255,255,0.05);
    border-radius: 0.375rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s;
}

.release-track-entry:hover {
    background: rgba(255,255,255,0.08);
}

.bi-grip-vertical {
    cursor: grab;
    font-size: 1.2em;
}

.bi-grip-vertical:active {
    cursor: grabbing;
}

.format-btn.active {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: white !important;
}

/* Admin interface cards */
.card.bg-dark {
    border: 1px solid #495057;
}

.card.bg-dark .card-header {
    background: #495057;
    border-bottom: 1px solid #6c757d;
}

/* Form enhancements */
.form-control {
    background: #2b3035;
    border: 1px solid #495057;
    color: #fff;
}

.form-control:focus {
    background: #2b3035;
    border-color: #80bdff;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-select {
    background: #2b3035;
    border: 1px solid #495057;
    color: #fff;
}

.form-select:focus {
    background: #2b3035;
    border-color: #80bdff;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button improvements */
.btn-outline-primary:hover {
    background: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
}

.btn-outline-info:hover {
    background: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}

/* Image grid improvements */
.existing-image-item {
    transition: opacity 0.3s;
}

.existing-image-item.hidden {
    opacity: 0.3;
}

/* Preview styling */
#newCoverArtPreviewContainer img {
    border: 2px solid #495057;
}

/* Track entry styling */
.release-track-entry .form-control {
    margin-bottom: 0;
}

.release-track-entry .btn-sm {
    padding: 0.25rem 0.5rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .existing-image-item {
        margin-bottom: 1rem;
    }
    
    .release-track-entry .col-1 {
        display: none;
    }
    
    .release-track-entry .col-7 {
        flex: 0 0 60%;
        max-width: 60%;
    }
    
    .release-track-entry .col-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Admin Dashboard Card Styling - Better Contrast */
.admin-page .card-header,
.container .card-header {
    background-color: #343a40;
    color: #ffffff;
    border-bottom: 1px solid #495057;
}

.admin-page .card-header h3,
.container .card-header h3 {
    color: #ffffff;
    margin-bottom: 0;
    font-weight: 600;
}

/* Admin Dashboard Card Bodies - Dark Background */
.admin-page .card,
.container .card {
    background-color: #1a1a1a;
    border: 1px solid #495057;
    color: #ffffff;
}

.admin-page .card-body,
.container .card-body {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Override any existing card header styles for better readability */
.card-header {
    background-color: #343a40 !important;
    color: #ffffff !important;
}

.card-header h3 {
    color: #ffffff !important;
}

/* ===== UNIFIED SEARCH COMPONENT ===== */
.unified-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    display: block;
}

/* Ensure search container is always visible */
.unified-search .search-container {
    position: relative;
    display: block;
}

/* Homepage: tighter search UI */
.mainPage #homepage-unified-search .unified-search {
    max-width: 100%;
    margin: 0;
}

.mainPage #homepage-unified-search .search-input {
    padding: 10px 16px 10px 40px;
    border-radius: 18px;
    font-size: 14px;
}

.mainPage #homepage-unified-search .search-icon {
    left: 12px;
    font-size: 16px;
}

.mainPage #homepage-unified-search .search-clear {
    right: 10px;
    font-size: 16px;
}

.mainPage #homepage-unified-search .search-filters {
    gap: 6px;
    margin-top: 8px;
}

.mainPage #homepage-unified-search .search-filter {
    padding: 4px 10px;
    font-size: 11px;
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid #495057;
    border-radius: 25px;
    background-color: #2a3133;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #EDC78A;
    box-shadow: 0 0 0 3px rgba(237, 199, 138, 0.1);
}

.search-input::placeholder {
    color: #adb5bd;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 18px;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 18px;
    cursor: pointer;
    display: none;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-clear:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.search-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.search-filter {
    padding: 5px 15px;
    border: 1px solid #495057;
    border-radius: 15px;
    background-color: #343a40;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.search-filter:hover,
.search-filter.active {
    background-color: #EDC78A;
    color: #161C1D;
    border-color: #EDC78A;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2a3133;
    border: 1px solid #495057;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
    display: none;
}

.search-results.visible {
    display: block;
}

.search-result-item {
    padding: 12px 20px;
    border-bottom: 1px solid #495057;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-item:hover,
.search-result-item.highlighted {
    background-color: #343a40;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

.search-result-subtitle {
    color: #adb5bd;
    font-size: 12px;
}

.search-result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.search-result-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.search-result-type.band {
    background-color: #dc3545;
    color: #ffffff;
}

.search-result-type.show {
    background-color: #17a2b8;
    color: #ffffff;
}

.search-result-type.person {
    background-color: #28a745;
    color: #ffffff;
}

/* Alternate name badges */
.search-result-alternate {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    margin-left: 6px;
    background-color: #6f42c1;
    color: #ffffff;
}

.search-result-alternate.misspelling {
    background-color: #fd7e14;
}

.search-result-alternate.former_name {
    background-color: #6610f2;
}

.search-result-alternate.abbreviation {
    background-color: #0dcaf0;
}

.search-result-alternate.stylized {
    background-color: #d63384;
}

.search-result-alternate.nickname {
    background-color: #198754;
}

/* Show result styling with flier images */
.search-result-item.show-result {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.search-result-content {
    flex: 1;
}

.search-result-flier {
    flex: 0 0 60px;
    height: 60px;
}

.search-result-flier img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #495057;
}

.search-result-status {
    color: #adb5bd;
    font-size: 11px;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: #adb5bd;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #adb5bd;
}

.search-error {
    padding: 20px;
    text-align: center;
    color: #dc3545;
}

/* Search result highlighting */
mark {
    background-color: #EDC78A;
    color: #161C1D;
    padding: 1px 2px;
    border-radius: 2px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .unified-search {
        max-width: 100%;
        margin: 0 10px;
    }
    
    .search-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 10px 15px 10px 40px;
    }
    
    .search-icon {
        left: 12px;
        font-size: 16px;
    }
    
    .search-clear {
        right: 12px;
        font-size: 16px;
    }
    
    .search-filters {
        gap: 8px;
        margin-top: 8px;
    }
    
    .search-filter {
        padding: 4px 12px;
        font-size: 11px;
    }
    
    .search-results {
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 10px 15px;
    }
}

/* ===== DESKTOP FULL-SCREEN SEARCH MODAL ===== */
.desktop-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.desktop-search-modal.active {
    display: flex;
    opacity: 1;
}

.search-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 28, 29, 0.9);
    backdrop-filter: blur(3px);
}

.search-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 5% 10%;
    box-sizing: border-box;
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin-bottom: 3rem;
}

.search-modal-header h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    font-family: 'Oswald', sans-serif;
}

.search-modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.search-modal-close:hover {
    color: #EDC78A;
    background-color: rgba(255, 255, 255, 0.1);
}

.search-modal-body {
    width: 100%;
    max-width: 800px;
    flex: 1;
}

/* Override search component styles for modal */
.search-modal-body .unified-search {
    max-width: 100%;
    margin: 0;
}

.search-modal-body .search-input {
    font-size: 1.5rem;
    padding: 20px 25px 20px 60px;
    border-radius: 15px;
    border-width: 3px;
}

.search-modal-body .search-icon {
    left: 20px;
    font-size: 1.5rem;
}

.search-modal-body .search-clear {
    right: 20px;
    font-size: 1.5rem;
}

.search-modal-body .search-results {
    max-height: 60vh;
    border-radius: 15px;
    margin-top: 15px;
}

.search-modal-body .search-result-item {
    padding: 15px 25px;
}

.search-modal-body .search-result-title {
    font-size: 1.1rem;
}

.search-modal-body .search-result-subtitle {
    font-size: 0.9rem;
}

/* Hide modal on mobile */
@media (max-width: 768px) {
    .desktop-search-modal {
        display: none !important;
    }
    
    .desktop-search-icon {
        display: none;
    }
}