/* ============================================================
   TXT Collecting Masterlist — Mobile-First Responsive Stylesheet
   
   Breakpoints:
     base    : 0–639px   (mobile phones)
     sm      : 640px+    (large phones / small tablets)
     md      : 768px+    (tablets — Bootstrap 3 navbar collapse)
     lg      : 1024px+   (laptops / desktops)
     xl      : 1400px+   (large desktops / HiDPI)
   ============================================================ */

/* ============================================================
   BASE / BODY
   ============================================================ */
body {
    font-family: Arial, sans-serif;
    background: #A6CFD5;
    margin: 0;
    padding: 0;
    padding-top: 50px; /* fixed navbar height */
}

h1 { color: #2c3e50; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar.navbar-fixed-top {
    border-radius: 0;
    min-height: 50px;
    z-index: 1030;
    border: 0;
}

/* Star icon in the brand */
.navbar-star-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.navbar-brand {
    padding: 5px 15px;
    height: 50px;
    display: flex;
    align-items: center;
}

/* Central brand logo — stacks in collapse on mobile */
.navbar-center-brand {
    text-align: center;
    padding: 8px 15px;
}
.navbar-center-brand a {
    display: inline-block;
}
.navbar-brand-logo {
    max-height: 50px;
    width: auto;
}

.navbar .navbar-nav > li > a {
    font-size: 0.875rem;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Desktop: flex layout with centred brand */
@media (min-width: 768px) {
    .navbar-fixed-top .container-fluid {
        display: flex;
        align-items: center;
        position: relative;
    }
    .navbar-header {
        flex-shrink: 0;
    }
    .navbar-collapse.collapse {
        display: flex !important;
        align-items: center;
        flex: 1;
    }
    .navbar-center-brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 0;
        pointer-events: auto;
        z-index: 1;
    }
    .navbar-nav.navbar-left {
        display: flex;
        align-items: center;
        gap: clamp(2px, 0.5vw, 12px);
    }
    .navbar-nav.navbar-right {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: clamp(2px, 0.5vw, 12px);
    }
    .navbar-nav > li { float: none; }
    .navbar .navbar-nav > li > a { line-height: 20px; }
}

/* Very wide screens: let nav items breathe */
@media (min-width: 1400px) {
    .navbar .navbar-nav > li > a {
        font-size: 0.9375rem;
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ============================================================
   ADMIN BAR
   ============================================================ */
.admin-bar {
    background-color: #2c3e50;
    border-bottom: 2px solid #34495e;
    padding: 0.5rem 0;
}
.admin-bar.admin-bar-fixed {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 1029;
}
/* Offset admin bar for sidebar on desktop */
@media (min-width: 992px) {
    .admin-bar.admin-bar-fixed { left: 200px; }
    body.sidebar-collapsed .admin-bar.admin-bar-fixed { left: 0; }
}
.admin-bar-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    flex-wrap: wrap;
    padding: 0 15px;
}
/* Push sidebar content below admin bar when present */
.admin-bar ~ .container-fluid #era-sidebar {
    padding-top: 84px; /* 50px navbar + 34px admin bar */
}
.admin-bar-label {
    color: #95a5a6;
    font-weight: bold;
}
.admin-link {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.25rem 0.625rem;
    border-radius: 3px;
    transition: background 0.2s;
    white-space: nowrap;
}
.admin-link:hover,
.admin-link:focus {
    background-color: #34495e;
    color: #ecf0f1;
    text-decoration: none;
}
.admin-bar ~ .container-fluid.body-content {
    padding-top: 44px;
}

/* ============================================================
   BODY CONTENT CONTAINER
   ============================================================ */
.body-content {
    padding: 1rem;
}

@media (min-width: 640px) {
    .body-content { padding: 1rem 1.5rem; }
}
@media (min-width: 1024px) {
    .body-content { padding: 1rem 2rem; }
}
@media (min-width: 1400px) {
    .body-content {
        max-width: 1800px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================================
   SIDEBAR OFFSET  (pages with era sidebar)
   ============================================================ */
.sidebar-offset {
    transition: margin-left 0.3s ease;
}
@media (min-width: 992px) {
    .sidebar-offset { margin-left: 210px; }
    body.sidebar-collapsed .sidebar-offset { margin-left: 0; }
}

/* ============================================================
   ERA / ALBUM SIDEBAR
   ============================================================ */
#era-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    bottom: 0;
    padding-top: 50px; /* push content below navbar */
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    z-index: 1020;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s ease, width 0.3s ease;
    box-shadow: 2px 0 12px rgba(0,0,0,0.25);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}
#era-sidebar::-webkit-scrollbar { width: 5px; }
#era-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 3px; }
#era-sidebar.collapsed { transform: translateX(-200px); }

#era-sidebar-toggle {
    position: absolute;
    top: 10px;
    right: -28px;
    width: 28px;
    height: 36px;
    background: #2c3e50;
    color: #ecf0f1;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 13px;
    z-index: 1021;
    box-shadow: 2px 0 6px rgba(0,0,0,0.2);
    transition: background 0.2s;
}
#era-sidebar-toggle:hover { background: #1a252f; }
#era-sidebar-inner { padding: 12px 0 60px 0; }

