﻿/* === 🔹 Pre-paint fallback before dark-mode JS runs === */
html.dark-init, body.dark-mode {
    background: linear-gradient(160deg, #0b1628 0%, #0e223f 50%, #0a192f 100%);
    color: #e9ecef;
}


/* === 🔹 Motion Preferences === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* === 🔹 Responsive Breakpoints === */
@media (max-width: 1200px) { /* Large laptops */
}

@media (max-width: 992px) {
    .neo-card {
        min-height: 120px;
    }

    .metric-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .neo-card {
        margin-bottom: 0.75rem;
    }

    .metric-value {
        font-size: 1.2rem;
    }
}


@media (max-width: 768px) {
    .executive-summary {
        flex-direction: column;
    }

        .executive-summary .col-md-6,
        .executive-summary .col-md-7 {
            width: 100%;
        }

    .neo-card .card-body {
        padding: 0.9rem 0.8rem;
    }
}

:root {
    /* === Keridan Neon Palette === */
    --keridan-cyan: #00e5ff;
    --keridan-blue: #0a192f;
    --keridan-dark: #0e223f;
    --keridan-orange: #ff8800;
    --keridan-yellow: #ffcc00;
    --keridan-glass: rgba(255, 255, 255, 0.08);
    --keridan-border: rgba(255, 255, 255, 0.18);
    --keridan-text: #dadada;
}


/* === 🔹 Frosted Glass Global Theme === */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Cool dark gradient base */
    background: linear-gradient(160deg, #0b1628 0%, var(--keridan-dark) 50%, var(--keridan-blue) 100%);
    background-size: 200% 200%;
    animation: gradientShift 25s ease infinite;
    color: #e9ecef;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.container {
    max-width: 1320px;
}

@media (min-width: 1600px) {
    .container {
        max-width: 1480px;
    }
}

@media (max-width: 576px) {
    h2, .section-title {
        font-size: 1.25rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.45rem;
    }

    .btn, .neon-btn {
        font-size: 0.8rem;
    }
}



/* Smooth animated gradient */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* Ensure main content expands properly */
main {
    flex: 1;
    margin-bottom: 2rem;
    padding-bottom: 80px; /* Prevent footer from blocking form buttons */
}

/* Responsive tweak: reduce bottom padding on small screens */
@media (max-width: 576px) {
    main {
        padding-bottom: 60px;
    }
}

/* === 🔹 Frosted Login Card === */
.card {
    background: var(--keridan-glass);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.05);
    color: #f1f1f1;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
    }

/* Footer always at bottom */
footer {
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem 0;
    text-align: center;
}

    /* === 🔹 Frosted Footer === */
    footer.glassy-footer {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(255, 255, 255, 0.25);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
        color: #e9ecef;
        text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
        transition: background 0.5s ease;
    }

        footer.glassy-footer:hover {
            background: rgba(255, 255, 255, 0.25);
        }


/* === Smooth transitions === */
body,
body .card,
body .form-control,
body .table,
body .alert,
body .btn,
body footer,
body header,
body main {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Smooth transitions for badges */
.status-badge,
.role-clientadmin,
.role-systemadmin,
.role-clerk,
.role-supervisor,
.role-inactive,
.action-create,
.action-update,
.action-delete,
.action-assign,
.action-revoke {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Smooth transitions for tables */
.table,
.table th,
.table td,
.table-striped tbody tr {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Smooth transitions for all common UI elements */
.card,
.accordion-button,
.accordion-body,
.list-group-item,
.nav-tabs .nav-link,
.progress,
.progress-bar,
.dropdown-menu,
.dropdown-item,
.modal-content,
.alert,
footer,
header,
.pagination,
.form-control,
.form-select,
.form-check-input {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* === Ticket Details Modal === */
.ticket-details-modal {
    font-size: 0.95rem;
}

/* Description block with standout background */
.ticket-description {
    background: linear-gradient(135deg, rgba(0,229,255,0.05), rgba(0,229,255,0.1));
    border-left: 4px solid var(--keridan-cyan);
    padding: 1rem;
    border-radius: 8px;
    font-style: italic;
    font-family: "IBM Plex Mono", monospace; /* differentiate from rest */
    color: #e0f7ff;
    text-shadow: 0 0 6px rgba(0,229,255,0.6);
}

/* === Neon Modal Fade-in Animation === */
@keyframes neonFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.92);
        box-shadow: 0 0 0 rgba(0, 229, 255, 0);
    }

    60% {
        opacity: 1;
        transform: scale(1.02);
        box-shadow: 0 0 25px rgba(0, 229, 255, 0.35);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
    }
}

.neon-glass {
    animation: neonFadeIn 0.45s ease-out;
    background: rgba(10, 25, 47, 0.88);
    border: 1px solid rgba(0, 229, 255, 0.25);
    backdrop-filter: blur(12px);
    color: #dadada;
    border-radius: 0.75rem;
}

/* === Spinner fade-out === */
.ticket-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 10, 20, 0.65);
    backdrop-filter: blur(6px);
    z-index: 2050;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .ticket-loading-overlay.active {
        display: flex;
        opacity: 1;
    }

    .ticket-loading-overlay.hide {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }



/* Neon Action Buttons */
.neon-btn-danger {
    color: #fff;
    border: 1px solid #dc3545;
    background: transparent;
    text-shadow: 0 0 4px rgba(220,53,69,0.9);
    box-shadow: 0 0 6px rgba(220,53,69,0.6);
    transition: all 0.3s ease-in-out;
}

    .neon-btn-danger:hover {
        background: #dc3545;
        color: #fff;
        box-shadow: 0 0 12px rgba(220,53,69,1), 0 0 24px rgba(220,53,69,0.8);
    }

.neon-btn-warning {
    color: #212529;
    border: 1px solid #ffc107;
    background: transparent;
    text-shadow: 0 0 4px rgba(255,193,7,0.9);
    box-shadow: 0 0 6px rgba(255,193,7,0.6);
    transition: all 0.3s ease-in-out;
}

    .neon-btn-warning:hover {
        background: #ffc107;
        color: #212529;
        box-shadow: 0 0 12px rgba(255,193,7,1), 0 0 24px rgba(255,193,7,0.8);
    }


/* === Neon Details Button === */
.neon-btn {
    color: var(--keridan-cyan);
    border: 1px solid var(--keridan-cyan);
    background: transparent;
    transition: all 0.3s ease-in-out;
    text-shadow: 0 0 4px rgba(0,229,255,0.8);
    box-shadow: 0 0 6px rgba(0,229,255,0.4);
}

    .neon-btn:hover, .neon-btn:focus {
        color: #121212;
        background: var(--keridan-cyan);
        text-shadow: none;
        box-shadow: 0 0 12px rgba(0,229,255,0.9), 0 0 24px rgba(0,229,255,0.7);
        transform: scale(1.05);
    }


