:root {
    --bcp-blue: #0093DD;
    --bcp-navy: #29176E;
    --bcp-red: #DA251C;
    --bcp-white: #FFFFFF;

    /* extra accent colors for a livelier, less flat feel */
    --bcp-gold: #F5A623;
    --bcp-teal: #17A398;
    --bcp-violet: #7B5EA7;
    --bcp-sky: #4FC3F7;
}

body {
    background: linear-gradient(180deg, #eaf5fc 0%, #f4f6f9 220px, #f4f6f9 100%);
    min-height: 100vh;
}

/* ---------- Navbar (school branding) ---------- */
.navbar.bcp-navbar {
    background: linear-gradient(90deg, var(--bcp-navy) 0%, #3b2394 100%) !important;
    border-bottom: 3px solid var(--bcp-red);
}

.bcp-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.bcp-navbar .navbar-brand img {
    height: 36px;
    width: auto;
}

.bcp-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
}

.bcp-navbar .nav-link:hover {
    color: var(--bcp-white) !important;
}

.bcp-navbar .badge.bg-secondary {
    background-color: var(--bcp-blue) !important;
}

/* ---------- Buttons ---------- */
.btn-primary {
    background-color: var(--bcp-blue);
    border-color: var(--bcp-blue);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--bcp-navy);
    border-color: var(--bcp-navy);
}

.btn-outline-primary {
    color: var(--bcp-blue);
    border-color: var(--bcp-blue);
}

.btn-outline-primary:hover {
    background-color: var(--bcp-blue);
    border-color: var(--bcp-blue);
}

/* ---------- Cards ---------- */
.card {
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.stat-card h2 {
    font-weight: 700;
    color: var(--bcp-navy);
}

/* Colorful top-accent stripe on stat cards, cycling through the palette */
.stat-card {
    border-top: 4px solid var(--bcp-blue);
    position: relative;
    overflow: hidden;
}
.stat-card:nth-of-type(4n+1) { border-top-color: var(--bcp-blue); }
.stat-card:nth-of-type(4n+2) { border-top-color: var(--bcp-red); }
.stat-card:nth-of-type(4n+3) { border-top-color: var(--bcp-teal); }
.stat-card:nth-of-type(4n+4) { border-top-color: var(--bcp-gold); }

/* Highlights the Overdue Books stat card in red when there's at least one overdue item */
.stat-card-alert {
    border-top-color: var(--bcp-red) !important;
}
.stat-card-alert h2 {
    color: var(--bcp-red);
}

/* Mini horizontal bar used in the "Top 5 Most Borrowed" leaderboard widget */
.leaderboard-track {
    height: 6px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.leaderboard-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--bcp-blue), var(--bcp-teal));
    border-radius: 3px;
}
[data-bs-theme="dark"] .leaderboard-track {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Colorful left-accent stripe on book cards, cycling through the palette */
.book-card {
    height: 100%;
    border-left: 4px solid var(--bcp-blue);
}
.col-md-4:nth-of-type(6n+1) .book-card,
.col-md-3:nth-of-type(6n+1) .book-card { border-left-color: var(--bcp-blue); }
.col-md-4:nth-of-type(6n+2) .book-card,
.col-md-3:nth-of-type(6n+2) .book-card { border-left-color: var(--bcp-red); }
.col-md-4:nth-of-type(6n+3) .book-card,
.col-md-3:nth-of-type(6n+3) .book-card { border-left-color: var(--bcp-teal); }
.col-md-4:nth-of-type(6n+4) .book-card,
.col-md-3:nth-of-type(6n+4) .book-card { border-left-color: var(--bcp-gold); }
.col-md-4:nth-of-type(6n+5) .book-card,
.col-md-3:nth-of-type(6n+5) .book-card { border-left-color: var(--bcp-violet); }
.col-md-4:nth-of-type(6n+6) .book-card,
.col-md-3:nth-of-type(6n+6) .book-card { border-left-color: var(--bcp-navy); }

/* Colorful category badges (replaces the plain "bg-light text-dark" look) */
.badge.bg-light.text-dark {
    background-color: var(--bcp-sky) !important;
    color: #063954 !important;
    font-weight: 500;
}

/* ---------- Auth pages ---------- */
.auth-wrapper {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.auth-logo {
    height: 110px;
    width: auto;
    margin-bottom: 12px;
}

.auth-card {
    max-width: 420px;
    width: 100%;
    border-top: 4px solid var(--bcp-red);
}

.auth-card h3 {
    color: var(--bcp-navy);
}

.auth-card a {
    color: var(--bcp-blue);
}

.badge-frequent { background-color: #198754; }
.badge-moderate { background-color: #fd7e14; }
.badge-low { background-color: #6c757d; }

/* ---------- Campus background for AUTH pages only (login, register,
   forgot/reset password, verify email) — dashboard & other system pages
   are untouched since they don't include these two divs. ---------- */
.login-bg-image {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.55) saturate(1.05);
    transform: scale(1.06); /* hide blurred edges from showing */
}

.login-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(6, 20, 45, 0.55) 0%, rgba(6, 20, 45, 0.7) 100%);
}

/* Make sure the login card/logo sit above the fixed background */
.login-bg-image + .login-bg-overlay + .auth-wrapper {
    position: relative;
    z-index: 1;
}

/* ---------- Password show/hide toggle ---------- */
.password-toggle-wrapper {
    position: relative;
}

.password-toggle-wrapper input {
    padding-right: 42px;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    color: #6c757d;
}

.password-toggle-btn:hover {
    color: var(--bcp-navy);
}

/* =========================================================
   HOVER ANIMATIONS — applied globally to clickable elements
   ========================================================= */

/* ---------- Buttons ---------- */
.btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ---------- Cards (stat cards, book cards, forms, tables wrapper) ---------- */
.card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-card:hover,
.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ---------- Links ---------- */
a {
    transition: color 0.15s ease;
}

.auth-card a:hover {
    color: var(--bcp-navy);
    text-decoration: underline;
}

/* ---------- Navbar links ---------- */
.bcp-navbar .nav-link {
    transition: color 0.15s ease, transform 0.15s ease;
    position: relative;
}

.bcp-navbar .nav-link:hover {
    transform: translateY(-1px);
}

.bcp-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--bcp-blue);
    transition: width 0.2s ease;
}