.sidebar-divider {
    border-top: 1px dashed rgba(255,255,255,0.35);
    margin: 10px 12px 8px;
}
.sidebar-section-label {
    color: #95a5a6;
    font-size: 0.6875rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 2px 12px 6px;
}
.era-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.75rem;
    line-height: 1.3;
    transition: background 0.15s, color 0.15s, border-left 0.15s;
    border-left: 3px solid transparent;
}
.tour-link { border-left-style: dashed; }
.tour-bullet { color: #A6CFD5; font-weight: bold; margin-right: 2px; }
.era-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}
.era-link.active {
    background: rgba(166,207,213,0.18);
    color: #fff;
    border-left-color: #A6CFD5;
    font-weight: bold;
}
.era-thumb {
    width: 36px; height: 36px; min-width: 36px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.era-thumb-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: #4a6274;
    font-size: 18px;
}
.era-label {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

/* Main card area offset */
#main-card-area {
    transition: margin-left 0.3s ease;
}
@media (min-width: 992px) {
    #main-card-area { margin-left: 210px; }
    body.sidebar-collapsed #main-card-area { margin-left: 0; }
    #main-card-area.no-sidebar { margin-left: 0; }
}

/* Sidebar — laptop */
@media (max-width: 1400px) {
    #era-sidebar { width: 180px; }
    #era-sidebar.collapsed { transform: translateX(-180px); }
    .era-link { padding: 6px 10px; font-size: 0.6875rem; }
    .era-thumb { width: 32px; height: 32px; min-width: 32px; }
    .era-label { -webkit-line-clamp: 1; }
    .sidebar-section-label { font-size: 0.625rem; }
}
@media (min-width: 992px) and (max-width: 1400px) {
    #main-card-area { margin-left: 190px; }
    #main-card-area.no-sidebar { margin-left: 0; }
    .sidebar-offset { margin-left: 190px; }
    .admin-bar.admin-bar-fixed { left: 180px; }
}

/* Sidebar — mobile overlay, no margin shift */
@media (max-width: 991px) {
    #era-sidebar { width: 180px; }
    #era-sidebar.collapsed { transform: translateX(-180px); }
    #main-card-area { margin-left: 0 !important; }
    .admin-bar.admin-bar-fixed { left: 0; }
    .sidebar-offset { margin-left: 0; }
}
@media (max-width: 575px) {
    .era-thumb { width: 28px; height: 28px; min-width: 28px; }
    .era-link { font-size: 0.6875rem; padding: 5px 8px; }
}

/* ============================================================
   CARD GRID  (replaces inline flex/grid styles in templates)
   ============================================================ */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}
.card-col {
    padding: 0 12px;
    margin-bottom: 1.5rem;
    display: flex;
    width: 50%;           /* mobile: 2 columns */
}
@media (min-width: 640px) {
    .card-col { width: 33.333%; }   /* tablet: 3 columns */
}
@media (min-width: 1024px) {
    .card-col { width: 25%; }       /* desktop: 4 columns */
}
@media (min-width: 1400px) {
    .card-col { width: 20%; }       /* large: 5 columns */
}

.card-thumb {
    padding: 0.75rem;
    background-color: #D9DCD6;
    position: relative;
    border-radius: 0.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.card-actions {
    position: absolute;
    top: 6px; right: 6px;
    z-index: 2;
    display: flex;
    gap: 4px;
}
.card-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 2 / 3;
    background: #e8e8e8;
    border-radius: 4px;
}
.card-caption {
    margin-top: 0.5rem;
}
.card-caption h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}
.card-caption p {
    margin: 0 0 2px;
    font-size: 0.8125rem;
    line-height: 1.4;
}
.photo-credit {
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
}
.card-admin-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.card-admin-actions form { display: inline; }