/* === 🔹 Refined Neon Alerts (Keridan Glass Edition) === */
.neon-alert {
    width: 100%;
    border-radius: 14px;
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #f8f9fa;
    background: rgba(10, 25, 47, 0.55); /* frosted background */
    border: 1px solid rgba(0, 229, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.08), inset 0 0 6px rgba(0, 229, 255, 0.05);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    /* === Variants === */
    .neon-alert.critical {
        background: linear-gradient(90deg, rgba(220,53,69,0.15), rgba(220,53,69,0.05));
        border-color: rgba(220,53,69,0.25);
        box-shadow: 0 0 14px rgba(220,53,69,0.4);
    }

    .neon-alert.high {
        background: linear-gradient(90deg, rgba(255,193,7,0.15), rgba(255,193,7,0.05));
        border-color: rgba(255,193,7,0.25);
        box-shadow: 0 0 14px rgba(255,193,7,0.4);
    }

    .neon-alert.success {
        background: linear-gradient(90deg, rgba(40,167,69,0.15), rgba(40,167,69,0.05));
        border-color: rgba(40,167,69,0.25);
        box-shadow: 0 0 14px rgba(40,167,69,0.4);
    }

    .neon-alert.info {
        background: linear-gradient(90deg, rgba(0,229,255,0.15), rgba(0,229,255,0.05));
        border-color: rgba(0,229,255,0.25);
        box-shadow: 0 0 14px rgba(0,229,255,0.4);
    }

    .neon-alert i {
        margin-right: 0.6rem;
        font-size: 1.1rem;
        color: var(--keridan-cyan);
    }

    .neon-alert button {
        background: transparent;
        border: none;
        color: #ccc;
        font-size: 1.1rem;
        transition: color 0.2s ease;
    }

        .neon-alert button:hover {
            color: var(--keridan-cyan);
        }

/* Subtle entry animation */
@keyframes alertFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.neon-alert {
    animation: alertFadeIn 0.4s ease;
}


body.dark-mode .neon-alert {
    color: #f8f9fa;
}



/* Mobile friendly */
@media (max-width: 576px) {
    .neon-alert {
        flex-direction: column;
        align-items: flex-start !important;
    }

        .neon-alert button {
            align-self: flex-end;
            margin-top: 0.5rem;
        }
}

/* === Gauge Glow & Pulse === */
.gauge-danger {
    box-shadow: 0 0 12px rgba(220,53,69,0.9), 0 0 24px rgba(220,53,69,0.6);
    animation: pulse-red 2s infinite;
}

.gauge-warning {
    box-shadow: 0 0 12px rgba(255,69,0,0.9), 0 0 24px rgba(255,69,0,0.6);
    animation: pulse-orange 2s infinite;
}

.gauge-ok {
    box-shadow: 0 0 8px rgba(0,229,255,0.7), 0 0 16px rgba(0,229,255,0.5);
    animation: pulse-cyan 4s infinite;
}


@keyframes pulse-red {
    0% {
        box-shadow: 0 0 10px rgba(220,53,69,0.7);
    }

    50% {
        box-shadow: 0 0 25px rgba(220,53,69,1);
    }

    100% {
        box-shadow: 0 0 10px rgba(220,53,69,0.7);
    }
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 10px rgba(255,69,0,0.7);
    }

    50% {
        box-shadow: 0 0 25px rgba(255,69,0,1);
    }

    100% {
        box-shadow: 0 0 10px rgba(255,69,0,0.7);
    }
}

@keyframes pulse-cyan {
    0% {
        box-shadow: 0 0 10px rgba(0,229,255,0.7);
    }

    50% {
        box-shadow: 0 0 20px rgba(0,229,255,1);
    }

    100% {
        box-shadow: 0 0 10px rgba(0,229,255,0.7);
    }
}


/* === Neon Charts === */
/* === Circular Gauge Wrapper === */
.gauge-wrapper {
    max-width: 220px;
    margin: auto;
    position: relative;
    border-radius: 50%; /* ensures glow is round */
    padding: 12px; /* space for glow to spread */
}

/* Keep center text aligned */
/* === 🔹 Gauge Visual Refinement === */
.gauge-center {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-value {
    display: block;
    margin-bottom: .25rem;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--keridan-cyan);
    text-shadow: 0 0 10px rgba(0,229,255,0.6);
}

.metric-value, .gauge-value {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: -0.5px;
}

/* shrink badge and glow */
.badge-critical, .badge-warning, .badge-good {
    display: inline-block;
    font-size: .75rem;
    padding: .35rem .55rem;
    border-radius: 8px;
}

.kpi-context {
    margin-top: .5rem;
    font-size: .85rem;
    letter-spacing: .2px;
}


.neon-table thead th {
    background-color: #1f1f1f;
    color: var(--keridan-cyan);
    border-bottom: 1px solid #333;
}

.neon-table tbody tr:hover {
    background-color: rgba(0,229,255,0.05);
}

.neon-table td {
    white-space: normal; /* allow wrapping */
    word-break: break-word; /* break long words if needed */
}

.scrollable-table {
    max-height: 35vh;
    overflow-y: auto;
}

@media (max-height: 700px) {
    .scrollable-table {
        max-height: 28vh;
    }
}

/* === Neon KPI Cards === */
.neo-card {
    background-color: #1e1e1e;
    border-radius: 16px;
    border: none;
    overflow: hidden;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
}

/* Unified card/glass look */
.neo-card, .kpi-card, .ticket-card {
    border-radius: 20px;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 20px rgba(0,229,255,0.08);
    transition: all .3s ease;
}

    /* Hover lift & glow */
    .kpi-card:hover, .ticket-card:hover, .neo-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 18px rgba(0,229,255,0.3);
    }

    .kpi-card:active {
        transform: scale(0.98);
    }

    .neo-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 0 20px rgba(0,229,255,0.3);
    }

    .neo-card .card-body {
        padding: 1.25rem;
    }

/* === 🔹 KPI Glow & Motion Enhancements === */

.glow-on-hover {
    transition: all 0.3s ease;
}

    .glow-on-hover:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 18px rgba(0,229,255,0.3);
    }

.metric-value {
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
}

/* Accent bar glow */
.neo-card .accent-bar {
    height: 5px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, var(--keridan-cyan), #00b4d8, #0096c7);
    box-shadow: 0 0 12px rgba(0,229,255,.4);
}