.bcp-navbar .nav-link:hover::after {
    width: 100%;
}

/* ---------- Table rows ---------- */
.table-hover > tbody > tr {
    transition: background-color 0.15s ease;
}

/* ---------- Badges ---------- */
.badge {
    transition: transform 0.15s ease;
}

.badge:hover {
    transform: scale(1.08);
}

/* ---------- Navbar brand (logo + title) ---------- */
.navbar-brand {
    transition: opacity 0.15s ease;
}

.navbar-brand:hover {
    opacity: 0.85;
}

/* ---------- Form inputs — subtle focus lift ---------- */
.form-control,
.form-select {
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 147, 221, 0.2);
    border-color: var(--bcp-blue);
}

/* =========================================================
   APP SHELL — sidebar + top bar dashboard layout
   ========================================================= */

.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- Top bar ---------- */
.app-topbar {
    height: 60px;
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--bcp-navy) 0%, #3b2394 100%);
    border-bottom: 3px solid var(--bcp-red);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.app-brand:hover {
    color: white;
    opacity: 0.9;
}

.app-brand img {
    height: 30px;
    width: auto;
}

.app-search {
    align-items: center;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 6px 12px;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    width: 100%;
    max-width: 420px;
}

/* On wide screens, center the search bar in the middle of the top bar
   regardless of how much space the brand/icons on either side take up. */
@media (min-width: 992px) {
    .app-search {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.app-search input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    flex: 1;
    font-size: 0.85rem;
}

.app-search input::placeholder {
    color: rgba(255,255,255,0.6);
}

.app-topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-clock {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.app-icon-btn {
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.15s ease;
}

.app-icon-btn:hover {
    background: rgba(255,255,255,0.22);
}

.app-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    padding: 5px 12px 5px 6px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: background-color 0.15s ease;
}

.app-user-btn:hover, .app-user-btn:focus {
    background: rgba(255,255,255,0.22);
    color: white;
}

.app-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bcp-blue);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.app-user-menu {
    min-width: 220px;
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ---------- Body: sidebar + main ---------- */
.app-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

.app-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: white;
    border-right: 1px solid #e9ecef;
    padding: 16px 10px;
    overflow-y: auto;
    overflow-x: hidden;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    transition: width 0.28s ease, padding 0.28s ease, border-color 0.28s ease;
}

/* Fixed-width inner wrapper: the text/links never reflow or wrap.
   Only the outer .app-sidebar shrinks (and clips via overflow-x:hidden),
   so collapsing/expanding LOOKS like a smooth side-slide instead of the
   labels reflowing mid-animation. */
.app-sidebar-inner {
    width: 220px;
    transition: opacity 0.15s ease;
}

.sidebar-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9aa1ac;
    padding: 14px 12px 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2px;
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sidebar-link:hover {
    background-color: var(--bcp-sky);
    color: #063954;
    text-decoration: none;
}