/* List toggle buttons (dropdown inside cards) */
.list-toggle-btn {
    background: none;
    border: none;
    padding: 3px 12px;
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.list-toggle-btn:hover {
    background-color: #f5f5f5;
}

/* ============================================================
   ERA SECTION HEADINGS
   ============================================================ */
.era-section-heading {
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.375rem;
    border-bottom: 2px solid #A6CFD5;
    color: #2c3e50;
}
.era-section-heading img {
    width: 32px; height: 32px;
    object-fit: cover;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 0.5rem;
}
.tour-section-heading {
    border-bottom-style: dashed;
}

/* ---- Virtual-scroll section shells: min-height keeps scrollbar stable ---- */
.era-section .card-grid {
    /* min-height is set dynamically by JS; ensure smooth transitions */
    transition: min-height 0.15s ease-out;
}
.tour-section .card-col {
    /* Ensure tour section cards use the same width as album cards */
    width: 50%;
}
@media (min-width: 640px) {
    .tour-section .card-col { width: 33.333%; }
}
@media (min-width: 1024px) {
    .tour-section .card-col { width: 25%; }
}
@media (min-width: 1400px) {
    .tour-section .card-col { width: 20%; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background-color: #f5f5f5;
    border-radius: 4px;
    display: inline-block;
}
.stats-bar p {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

/* ============================================================
   FLOATING ACTION BUTTON
   ============================================================ */
.fab-upload {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    background: #28a745;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    z-index: 1010;
    transition: transform 0.2s, box-shadow 0.2s;
}
.fab-upload:hover,
.fab-upload:focus {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    color: #fff;
    text-decoration: none;
}

/* Back-to-top FAB (stacked above upload FAB) */
.fab-top {
    position: fixed;
    right: 1.5rem;
    bottom: 5.2rem; /* stacked above the upload FAB */
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    background: #007bff;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.18);
    z-index: 1010;
    transition: transform 0.15s, opacity 0.15s;
    opacity: 0; /* hidden by default; shown via JS */
    pointer-events: none;
}
.fab-top.visible { opacity: 1; pointer-events: auto; transform: translateY(-2px); }
.fab-top:hover, .fab-top:focus { transform: scale(1.05); }

/* ============================================================
   AUTH PAGES  (Login / Register)
   ============================================================ */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 130px);
    padding: 1rem;
}
.auth-card {
    width: 100%;
    max-width: 25rem;
}
.auth-card h2 { text-align: center; }
.auth-card .auth-form { margin-top: 1rem; }
.auth-footer {
    margin-top: 0.75rem;
    text-align: center;
}
.password-requirements {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 0.75rem;
}
.password-requirements p { margin: 0 0 3px; }
.password-requirements .req-title {
    font-weight: bold;
    margin-bottom: 0.375rem;
}

/* ============================================================
   COLLECTION PAGE
   ============================================================ */
.collection-value-banner {
    background: #2c3e50;
    color: #fff;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.875rem;
    display: inline-block;
    font-size: 0.9375rem;
}
.collection-value-banner .value-count {
    color: #aaa;
    margin-left: 0.625rem;
}
.sort-controls {
    margin-bottom: 0.75rem;
}
.sort-controls .sort-label {
    font-weight: bold;
    margin-right: 0.5rem;
}
.collection-filter-form {
    margin-bottom: 1.125rem;
    border-top: 1px solid #ccc;
    padding-top: 0.625rem;
}
.inline-filter {
    display: inline-block;
    margin-right: 0.875rem;
    margin-bottom: 0.5rem;
}
.inline-filter select {
    margin-left: 0.25rem;
    display: inline-block;
    width: auto;
    max-width: 200px;
}
@media (max-width: 639px) {
    .inline-filter {
        display: block;
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    .inline-filter select {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }
}
.obtain-badge {
    position: absolute;
    top: 6px; left: 6px;
    z-index: 2;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: bold;
    padding: 2px 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
}
.collection-card-meta {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}
.collection-price {
    color: #e67e22;
    font-weight: bold;
}
.collection-edit-details {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.75rem;
}
.collection-edit-details summary {
    cursor: pointer;
    color: #555;
    user-select: none;
}
.collection-edit-form {
    margin-top: 0.375rem;
}
.collection-edit-form .form-group-sm {
    margin-bottom: 0.375rem;
}
.collection-edit-form .form-group-sm label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.125rem;
}
.collection-edit-form .form-group-sm input.form-control {
    max-width: 100%;
    height: 28px;
    font-size: 0.75rem;
    padding: 3px 6px;
}
.collection-edit-form .obtain-radio {
    margin-right: 0.375rem;
    font-weight: normal;
}
.obtain-bought { color: #e74c3c; }
.obtain-pulled { color: #2ecc71; }
.obtain-gifted { color: #9b59b6; }

/* ============================================================
   ALBUM ONLY PAGE
   ============================================================ */
.album-section {
    margin-bottom: 1.875rem;
}
.album-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0.9375rem;
}
.album-icon-card {
    width: 11.25rem;
    text-align: center;
}
.album-icon-card a {
    text-decoration: none;
    color: inherit;
}
.album-icon-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.album-icon-img:hover { transform: scale(1.05); }
.album-icon-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e0e0e0;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}
.album-icon-label {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: bold;
}
@media (max-width: 639px) {
    .album-icon-card { width: calc(50% - 0.625rem); }
    .album-grid { gap: 0.75rem; }
}

/* ============================================================
   UPLOAD / EDIT FORMS
   ============================================================ */
.drop-area {
    padding: 1.125rem;
    border: 2px dashed #ccc;
    text-align: center;
    border-radius: 0.5rem;
    transition: border-color 0.2s, background 0.2s;
}
.drop-area.drag-over {
    border-color: #2196F3;
    background: #e3f2fd;
}
.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: center;
    margin-top: 0.75rem;
}
.form-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.edit-image-preview {
    max-width: 15rem;
    border-radius: 0.5rem;
    border: 2px solid #ccc;
}
.checkbox-group .checkbox-inline {
    margin-right: 0.5rem;
}
.custom-category-input {
    display: inline-block;
    width: 12.5rem;
    margin-left: 0.25rem;
}
@media (max-width: 639px) {
    .custom-category-input {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}
.limited-qty-input {
    width: 10rem;
}

/* ============================================================
   FILTER BAR  (main styles already defined here; responsive overrides)
   ============================================================ */
.filter-bar {
    background: #D9DCD6;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.08);
}
.filter-section {
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.filter-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.filter-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}
.filter-label-sm {
    font-weight: 600;
    color: #555;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    display: block;
}
.filter-search {
    width: 100%;
    max-width: 520px;
    border-radius: 0.5rem;
    border: 1.5px solid #bcc0bb;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-search:focus {
    border-color: #A6CFD5;
    box-shadow: 0 0 0 3px rgba(166,207,213,0.25);
    outline: none;
}
.filter-row {
    display: flex;
    flex-direction: column;
}

/* Chip-style member checkboxes */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}
.filter-chip input[type="checkbox"] { display: none; }
.filter-chip-text {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    background: #eef2f5;
    color: #555;
    border: 1.5px solid #d5dce2;
    transition: all 0.15s ease;
    user-select: none;
}
.filter-chip input[type="checkbox"]:checked + .filter-chip-text {
    background: #A6CFD5;
    color: #2c3e50;
    border-color: #8bbdc4;
    font-weight: 600;
}
.filter-chip:hover .filter-chip-text {
    background: #dce8eb;
    border-color: #c0d0d5;
}
.filter-chip input[type="checkbox"]:checked + .filter-chip-text:hover {
    background: #93c3ca;
}
.filter-chip-sm .filter-chip-text {
    padding: 3px 10px;
    font-size: 0.75rem;
}
.filter-sub-chips {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.filter-sub-chips .filter-label-sm {
    margin-bottom: 0;
    margin-right: 4px;
}

/* Combined members + dropdowns row */
.filter-row-combined {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 768px) {
    .filter-row-combined {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .filter-members-col {
        flex: 0 0 auto;
    }
    .filter-dropdowns-col {
        flex: 1;
        min-width: 0;
    }
}

/* Dropdown row */
.filter-dropdowns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}
.filter-dropdown-group {
    flex: 1;
    min-width: 10rem;
}
.filter-dropdown-group select {
    border-radius: 0.5rem;
    border: 1.5px solid #bcc0bb;
    padding: 6px 10px;
    font-size: 0.8125rem;
    background: #fff;
    transition: border-color 0.2s;
    width: 100%;
}
.filter-dropdown-group select:focus {
    border-color: #A6CFD5;
    box-shadow: 0 0 0 3px rgba(166,207,213,0.25);
    outline: none;
}

/* Filter action buttons */
.filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 0.875rem;
}
.btn-filter {
    border-radius: 0.5rem;
    padding: 7px 18px;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.15s ease;
}
.btn-filter-primary {
    background: #7fb8c1;
    border-color: #6daab4;
    color: #fff;
}
.btn-filter-primary:hover,
.btn-filter-primary:focus {
    background: #6aaab5;
    border-color: #5a9ba6;
    color: #fff;
}

@media (max-width: 767px) {
    .filter-bar { padding: 0.875rem 1rem; }
    .filter-dropdowns { flex-direction: column; gap: 0.625rem; }
    .filter-dropdown-group { min-width: 100%; }
}
@media (min-width: 1400px) {
    .filter-bar { max-width: 1400px; }
}

/* ============================================================
   PAGE LOADING OVERLAY
   ============================================================ */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #A6CFD5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s ease;
}
#page-loader.loaded {
    opacity: 0;
    pointer-events: none;
}
.loader-content {
    text-align: center;
    color: #2c3e50;
}
.loader-content p {
    margin-top: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.loader-stars {
    width: 10rem;
    margin: 0 auto;
}
.loader-stars-img {
    width: 100%;
    height: auto;
    animation: starGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(0,180,255,0.4));
    will-change: filter, transform;
}
@keyframes starGlow {
    0%   { filter: drop-shadow(0 0 4px rgba(0,180,255,0.25)); transform: scale(1); }
    25%  { filter: drop-shadow(0 0 10px rgba(0,160,255,0.45)); transform: scale(1.02); }
    50%  { filter: drop-shadow(0 0 20px rgba(0,180,255,0.65))
                   drop-shadow(0 0 40px rgba(0,120,255,0.25)); transform: scale(1.05); }
    75%  { filter: drop-shadow(0 0 10px rgba(0,160,255,0.45)); transform: scale(1.02); }
    100% { filter: drop-shadow(0 0 4px rgba(0,180,255,0.25)); transform: scale(1); }
}