/* Accent colors per card */
.kpi-books .accent-bar {
    background: linear-gradient(90deg, var(--keridan-cyan), #00bfff);
}

.kpi-accounts .accent-bar {
    background: linear-gradient(90deg, #ff6600, #ff3c00);
}

.kpi-value .accent-bar {
    background: linear-gradient(90deg, #6f42c1, #b23cff);
}

.kpi-collections .accent-bar {
    background: linear-gradient(90deg, #28a745, #20c997);
}

/* Section spacing rhythm */
.section {
    margin-bottom: 2.5rem;
}

.row.g-4 > [class*='col'] {
    margin-bottom: 1.5rem;
}

/* Headings */
h2, h3.section-title {
    color: var(--keridan-cyan);
    letter-spacing: .5px;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* KPI Value emphasis */
.kpi-card h3, .metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

/* Ticket cards with left priority indicator */
.ticket-card {
    position: relative;
    border-radius: 18px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    background: rgba(0,0,0,.45);
    box-shadow: 0 0 10px rgba(0,229,255,.05);
}

    .ticket-card[data-priority="Critical"] {
        border-left: 5px solid #dc3545;
    }

    .ticket-card[data-priority="Medium"] {
        border-left: 5px solid #00b74a;
    }

    .ticket-card[data-priority="Low"] {
        border-left: 5px solid var(--keridan-cyan);
    }


/* Gradient icons */
.text-gradient {
    background: linear-gradient(45deg, #ff3c00, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dark mode integration */
body.dark-mode .neo-card {
    background-color: #1e1e1e;
    color: #f8f9fa;
}


/* === Dark mode base === */
body.dark-mode {
    background: linear-gradient(160deg, #0b1628 0%, var(--keridan-dark) 50%, var(--keridan-blue) 100%);
    color: #e9ecef;
    /* Firefox scrollbar */
    scrollbar-color: #444 #1e1e1e;
    scrollbar-width: thin;
}

    /* Dark mode scrollbars */
    body.dark-mode ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    body.dark-mode ::-webkit-scrollbar-track {
        background: #1e1e1e;
    }

    body.dark-mode ::-webkit-scrollbar-thumb {
        background-color: #444;
        border-radius: 5px;
        border: 2px solid #1e1e1e;
    }

        body.dark-mode ::-webkit-scrollbar-thumb:hover {
            background-color: #666;
        }

    /* === Dark mode cards === */
    body.dark-mode .card {
        background-color: #1e1e1e;
        color: #e9ecef;
        border: 1px solid #444;
    }

    /* === Dark mode forms === */
    body.dark-mode .form-label {
        color: #e9ecef;
    }

    body.dark-mode .form-control,
    body.dark-mode .form-select {
        background-color: #2c2c2c;
        color: #f1f1f1;
        border: 1px solid #444;
    }

        body.dark-mode .form-control:focus,
        body.dark-mode .form-select:focus {
            background-color: #333;
            color: #fff;
            border-color: var(--keridan-cyan);
            box-shadow: 0 0 0 0.2rem rgba(0, 229, 255, 0.25);
        }

    body.dark-mode .form-check-input {
        background-color: #2c2c2c;
        border: 1px solid #666;
    }

        body.dark-mode .form-check-input:checked {
            background-color: var(--keridan-cyan);
            border-color: var(--keridan-cyan);
        }

    body.dark-mode .form-check-label {
        color: #e9ecef;
    }

    body.dark-mode input::placeholder,
    body.dark-mode textarea::placeholder {
        color: #aaa;
    }

    /* === Dark mode tables === */
    body.dark-mode .table {
        background-color: #1e1e1e;
        color: #e9ecef;
    }

        body.dark-mode .table th {
            background-color: #343a40;
            color: #f8f9fa;
        }

    body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
        background-color: rgba(255, 255, 255, 0.05);
    }

    body.dark-mode .table-striped tbody tr:nth-of-type(even) {
        background-color: rgba(255, 255, 255, 0.02);
    }

    body.dark-mode .table td,
    body.dark-mode .table th {
        border-color: #444;
    }

    /* === Dark mode badges === */
    body.dark-mode .status-badge {
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    }
    /* Status */
    body.dark-mode .status-pending {
        background-color: #ffc107;
        color: #212529;
    }

    body.dark-mode .status-approved {
        background-color: #28a745;
        color: #fff;
    }

    body.dark-mode .status-rejected {
        background-color: #dc3545;
        color: #fff;
    }

    body.dark-mode .status-inactive {
        background-color: #6c757d;
        color: #fff;
    }

    body.dark-mode .status-active {
        background-color: #0d6efd;
        color: #fff;
    }
    /* Roles */
    body.dark-mode .role-clientadmin {
        background-color: #0d6efd;
        color: #fff;
    }

    body.dark-mode .role-systemadmin {
        background-color: #6f42c1;
        color: #fff;
    }

    body.dark-mode .role-clerk {
        background-color: #20c997;
        color: #fff;
    }

    body.dark-mode .role-supervisor {
        background-color: #fd7e14;
        color: #fff;
    }

    body.dark-mode .role-inactive {
        background-color: #6c757d;
        color: #fff;
    }
    /* Actions */
    body.dark-mode .action-create {
        background-color: #198754;
        color: #fff;
    }

    body.dark-mode .action-update {
        background-color: #0d6efd;
        color: #fff;
    }

    body.dark-mode .action-delete {
        background-color: #dc3545;
        color: #fff;
    }

    body.dark-mode .action-assign {
        background-color: #fd7e14;
        color: #fff;
    }

    body.dark-mode .action-revoke {
        background-color: #6c757d;
        color: #fff;
    }

/* === Sticky table headers (light & dark) === */
.table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bs-body-bg);
}

body.dark-mode .table-sticky {
    background-color: #1e1e1e;
    color: #e9ecef;
}

    body.dark-mode .table-sticky thead th {
        background-color: #1f2428 !important; /* strong contrast in dark mode */
        color: #e9ecef !important;
        border-color: #343a40 !important;
    }

/* === Dropdowns inside scrollable tables === */
.table-responsive .dropdown-menu {
    z-index: 1060; /* above sticky header & pager */
}
/* If you add .dropdown-visible to the wrapper, let menus escape entirely */
.dropdown-visible {
    overflow: visible;
}

/* === 🔹 Final fix for dropdown inside tables === */
.table-responsive,
.table-responsive.dropdown-visible {
    overflow: visible !important;
    position: relative !important;
}

body.dark-mode .dropdown-menu {
    position: absolute !important;
    z-index: 5000 !important;
    inset: auto auto auto 0 !important;
    transform: translate3d(0, 0, 0) !important;
    will-change: transform;
}

/* Neon pulse when open */
@keyframes dropdownPulse {
    0%,100% {
        box-shadow: 0 0 12px rgba(0,229,255,0.15);
    }

    50% {
        box-shadow: 0 0 22px rgba(0,229,255,0.4);
    }
}

body.dark-mode .dropdown-menu.show {
    background: rgba(15,20,25,0.9);
    border: 1px solid rgba(0,229,255,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    animation: dropdownPulse 1.6s infinite ease-in-out;
}


/* Kebab (3-dot) actions button */
.btn-kebab {
    --size: 2rem;
    width: var(--size);
    height: var(--size);
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

    .btn-kebab .kebab {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .btn-kebab:hover {
        background-color: rgba(0,0,0,.05);
    }

body.dark-mode .btn-kebab:hover {
    background-color: rgba(255,255,255,.08);
}

/* ensure dropdowns are visible above scrollable table wrappers */
.table-responsive .dropdown-menu {
    z-index: 1060;
}

.dropdown-visible {
    overflow: visible;
}

/* Global loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    flex-direction: column;
    opacity: 0; /* Start transparent */
    visibility: hidden; /* Not clickable */
    transition: opacity 0.4s ease, visibility 0.4s ease; /* Smooth fade */
}

    .loading-overlay.active {
        opacity: 1; /* Fully visible */
        visibility: visible; /* Clickable */
    }


    /*.loading-overlay.active {
        display: flex;
    }*/

    /* Neon spinner */
    .loading-overlay .spinner-border {
        width: 3rem;
        height: 3rem;
        border-width: .3rem;
        color: var(--keridan-cyan);
        animation: neon-pulse 1.5s infinite;
        box-shadow: 0 0 20px rgba(0,229,255,0.8), 0 0 40px rgba(0,229,255,0.6);
    }

/* === Neon Toasts === */
.toast {
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0,229,255,0.4);
    font-size: 0.9rem;
}

    .toast.text-bg-success {
        background: linear-gradient(90deg, #20c997, var(--keridan-cyan));
        color: #fff;
        text-shadow: 0 0 4px rgba(0,229,255,0.8);
        box-shadow: 0 0 12px rgba(0,229,255,0.8);
    }

    .toast.text-bg-danger {
        background: linear-gradient(90deg, #dc3545, #ff0033);
        color: #fff;
        text-shadow: 0 0 6px rgba(255,0,70,0.9);
        box-shadow: 0 0 15px rgba(255,0,70,0.9);
    }

    .toast.text-bg-warning {
        background: linear-gradient(90deg, var(--keridan-orange), var(--keridan-yellow));
        color: #212529;
        font-weight: 600;
        box-shadow: 0 0 12px rgba(255,193,7,0.9);
    }

    .toast.text-bg-info {
        background: linear-gradient(90deg, #00bfff, var(--keridan-cyan));
        color: #fff;
        text-shadow: 0 0 4px rgba(0,229,255,0.8);
        box-shadow: 0 0 12px rgba(0,229,255,0.7);
    }

/* === Neon Spinner inside Overlay === */
.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--keridan-cyan); /* Neon cyan */
    filter: drop-shadow(0 0 6px rgba(0,229,255,0.8));
    animation: spinPulse 1.2s linear infinite;
}

.loading-overlay .overlay-message {
    margin-top: 1rem;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(0,229,255,0.8), 0 0 12px rgba(0,229,255,0.6);
}

@keyframes spinPulse {
    0% {
        transform: rotate(0deg);
        filter: drop-shadow(0 0 6px rgba(0,229,255,0.8));
    }

    50% {
        transform: rotate(180deg);
        filter: drop-shadow(0 0 20px rgba(0,229,255,1));
    }

    100% {
        transform: rotate(360deg);
        filter: drop-shadow(0 0 6px rgba(0,229,255,0.8));
    }
}

/* === Neon Processing Text === */
.loading-overlay p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--keridan-cyan);
    text-shadow: 0 0 6px rgba(0,229,255,0.8), 0 0 12px rgba(0,229,255,0.6), 0 0 20px rgba(0,229,255,0.5);
    letter-spacing: 1px;
    animation: textPulse 2s infinite;
}

/* 🔹 Glassy Keridan Navbar */
.navbar-black {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: background 0.5s ease, box-shadow 0.3s ease;
    min-height: 56px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

    .navbar-black.navbar-solid {
        background: rgba(255, 255, 255, 0.25);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    }

    /* Frosted text look */
    .navbar-black .navbar-brand,
    .navbar-black .nav-link {
        color: #f8f9fa !important;
        text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    }

        .navbar-black .nav-link:hover {
            color: var(--keridan-cyan) !important;
        }



    .navbar-black::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top left, rgba(0,229,255,0.15), transparent 70%);
        pointer-events: none;
        z-index: -1;
    }

@media (max-width: 576px) {
    .navbar-black .navbar-toggler {
        border: none;
        box-shadow: none;
    }

    .navbar-black .navbar-toggler-icon {
        filter: invert(1) drop-shadow(0 0 2px var(--keridan-cyan));
    }

    .profile-avatar {
        width: 32px;
        height: 32px;
    }

    .btn-currency {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

.btn-currency {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--keridan-cyan, #00e5ff);
    font-weight: 500;
    border-radius: 10px;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
}

    .btn-currency:hover {
        background: rgba(0, 229, 255, 0.2);
    }

    .btn-currency[aria-disabled="true"],
    .btn-currency:disabled {
        opacity: .85;
        pointer-events: none;
    }

.flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
}

.dropdown-menu.glassy {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

    .dropdown-menu.glassy .dropdown-item {
        color: #dadada;
    }

        .dropdown-menu.glassy .dropdown-item:hover,
        .dropdown-menu.glassy .dropdown-item.active {
            background-color: rgba(0, 229, 255, 0.2);
            color: #00e5ff;
        }


/* === Prominent Login Logo === */
.login-logo {
    height: 110px; /* 🔹 bigger and bolder */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.9)) drop-shadow(0 0 16px rgba(255, 140, 0, 0.7));
    transition: transform 0.4s ease, filter 0.4s ease;
}

    .login-logo:hover {
        transform: scale(1.05);
        filter: drop-shadow(0 0 12px rgba(0, 229, 255, 1)) drop-shadow(0 0 20px rgba(255, 140, 0, 1));
    }


/* 🔹 Logo */
.logo-img {
    height: 40px;
    margin-top: 2px;
    margin-bottom: 2px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
    transition: transform 0.3s ease;
}

    .logo-img:hover {
        transform: scale(1.07);
        filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.9));
    }

/* 🔹 Optional logo halo (if using .logo-backdrop wrapper) */
.logo-backdrop {
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    padding: 4px;
}

/* 🔹 Text & Links */
.navbar-black .navbar-brand,
.navbar-black .nav-link {
    color: var(--keridan-text) !important;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

    .navbar-black .navbar-brand:hover,
    .navbar-black .nav-link:hover {
        color: var(--keridan-cyan) !important;
        text-shadow: 0 0 8px var(--keridan-cyan);
    }

/* 🔹 Dropdown Menu */
.navbar-black .dropdown-menu {
    background-color: rgba(10, 25, 47, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.navbar-black .dropdown-item {
    color: var(--keridan-text) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .navbar-black .dropdown-item:hover {
        background-color: var(--keridan-cyan) !important;
        color: var(--keridan-blue) !important;
    }




.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--keridan-cyan);
    box-shadow: 0 0 8px rgba(0,229,255,0.6);
    transition: box-shadow 0.3s ease;
}

    .profile-avatar:hover {
        box-shadow: 0 0 16px rgba(0,229,255,1);
    }

.username-text {
    color: #fff;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(0,229,255,0.8);
}

/* Dropdown styling */
.navbar-black .dropdown-menu {
    background-color: #111;
    border: 1px solid var(--keridan-cyan);
    box-shadow: 0 0 12px rgba(0,229,255,0.4);
}

.navbar-black .dropdown-item {
    color: #f8f9fa;
    transition: background-color 0.3s;
}

    .navbar-black .dropdown-item:hover {
        background-color: rgba(0,229,255,0.1);
        color: var(--keridan-cyan);
    }

/* Make avatar and progress responsive */
@media (max-width: 576px) {
    #currentAvatar {
        width: 90px;
        height: 90px;
    }
}

#uploadProgress {
    transition: width 0.3s ease;
    font-size: 0.85rem;
}


@keyframes textPulse {
    0% {
        opacity: 0.8;
        text-shadow: 0 0 6px rgba(0,229,255,0.8);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 12px rgba(0,229,255,1), 0 0 24px rgba(0,229,255,0.9);
    }

    100% {
        opacity: 0.8;
        text-shadow: 0 0 6px rgba(0,229,255,0.8);
    }
}

/* Neon pulsing effect */
@keyframes neon-pulse {
    0% {
        box-shadow: 0 0 10px rgba(0,229,255,0.6), 0 0 20px rgba(0,229,255,0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(0,229,255,1), 0 0 60px rgba(0,229,255,0.8);
    }

    100% {
        box-shadow: 0 0 10px rgba(0,229,255,0.6), 0 0 20px rgba(0,229,255,0.4);
    }
}

/* === 🔹 Input fields (frosted form style) === */
.glowing-input .form-control,
.glowing-input .input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #f8f9fa;
}

    .glowing-input .form-control:focus {
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 12px rgba(0,229,255,0.4);
        border-color: rgba(0,229,255,0.6);
    }

/* === Auth-page fixes (Phase 1) === */
.auth-card {
    background: rgba(10, 25, 47, 0.45) !important;
    backdrop-filter: blur(16px) saturate(160%) contrast(95%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(160%) contrast(95%) !important;
    border: 1px solid rgba(0, 229, 255, 0.15) !important;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.15), inset 0 0 12px rgba(0, 229, 255, 0.05) !important;
}

/* Force neon palette back after _Layout.css removal */
body a,
body .nav-link,
body .btn-link {
    color: var(--keridan-cyan);
}

/* Distinct overlay IDs */
#globalOverlay,
#loginOverlay {
    background: rgba(0, 0, 0, 0.7);
}

/* === 🔹 Password Toggle (neon glass theme, fixed position) === */
/* === 🔹 Password Toggle (fixed alignment) === */
#togglePassword {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(0, 229, 255, 0.75);
    height: 1.75rem;
    width: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0.8;
    transform: translateY(-50%) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    #togglePassword:hover {
        color: var(--keridan-cyan);
        box-shadow: 0 0 6px rgba(0,229,255,0.8);
        background: rgba(0,229,255,0.1);
    }

    #togglePassword i {
        pointer-events: none;
        font-size: 1rem;
    }