.sidebar-link.active {
    background-color: rgba(0, 147, 221, 0.1);
    color: var(--bcp-navy);
    border-left-color: var(--bcp-blue);
    font-weight: 600;
}

.sidebar-icon {
    width: 20px;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Modules na naka-display na sa sidebar pero hindi pa functional
   (walang backend routes/pages pa) — malinaw na naka-badge as "Soon"
   at slightly faded para makilala agad ang di pa gumagana. */
.sidebar-link-soon {
    opacity: 0.6;
    cursor: default;
}
.sidebar-link-soon:hover {
    background-color: transparent;
    color: #495057;
}
.sidebar-soon-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 7px;
}

/* ---------- Book Inventory card grid ---------- */
.book-card {
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.book-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.book-cover {
    height: 90px;
    border-top-left-radius: var(--bs-card-border-radius, 8px);
    border-top-right-radius: var(--bs-card-border-radius, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

/* ---------- Overview hub (all modules as clickable cards) ---------- */
.overview-card {
    color: var(--bs-body-color);
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.overview-card:hover:not(.overview-card-soon) {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: var(--bcp-blue);
}
.overview-card-soon {
    opacity: 0.6;
    cursor: default;
}
.overview-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 10px;
    background-color: var(--bcp-sky);
    color: var(--bcp-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

/* So #my-loans / #my-reservations anchor links don't land flush against
   the sticky topbar when the sidebar link scrolls the student down. */
#my-loans, #my-reservations {
    scroll-margin-top: 76px;
}

/* Count badges shown next to student sidebar links (My Loans /
   My Reservations), reflecting their live transaction counts. */
.sidebar-count-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
}
[data-bs-theme="dark"] .overview-icon {
    background-color: rgba(0, 147, 221, 0.2);
    color: #7fd0ff;
}

.app-sidebar-backdrop {
    display: none;
}

/* ---------- Main content area ---------- */
.app-main {
    flex: 1;
    min-width: 0;
    padding: 24px;
    background: linear-gradient(180deg, #eaf5fc 0%, #f4f6f9 220px, #f4f6f9 100%);
}

/* ---------- Responsive: sidebar becomes an off-canvas drawer on small screens ---------- */
/* Desktop sidebar collapse (toggled by the hamburger button, adds
   more room for content when the sidebar isn't needed) */
@media (min-width: 992px) {
    .app-shell.sidebar-collapsed .app-sidebar {
        width: 0;
        padding-left: 0;
        padding-right: 0;
        border-right-color: transparent;
    }

    /* Fade the labels out quickly so they don't sit half-clipped while
       the outer sidebar is still shrinking. */
    .app-shell.sidebar-collapsed .app-sidebar-inner {
        opacity: 0;
    }
}

@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        left: -260px;
        top: 60px;
        height: calc(100vh - 60px);
        z-index: 1040;
        transition: left 0.2s ease;
        box-shadow: 4px 0 16px rgba(0,0,0,0.1);
    }

    .app-sidebar.open {
        left: 0;
    }

    .app-sidebar-backdrop.show {
        display: block;
        position: fixed;
        inset: 60px 0 0 0;
        background: rgba(0,0,0,0.3);
        z-index: 1035;
    }

    .app-main {
        padding: 16px;
    }
}

/* ---------- Appearance menu: checkmark next to the active theme ---------- */
.theme-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme-option .theme-check {
    opacity: 0;
    color: var(--bcp-blue);
}

.theme-option.active-theme .theme-check {
    opacity: 1;
}

/* =========================================================
   DARK MODE — overrides for custom BCP components
   Bootstrap 5.3's [data-bs-theme="dark"] already re-themes all
   standard Bootstrap components (cards, tables, forms, dropdowns,
   alerts); these rules only adjust our custom classes to match.
   ========================================================= */
[data-bs-theme="dark"] body {
    background: linear-gradient(180deg, #10131a 0%, #1a1d29 220px, #1a1d29 100%);
}

[data-bs-theme="dark"] .app-main {
    background: linear-gradient(180deg, #10131a 0%, #1a1d29 220px, #1a1d29 100%);
}

[data-bs-theme="dark"] .app-sidebar {
    background: #1a1d29;
    border-right-color: #2a2e3d;
}

[data-bs-theme="dark"] .sidebar-link {
    color: #c9ccd3;
}

[data-bs-theme="dark"] .sidebar-link:hover {
    background-color: rgba(0, 147, 221, 0.15);
    color: #eaf5fc;
}

[data-bs-theme="dark"] .sidebar-link.active {
    background-color: rgba(0, 147, 221, 0.2);
    color: #7fd0ff;
}

[data-bs-theme="dark"] .sidebar-section-label {
    color: #6c7280;
}

[data-bs-theme="dark"] .card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

[data-bs-theme="dark"] .auth-card {
    background-color: #1f2333;
}

[data-bs-theme="dark"] .password-toggle-btn {
    color: #9aa1ac;
}

[data-bs-theme="dark"] .badge.bg-light.text-dark {
    background-color: var(--bcp-sky) !important;
    color: #063954 !important;
}

/* Stat card numbers are hardcoded navy (var(--bcp-navy)) for light mode —
   invisible against dark backgrounds, so switch to white/off-white here. */
[data-bs-theme="dark"] .stat-card h2 {
    color: #f1f3f9;
}

/* ---------- Notification bell ---------- */
.dropdown-toggle-no-caret::after {
    display: none;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--bcp-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

.app-notif-menu {
    min-width: 300px;
    max-width: 340px;
}

.app-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    white-space: normal;
    padding: 10px 14px;
    font-size: 0.85rem;
}

.app-notif-icon {
    flex-shrink: 0;
}

.app-notif-danger { border-left: 3px solid var(--bcp-red); }
.app-notif-warning { border-left: 3px solid var(--bcp-gold); }
.app-notif-info { border-left: 3px solid var(--bcp-blue); }
.app-notif-success { border-left: 3px solid #198754; }

/* Row wrapper for a notification item + its dismiss (✕) button side by side */
.app-notif-row {
    display: flex;
    align-items: stretch;
}
.app-notif-dismiss {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #9aa1ac;
    padding: 0 12px;
    font-size: 0.8rem;
    transition: color 0.15s ease;
}
.app-notif-dismiss:hover {
    color: var(--bcp-red);
}

.unread-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--bcp-red);
    margin-right: 6px;
    flex-shrink: 0;
}

/* ---------- Vertical timeline (used by Student > My History,
   instead of a plain table) ---------- */
.timeline {
    position: relative;
    padding-left: 40px;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--bs-border-color, #dee2e6);
}
.timeline-item {
    position: relative;
    margin-bottom: 1rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: -40px;
    top: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 0 0 4px var(--bs-body-bg, #fff);
}
.timeline-dot-returned { background-color: #198754; }
.timeline-dot-borrowed { background-color: var(--bcp-blue); }
.timeline-dot-overdue { background-color: var(--bcp-red); }

/* ---------- Profile hero (used by My Profile / My Account pages) ---------- */
.profile-hero {
    background: linear-gradient(120deg, var(--bcp-navy) 0%, var(--bcp-blue) 100%);
    border-radius: 12px;
    padding: 32px 28px 60px;
    position: relative;
    color: #fff;
    overflow: hidden;
}
.profile-hero::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.profile-hero::after {
    content: "";
    position: absolute;
    bottom: -60px;
    right: 60px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.profile-avatar-xl {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #fff;
    color: var(--bcp-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    border: 4px solid rgba(255,255,255,0.5);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.profile-hero-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.profile-hero-email {
    opacity: 0.85;
    font-size: 0.9rem;
}
.profile-info-strip {
    margin-top: -40px;
    position: relative;
    z-index: 2;
}
.profile-info-card {
    background: var(--bs-body-bg, #fff);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 14px 16px;
    height: 100%;
}
.profile-info-card .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9aa1ac;
    font-weight: 700;
    margin-bottom: 4px;
}
.profile-info-card .value {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ---------- Tinted panels that need a visible dark-mode variant
   (plain rgba(0,0,0,X) or very-light color tints are nearly invisible
   once the page background itself is dark) ---------- */
.tint-panel-primary {
    background: linear-gradient(135deg, rgba(0,147,221,0.08), rgba(0,147,221,0.03));
}
[data-bs-theme="dark"] .tint-panel-primary {
    background: linear-gradient(135deg, rgba(0,147,221,0.22), rgba(0,147,221,0.10));
}

.tint-panel-muted {
    background-color: rgba(0,0,0,0.03);
}
[data-bs-theme="dark"] .tint-panel-muted {
    background-color: rgba(255,255,255,0.06);
}

.tint-panel-danger {
    background-color: rgba(218,37,28,0.05);
}
[data-bs-theme="dark"] .tint-panel-danger {
    background-color: rgba(218,37,28,0.18);
}

/* ---------- Smooth navigation transitions ---------- */
@keyframes appMainFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.app-main {
    animation: appMainFadeIn 0.25s ease-out;
}
.app-main.page-leaving {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.12s ease-in, transform 0.12s ease-in;
}
@media (prefers-reduced-motion: reduce) {
    .app-main { animation: none; }
    .app-main.page-leaving { transition: none; opacity: 1; transform: none; }
}