/* ============================================================
   HIDE-INFO COMPACT MODE
   ============================================================ */
body.hide-info .caption,
body.hide-info .card-caption {
    display: none;
}
body.hide-info .thumbnail,
body.hide-info .card-thumb {
    cursor: pointer;
}
body.hide-info .thumbnail.info-visible .caption,
body.hide-info .thumbnail.info-visible .card-caption,
body.hide-info .card-thumb.info-visible .card-caption {
    display: block;
}

/* ============================================================
   LAZY-LOAD IMAGE FADE-IN
   ============================================================ */
.lazy-img {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lazy-img.loaded {
    opacity: 1;
}

/* ============================================================
   REORDER CARDS PAGE
   ============================================================ */
.reorder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.card-item {
    border: 2px solid #ccc;
    border-radius: 0.5rem;
    padding: 0.75rem;
    background: #fff;
    cursor: move;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.card-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}
.card-item.dragging {
    opacity: 0.5;
    background: #f0f0f0;
}
.card-item.drag-over {
    border-color: #007bff;
    background: #e7f3ff;
    box-shadow: 0 0 12px rgba(0,123,255,0.3);
}
.card-item img {
    width: 100%;
    height: 10rem;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.card-item-info {
    font-size: 0.75rem;
    line-height: 1.4;
}
.card-item-info small { color: #666; }

/* ============================================================
   PANELS / ABOUT PAGE
   ============================================================ */
.panel {
    border-radius: 0.5rem !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.about-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0.9375rem;
}
.feature-list {
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* ============================================================
   ACCESS RESTRICTED
   ============================================================ */
.access-restricted {
    text-align: center;
    margin-top: 2.5rem;
}

/* ============================================================
   MODAL DROP AREAS  (edit card modal, album icon modals)
   ============================================================ */
.modal-drop-area {
    border: 2px dashed #ccc;
    border-radius: 0.5rem;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}
.modal-drop-area:hover,
.modal-drop-area.drag-over {
    background: #e3f2fd;
    border-color: #2196F3;
}
.modal-drop-area p { margin: 0; color: #666; }
.modal-drop-area .drop-hint {
    margin: 5px 0 0;
    font-size: 0.75rem;
    color: #999;
}
.modal-preview {
    margin-top: 0.625rem;
    text-align: center;
}
.modal-preview img {
    max-width: 11.25rem;
    max-height: 11.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ============================================================
   RESPONSIVE — LARGE SCREENS  (scale up for readability)
   ============================================================ */
@media (min-width: 1920px) {
    html { font-size: 17px; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.empty-state { margin-top: 1.25rem; color: #555; }
.d-inline { display: inline; margin: 0; }
.limited-qty-input { max-width: 10rem; }
.text-bold { font-weight: bold; }
.modal-icon-preview { max-width: 180px; max-height: 180px; }

/* req-met / req-unmet for registration password */
.req-met { color: #27ae60; }
.req-met .req-icon::before { content: '\2611'; }
.req-unmet { color: #95a5a6; }