#passwordBox {
    padding-right: 2.5rem;
}

#passwordBox:focus ~ #togglePassword {
    opacity: 1;
    color: var(--keridan-cyan);
}


.glowing-input input:focus + #togglePassword,
.glowing-input:hover #togglePassword {
    color: var(--keridan-cyan);
}

/* === 🔹 Frosted Glass Consistency === */
.glassy {
    background: var(--keridan-glass);
    border: 1px solid var(--keridan-border);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

    .glassy:hover {
        box-shadow: 0 0 24px rgba(0,229,255,0.25);
    }


/* Safari glass blur fix */
.card, .navbar-black, .glassy-footer, .alert {
    background-color: rgba(10,25,47,0.45); /* fallback */
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
}

input, button, select, textarea {
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

@media (max-width: 992px) {
    .navbar-black {
        position: relative;
    }
}

::-ms-reveal,
::-ms-clear {
    display: none !important;
}

input[type="password"]::-webkit-reveal-button,
input[type="password"]::-webkit-clear-button {
    display: none !important;
}

@media (max-width: 768px) {

    /* Collapse topbar to essentials */
    .navbar-controls {
        display: none;
    }

    .avatar-glow {
        box-shadow: 0 0 6px rgba(0,229,255,.6);
    }

    /* KPI cards in 2-column grid */
    .kpi-card {
        flex: 0 0 48%;
        margin-bottom: 1rem;
        padding: 1.2rem;
    }

    /* Gauge card centering */
    #collectionRateCard {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Clerk cards stacking (temporary, until we replace table) */
    .clerks-table {
        display: none;
    }
    /* optional */
    .clerk-card {
        display: flex;
        align-items: center;
        background: rgba(0,0,0,.4);
        border-radius: 16px;
        margin-bottom: 1rem;
        padding: .8rem 1rem;
    }

        .clerk-card .avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: 2px solid var(--keridan-cyan);
            margin-right: 1rem;
        }
}

/* === 🔹 Table Visual Enhancements === */

.neon-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
}

    .neon-table thead th {
        color: var(--keridan-cyan);
        font-weight: 600;
        border-bottom: 1px solid rgba(0,229,255,0.15);
    }

    .neon-table tbody tr {
        transition: all 0.25s ease;
    }

        .neon-table tbody tr:hover {
            background: rgba(0,229,255,0.06);
            box-shadow: inset 0 0 12px rgba(0,229,255,0.15);
        }

/* Glow badges */
.glow-badge {
    box-shadow: 0 0 6px rgba(0,229,255,0.3);
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
    will-change: transform, opacity;
}

.neo-card,
.gauge-card {
    will-change: transform;
    transform: translateZ(0);
}

/* Neon button tweak */
.neon-btn {
    background: rgba(0,229,255,0.1);
    border: 1px solid rgba(0,229,255,0.3);
    color: var(--keridan-cyan);
    transition: all 0.3s ease;
}

    .neon-btn:hover {
        background: rgba(0,229,255,0.2);
        box-shadow: 0 0 12px rgba(0,229,255,0.4);
        transform: translateY(-1px);
    }

@media (max-width: 768px) {
    .neon-table {
        font-size: 0.8rem;
    }

        .neon-table td.text-truncate {
            max-width: 150px;
        }
}

/* === 🔹 Clerk Performance Styling === */

/* Avatar in table view */
.avatar-thumb {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0,229,255,0.4);
}

/* Mobile card version */
.clerk-card {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 16px;
    padding: .8rem 1rem;
    box-shadow: 0 0 12px rgba(0,229,255,0.06);
    transition: all .3s ease;
}

    .clerk-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 18px rgba(0,229,255,0.25);
    }

    .clerk-card .avatar {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        border: 2px solid var(--keridan-cyan);
        object-fit: cover;
        margin-right: 1rem;
    }

.clerk-info .name {
    color: #fff;
    font-size: 1rem;
}

.clerk-info .metrics .badge {
    font-size: 0.75rem;
    margin-right: .25rem;
}

/* === 🔹 Dashboard Health Badge Themes === */
.badge-critical {
    background: linear-gradient(90deg, #ff0033, #ff4545);
    color: #fff;
    box-shadow: 0 0 10px rgba(255,0,50,0.6);
}

.badge-warning {
    background: linear-gradient(90deg, var(--keridan-orange), var(--keridan-yellow));
    color: #222;
    box-shadow: 0 0 8px rgba(255,136,0,0.5);
}

.badge-good {
    background: linear-gradient(90deg, #00c851, var(--keridan-cyan));
    color: #fff;
    box-shadow: 0 0 8px rgba(0,229,255,0.4);
}

/* === 🔹 Dashboard Layout Tweaks === */
.dashboard-page {
    padding-top: 0.5rem; /* overrides Bootstrap mt spacing */
}


.dashboard-page .section-title {
    color: var(--keridan-cyan);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0,229,255,0.6);
    letter-spacing: 0.3px;
}

.executive-summary {
    margin-bottom: 2.5rem;
}

.hero-gauge {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    box-shadow: 0 0 25px rgba(0,229,255,0.08);
}

@media (max-width: 992px) {
    .hero-gauge {
        margin-bottom: 1.5rem;
    }
}

/* === 🔹 Visual Hierarchy Tiers === */
.kpi-value, .hero-gauge {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
}

.tier-primary {
    box-shadow: 0 0 25px rgba(0,229,255,0.55), 0 0 10px rgba(0,229,255,0.25) inset;
    border: 1px solid rgba(0,229,255,0.45);
    transition: box-shadow 0.3s ease;
}

    .tier-primary:hover {
        box-shadow: 0 0 35px rgba(0,229,255,0.85);
    }

.tier-secondary {
    box-shadow: 0 0 18px rgba(0,229,255,0.25);
    border: 1px solid rgba(0,229,255,0.2);
}

    .tier-secondary:hover {
        box-shadow: 0 0 22px rgba(0,229,255,0.45);
    }

.tier-context {
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: none;
    opacity: 0.95;
}

/* === KPI Typography Hierarchy === */
.kpi-value h6, .kpi-collections h6, .kpi-books h6 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.kpi-value p.display-6 {
    font-size: 2rem;
}

.hero-gauge .gauge-value {
    font-size: 2.2rem;
    font-weight: 700;
}

/* === 🔹 Smart Insight Bar === */
.insight-bar {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 14px;
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    box-shadow: 0 0 15px rgba(0,229,255,0.15);
    color: #e9ecef;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
}

    .insight-bar:hover {
        box-shadow: 0 0 25px rgba(0,229,255,0.3);
    }

.refresh-insight {
    color: var(--keridan-cyan);
    border-color: rgba(0,229,255,0.4);
}

    .refresh-insight:hover {
        background: var(--keridan-cyan);
        color: var(--keridan-blue);
        box-shadow: 0 0 12px rgba(0,229,255,0.6);
    }


/* === Insight chips === */
.insight-chip {
    display: inline-block;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-size: .78rem;
    line-height: 1;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: var(--keridan-text);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    box-shadow: 0 0 10px rgba(0,229,255,0.08);
}

    .insight-chip.chip-good {
        border-color: rgba(0,200,81,.35);
        color: #b9ffd0;
    }

    .insight-chip.chip-warn {
        border-color: rgba(255,136,0,.4);
        color: #ffe0b3;
    }

    .insight-chip.chip-crit {
        border-color: rgba(255,0,51,.45);
        color: #ffc6c6;
    }

    .insight-chip.chip-info {
        border-color: rgba(0,229,255,.35);
        color: #c9f7ff;
    }

    .insight-chip.chip-alert {
        border-color: rgba(255,0,51,.35);
        color: #ffd6d6;
    }

    .insight-chip.chip-muted {
        opacity: .85;
    }

/* Button micro-anim */
.refresh-insight.spin i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* === 🔹 Micro-Interactions === */

/* KPI card hover pulse */
.glow-on-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .glow-on-hover:hover {
        transform: translateY(-4px);
        box-shadow: 0 0 25px rgba(0,229,255,0.45);
    }

/* Gauge smooth appear */
.hero-gauge {
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInUp 0.7s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Count-up animation for numbers */
.kpi-value p,
.kpi-collections p,
.kpi-books p,
.kpi-accounts p {
    transition: color 0.3s ease;
}

.kpi-value:hover p,
.kpi-collections:hover p,
.kpi-books:hover p,
.kpi-accounts:hover p {
    color: var(--keridan-cyan);
}

/* Drilldown hover cursor */
.kpi-card-clickable {
    cursor: pointer;
    outline: none;
}
    .kpi-card-clickable:focus-visible {
        box-shadow: 0 0 0 3px var(--keridan-cyan);
    }

/* === 🔹 Gradient Families === */
.gradient-cool {
    background: linear-gradient(90deg, var(--keridan-cyan), #00bfff, #0096c7);
}

.gradient-warm {
    background: linear-gradient(90deg, var(--keridan-orange), var(--keridan-yellow));
}

.kpi-collections .accent-bar {
    @apply .gradient-cool;
}

.kpi-value .accent-bar {
    @apply .gradient-warm;
}

/* === 🔹 Ambient Glow Grid === */
.ambient-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(circle at 10% 10%, rgba(0,229,255,0.04) 0%, transparent 30%), radial-gradient(circle at 80% 40%, rgba(255,136,0,0.03) 0%, transparent 40%), radial-gradient(circle at 50% 90%, rgba(0,229,255,0.05) 0%, transparent 45%);
    background-color: var(--keridan-blue);
    background-blend-mode: screen;
    animation: ambientShift 20s ease-in-out infinite alternate;
}

@keyframes ambientShift {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

.section-spacer {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .section-spacer {
        margin-top: 1.2rem;
        margin-bottom: 1.2rem;
    }
}

@media (prefers-contrast: more) {
    .text-gradient,
    .metric-value,
    .gauge-value {
        color: #00ffff !important;
        text-shadow: none !important;
    }

    body {
        background: #000 !important;
    }
}

.neon-btn .bi {
    position: relative;
    top: -1px;
}

.neon-alert,
.insight-bar {
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.8rem;
}

.snapshot-panel {
    transition: all 0.4s ease;
}

    .snapshot-panel iframe {
        transition: opacity 0.5s ease;
    }

#pdfPreviewContainer.collapse:not(.show) iframe {
    opacity: 0;
    height: 0;
    pointer-events: none;
}

/* 🔹 Subtle glow to match neon theme */
.neon-viewing-banner {
    border: 1px solid rgba(0, 229, 255, 0.25);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(4px);
}

.neon-table tbody tr:hover {
    background-color: rgba(0, 229, 255, 0.08);
    cursor: pointer;
}

/* === 🔹 Neon Alert Stack Animation (Keridan Slide-in) === */
.neon-alert {
    opacity: 0;
    transform: translateY(-10px);
    animation: slideFadeIn 0.4s ease forwards;
}

@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle spacing and layering under navbar */
.neon-alert {
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1030; /* ensures above blur layers, below modals */
}

/* Compact container for stacking alerts */
.alert-stack {
    position: sticky;
    top: 0.75rem;
    z-index: 1030;
}

/* === 🔹 Smooth Fade-Out for Auto-Dismiss === */
.neon-alert.fade-out {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* === 🔹 Neon Filter Buttons === */
.neon-filter-group .btn {
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: var(--bs-info);
    backdrop-filter: blur(6px);
    transition: all 0.2s ease;
}

    .neon-filter-group .btn:hover,
    .neon-filter-group .btn.active {
        background: rgba(0, 255, 255, 0.1);
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
        color: #00e5ff;
    }

/* === 🔹 Neon Filter Buttons === */
.neon-filter-group .btn {
    border: 1px solid rgba(0, 255, 255, 0.25);
    color: var(--bs-info);
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}

    .neon-filter-group .btn:hover,
    .neon-filter-group .btn.active {
        background: rgba(0, 255, 255, 0.12);
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
        color: #00e5ff;
    }

.neon-filter-group .badge.count {
    font-size: 0.7rem;
    vertical-align: middle;
    border-radius: 10px;
    padding: 0.25em 0.5em;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(0, 255, 255, 0);
    }

    50% {
        box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
    }
}

.neon-filter-group .badge.count {
    animation: pulseGlow 1s ease-out;
}

/* === 🔹 Collections Booster — Books Page Styling === */
/* Scoped safely under .books-page to avoid global bleed */

.books-page {
    padding-top: 0.5rem;
}

    /* === KPI Summary Bar (reuse dashboard look) === */
    .books-page .books-kpi-card {
        @extend .neo-card;
        border: 1px solid rgba(0, 229, 255, 0.15);
        box-shadow: 0 0 16px rgba(0, 229, 255, 0.08);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

        .books-page .books-kpi-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 0 24px rgba(0, 229, 255, 0.25);
        }

        .books-page .books-kpi-card .accent-bar {
            height: 4px;
            border-radius: 14px 14px 0 0;
            background: linear-gradient(90deg, var(--keridan-cyan), #00bfff);
            box-shadow: 0 0 12px rgba(0,229,255,0.3);
        }

    .books-page .books-kpi-value {
        font-size: 1.8rem;
        font-weight: 700;
        color: #fff;
        font-family: 'IBM Plex Mono', monospace;
        text-shadow: 0 0 10px rgba(0,229,255,0.4);
    }

    /* === Book List Table === */
    .books-page .neon-table {
        border-collapse: separate;
        border-spacing: 0;
        border-radius: 16px;
        overflow: hidden;
        margin-top: 1rem;
    }

        .books-page .neon-table thead th {
            background: rgba(0, 229, 255, 0.08);
            color: var(--keridan-cyan);
            font-weight: 600;
            border-bottom: 1px solid rgba(0, 229, 255, 0.15);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .books-page .neon-table tbody tr {
            transition: background 0.25s ease, transform 0.2s ease;
        }

            .books-page .neon-table tbody tr:hover {
                background: rgba(0,229,255,0.06);
                transform: scale(1.01);
                cursor: pointer;
            }

    /* === Row Actions === */
    .books-page .action-btn {
        border: 1px solid rgba(0,229,255,0.3);
        color: var(--keridan-cyan);
        background: transparent;
        border-radius: 8px;
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
        transition: all 0.2s ease;
    }

        .books-page .action-btn:hover {
            background: rgba(0,229,255,0.15);
            box-shadow: 0 0 10px rgba(0,229,255,0.3);
        }

    /* === Health Badges (reuse dashboard theme) === */
    .books-page .badge-critical,
    .books-page .badge-warning,
    .books-page .badge-good {
        box-shadow: 0 0 10px rgba(0,229,255,0.3);
        font-size: 0.8rem;
    }

    /* === Empty State === */
    .books-page .empty-state {
        text-align: center;
        color: var(--keridan-text);
        font-style: italic;
        opacity: 0.8;
        margin-top: 2rem;
    }

/* === Micro Animations === */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.books-page .books-kpi-card,
.books-page .neon-table {
    animation: fadeInSlide 0.6s ease forwards;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .books-page .books-kpi-card {
        margin-bottom: 1rem;
    }

    .books-page .neon-table {
        font-size: 0.85rem;
    }

    .books-page .action-btn {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

/* === 🔹 Dropdown fix for tables (Books, Debtors, etc.) === */
.table-responsive {
    overflow: visible !important;
    position: relative !important;
    z-index: 1;
}


/* === 🔹 Keridan Dropdown + Tooltip Escape Fix (Oct 2025) === */
.dropdown-escape-wrapper {
    position: relative !important;
    overflow: visible !important; /* this is the "escape hatch" */
    z-index: 100;
}

    /* let inner table scroll normally */
    .dropdown-escape-wrapper .table-responsive {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }


/* ensure they inherit your neon theme properly */
.dropdown-menu.show {
    background: rgba(15, 20, 25, 0.9);
    border: 1px solid rgba(0, 229, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* === 🔹 Global fix: allow popups to escape layout container === */
body.dark-mode,
body.darkmode,
.darkmode {
    overflow: visible !important;
}

/* === 🔹 Global Fix: allow dropdowns and tooltips to escape container === */
.container {
    overflow: visible !important;
}

/* === Dropdown & Tooltip Layering Fix === */
.dropdown-menu {
    z-index: 5000 !important; /* above nav, tables */
}

.tooltip {
    z-index: 5000 !important; /* float above everything else */
}

/* === Expandable Action Rows === */
.action-row {
    display: none;
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

    .action-row.active {
        display: table-row;
    }

.expandable-row.active {
    background-color: rgba(0,229,255,0.05);
}

.action-bar {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    box-shadow: 0 0 12px rgba(0,229,255,0.2);
}

.toggle-icon {
    cursor: pointer;
}

.expandable-row.active .toggle-icon {
    transform: rotate(180deg);
}

@media (max-width: 576px) {
    .action-bar {
        flex-direction: column;
    }

        .action-bar .btn {
            width: 100%;
        }
}

.action-feedback {
    transition: opacity 0.3s ease;
    opacity: 0;
    min-height: 1rem;
}

    .action-feedback span {
        padding: 2px 8px;
        border-radius: 6px;
        background: rgba(0,229,255,0.08);
        box-shadow: 0 0 6px rgba(0,229,255,0.2);
    }

/* === 🔹 Books Page — Light Frosted Variant (Mobile) === */
.books-page.light-frost {
    --frost-bg: rgba(255,255,255,0.45);
    --frost-border: rgba(0,0,0,0.08);
    --frost-text: #212529;
    --frost-accent: var(--keridan-cyan);
    --frost-shadow: rgba(0,229,255,0.15);
    color: var(--frost-text);
}

    /* Book Cards */
    .books-page.light-frost .card-tappable {
        background: var(--frost-bg);
        backdrop-filter: blur(18px) saturate(180%);
        -webkit-backdrop-filter: blur(18px) saturate(180%);
        border: 1px solid var(--frost-border);
        border-radius: 14px;
        color: var(--frost-text);
        box-shadow: 0 6px 16px rgba(0,0,0,0.05), 0 0 12px var(--frost-shadow);
        transition: all .25s ease-in-out;
    }

        .books-page.light-frost .card-tappable:active {
            transform: scale(0.98);
            box-shadow: 0 0 24px rgba(0,229,255,0.25);
        }

        /* Title */
        .books-page.light-frost .card-tappable .fw-semibold {
            color: #0a192f;
        }

    /* Status Pills */
    .books-page.light-frost .badge.bg-success,
    .books-page.light-frost .badge.bg-secondary {
        font-size: 0.75rem;
        border-radius: 8px;
        padding: 3px 6px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    /* Rate Badge */
    .books-page.light-frost .badge.bg-danger {
        background: linear-gradient(90deg,#ff0033,#ff4545);
    }

    .books-page.light-frost .badge.bg-warning {
        background: linear-gradient(90deg,#ff8800,#ffcc00);
        color: #222;
    }

    .books-page.light-frost .badge.bg-info {
        background: linear-gradient(90deg,#00c851,#00e5ff);
        color: #fff;
    }

    /* Chips */
    .books-page.light-frost #chips .chip {
        border-color: rgba(0,0,0,0.1);
        background: rgba(255,255,255,0.6);
        color: #0a192f;
        box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    }

        .books-page.light-frost #chips .chip.active {
            background: linear-gradient(90deg,var(--keridan-cyan),#00bfff);
            color: #fff;
            border: none;
            box-shadow: 0 0 12px rgba(0,229,255,0.3);
        }

    /* Empty State */
    .books-page.light-frost .text-muted {
        color: rgba(33,37,41,0.7) !important;
    }

    .books-page.light-frost .neon-empty {
        color: #007bff;
        text-shadow: 0 0 8px rgba(0,229,255,0.25);
    }

    /* Gentle fade transitions for card refresh */
    .books-page.light-frost #cards {
        transition: opacity .25s ease-in-out;
    }

        .books-page.light-frost #cards.fade-out {
            opacity: 0;
        }

        .books-page.light-frost #cards.fade-in {
            opacity: 1;
        }


/* Hide FAB completely on desktop */
@media (min-width: 769px) {
    .fab-menu {
        display: none !important;
    }
}

.fab-menu.open .fab-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.fab-item {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.fab-menu.open .fab-item {
    pointer-events: auto;
}


/* === 🔹 Floating Action Button (FAB) === */
.fab-menu {
    position: fixed;
    bottom: 70px;
    right: 20px;
    z-index: 1050;
}






.fab-main {
    background: linear-gradient(135deg, var(--keridan-cyan), var(--keridan-orange));
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 229, 255, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

    .fab-main.fab-hide {
        transform: translateY(60px) scale(0.8);
        opacity: 0;
        pointer-events: none;
    }

    .fab-main.fab-reveal {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
    }

    .fab-main.fab-shrink {
        transform: scale(0.85);
        opacity: 0.8;
    }

    .fab-main:hover {
        box-shadow: 0 6px 24px rgba(0, 229, 255, 0.5);
        transform: rotate(45deg);
    }

.fab-actions {
    position: absolute;
    bottom: 60px;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.fab-menu.open .fab-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.fab-item {
    background: rgba(15,20,25,0.9);
    color: var(--keridan-cyan);
    border: 1px solid rgba(0,229,255,0.25);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

    .fab-item:hover {
        background: var(--keridan-cyan);
        color: #fff;
        box-shadow: 0 0 12px rgba(0,229,255,0.4);
    }

.books-page.light-frost .fab-item {
    background: rgba(255,255,255,0.8);
    color: #0a192f;
    border-color: rgba(0,0,0,0.1);
}

    .books-page.light-frost .fab-item:hover {
        background: var(--keridan-cyan);
        color: #fff;
    }

/* Optional: slight upward nudge on scroll */
@media (max-width: 768px) {
    .fab-menu {
        bottom: 80px;
    }
}

/* === 🔹 Keridan Neon Pulse Tap Feedback === */
@keyframes keridanPulse {
    0% {
        box-shadow: 0 0 0 rgba(0,229,255,0);
        transform: scale(1);
    }

    30% {
        box-shadow: 0 0 15px rgba(0,229,255,0.7);
        transform: scale(0.96);
    }

    60% {
        box-shadow: 0 0 8px rgba(0,229,255,0.4);
        transform: scale(1.03);
    }

    100% {
        box-shadow: 0 0 0 rgba(0,229,255,0);
        transform: scale(1);
    }
}

.pulse-on-tap {
    animation: keridanPulse 0.35s ease-out;
}

/* === 🔹 Adaptive Neon Pulse Colours === */
@keyframes keridanPulseCyan {
    0% {
        box-shadow: 0 0 0 rgba(0,229,255,0);
        transform: scale(1);
    }

    30% {
        box-shadow: 0 0 15px rgba(0,229,255,0.7);
        transform: scale(0.96);
    }

    60% {
        box-shadow: 0 0 8px rgba(0,229,255,0.4);
        transform: scale(1.03);
    }

    100% {
        box-shadow: 0 0 0 rgba(0,229,255,0);
        transform: scale(1);
    }
}

@keyframes keridanPulseOrange {
    0% {
        box-shadow: 0 0 0 rgba(255,136,0,0);
        transform: scale(1);
    }

    30% {
        box-shadow: 0 0 15px rgba(255,136,0,0.7);
        transform: scale(0.96);
    }

    60% {
        box-shadow: 0 0 8px rgba(255,136,0,0.5);
        transform: scale(1.03);
    }

    100% {
        box-shadow: 0 0 0 rgba(255,136,0,0);
        transform: scale(1);
    }
}

@keyframes keridanPulseRed {
    0% {
        box-shadow: 0 0 0 rgba(255,0,60,0);
        transform: scale(1);
    }

    30% {
        box-shadow: 0 0 18px rgba(255,0,60,0.8);
        transform: scale(0.95);
    }

    60% {
        box-shadow: 0 0 10px rgba(255,0,60,0.5);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 rgba(255,0,60,0);
        transform: scale(1);
    }
}

.pulse-cyan {
    animation: keridanPulseCyan 0.35s ease-out;
}

.pulse-orange {
    animation: keridanPulseOrange 0.35s ease-out;
}

.pulse-red {
    animation: keridanPulseRed 0.35s ease-out;
}

/* === 🔹 Debtor Quick View Modal (Scoped HUD Polish) === */
.debtor-modal .modal-dialog {
    max-width: 1100px;
}

.debtor-modal .modal-content {
    animation: neonFadeIn 0.45s ease-out;
    border-radius: 1rem;
    overflow: hidden;
}

.debtor-modal .modal-header h5 {
    text-shadow: 0 0 6px rgba(0,229,255,0.6);
}

.debtor-modal .text-cyan {
    color: var(--keridan-cyan);
}

.debtor-modal .nav-tabs .nav-link {
    color: #ccc;
    border: none;
    transition: color 0.2s ease, box-shadow 0.2s ease;
}

    .debtor-modal .nav-tabs .nav-link.active {
        color: var(--keridan-cyan);
        box-shadow: 0 2px 0 var(--keridan-cyan);
    }

.debtor-modal .border-cyan-light {
    border-color: rgba(0,229,255,0.15) !important;
}

@media (max-width: 768px) {
    .debtor-modal .col-lg-4 {
        border-right: none !important;
        border-bottom: 1px solid rgba(0,229,255,0.15);
    }
}

/* === 🔹 Neon HUD Modal Animations === */
@keyframes neonModalIntro {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
        box-shadow: 0 0 0 rgba(0,229,255,0);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        box-shadow: 0 0 30px rgba(0,229,255,0.3);
    }
}

.neon-intro .modal-content {
    animation: neonModalIntro 0.45s ease-out;
}

/* Optional blur for background when modal active */
body.hud-blur::before {
    content: "";
    position: fixed;
    inset: 0;
    backdrop-filter: blur(6px) brightness(0.8);
    z-index: 1040; /* behind modal backdrop */
    pointer-events: none;
}

/* === 🔹 Scrollable HUD Body Styling === */
.debtor-hud-modal .modal-body {
    max-height: 75vh; /* Keeps modal comfortably within viewport */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,229,255,0.4) rgba(255,255,255,0.05);
    background: radial-gradient(1000px 200px at 30% -10%, rgba(0,229,255,0.03), transparent 70%);
    padding-bottom: 1rem;
}

    /* Subtle neon scroll glow */
    .debtor-hud-modal .modal-body::after {
        content: "";
        position: sticky;
        bottom: 0;
        display: block;
        height: 18px;
        background: linear-gradient(to bottom, transparent, rgba(0,229,255,0.1));
        pointer-events: none;
    }

    /* Glowing scroll bar (WebKit) */
    .debtor-hud-modal .modal-body::-webkit-scrollbar {
        width: 8px;
    }

    .debtor-hud-modal .modal-body::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, rgba(0,229,255,0.6), rgba(0,229,255,0.15));
        border-radius: 8px;
        box-shadow: 0 0 6px rgba(0,229,255,0.4);
    }

    .debtor-hud-modal .modal-body::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.05);
    }

.tooltip.bs-tooltip-auto .tooltip-inner {
    background: rgba(0,229,255,0.15);
    color: #00e5ff;
    border: 1px solid rgba(0,229,255,0.35);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 12px rgba(0,229,255,0.5);
    border-radius: 10px;
}

.keridan-confirm .modal-content {
    font-family: "IBM Plex Sans", sans-serif;
}

.keridan-confirm .text-danger {
    color: #ff4567 !important;
}

.keridan-confirm .text-success {
    color: #37ffb2 !important;
}

/* === 🔹 Keridan Error Modal (Neon Red Pulse) === */
.keridan-error .modal-content {
    border: 1px solid rgba(255,0,60,0.4);
    box-shadow: 0 0 20px rgba(255,0,60,0.5), inset 0 0 10px rgba(255,0,60,0.2);
    animation: pulse-red 2.5s infinite ease-in-out;
    background: rgba(20,0,10,0.85);
}

.keridan-error .modal-title i {
    color: #ff4567;
    text-shadow: 0 0 8px rgba(255,0,60,0.7);
}

.keridan-error .modal-body p {
    color: #ffe6e6;
    text-shadow: 0 0 8px rgba(255,0,60,0.5);
}

/* === 🔹 Ensure All Keridan Modals Overlay Popups === */
.modal.keridan-error,
.modal.keridan-confirm,
.modal.keridan-info {
    z-index: 99999 !important;
}

/*.modal-backdrop.show {
    z-index: 5000 !important;
}*/

.ticketDetailsModal {
    z-index: 20000 !important;
}

.date-group .btn-date {
    background: linear-gradient(90deg,#00d67a,#00ff9d);
    color: #0a192f;
    border: none;
    box-shadow: 0 0 8px rgba(0,255,128,0.4);
}

    .date-group .btn-date:hover {
        box-shadow: 0 0 20px rgba(0,255,128,0.8);
    }


.neon-avatar-wrapper {
    position: relative;
    display: inline-flex;
    border-radius: 50%;
    padding: 2px;
    background: transparent;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.neon-avatar {
    border-radius: 50%;
    display: block;
    width: 100%;
    height: auto;
}

.avatar-ring-critical {
    box-shadow: 0 0 10px 2px rgba(255, 0, 60, 0.7);
    border: 2px solid rgba(255, 0, 60, 0.6);
}

.avatar-ring-warning {
    box-shadow: 0 0 10px 2px rgba(255, 136, 0, 0.7);
    border: 2px solid rgba(255, 136, 0, 0.6);
}

.avatar-ring-good {
    box-shadow: 0 0 10px 2px rgba(0, 229, 255, 0.7);
    border: 2px solid rgba(0, 229, 255, 0.6);
}

.neon-avatar-wrapper:hover {
    transform: scale(1.08);
}

.neon-avatar-wrapper {
    position: relative;
    display: inline-flex;
    border-radius: 50%;
    padding: 2px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    width: 38px;
    height: 38px;
}

.neon-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Glowing rings */
.avatar-ring-critical {
    box-shadow: 0 0 6px 1px rgba(255, 0, 60, 0.7);
    border: 1.5px solid rgba(255, 0, 60, 0.6);
}

.avatar-ring-warning {
    box-shadow: 0 0 6px 1px rgba(255, 136, 0, 0.7);
    border: 1.5px solid rgba(255, 136, 0, 0.6);
}

.avatar-ring-good {
    box-shadow: 0 0 6px 1px rgba(0, 229, 255, 0.7);
    border: 1.5px solid rgba(0, 229, 255, 0.6);
}

.neon-avatar-wrapper:hover {
    transform: scale(1.08);
}
