body {
    background-color: #f4f7f6;
    min-height: 100vh;
    margin: 0;
}

/* Main Content Full Width */
.main-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar .nav-link:hover {
    background-color: transparent;
    color: #f3b61f !important;
    transform: translateY(-1px);
}

.text-primary {
    color: #f3b61f !important;
}





.card-title {
    color: #495057;
    font-weight: 600;
}

.navbar-brand {
    font-weight: 700;
}

.alert {
    border-radius: 0.5rem;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.btn {
    border-radius: 0.375rem;
}

.form-control,
.form-select {
    border-radius: 0.375rem;
}

.badge {
    font-size: 0.75em;
}

/* Custom utilities */
.min-h-100 {
    min-height: 100vh;
}


/* toastContainer start */
#toastContainer {
    pointer-events: auto;
}

.toast.slide-in {
    animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

/* toastContainer end */




/* Tile Hover Effect for Dashboard */
.tile-hover {
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
    cursor: pointer;
}

.tile-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    background-color: #fff !important;
}

.tile-hover i {
    transition: transform 0.3s ease;
}

.tile-hover:hover i {
    transform: scale(1.1);
}

.status-card {
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

/* Count badge styling */
.count-badge {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.45em 0.9em;
    border-radius: 0.75rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Small description */
.status-card small {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Professional Dashboard Utilities */
.text-navy {
    color: #002448 !important;
}

.ls-1 {
    letter-spacing: 0.05rem;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.btn-navy {
    background-color: #002448;
    color: white;
    transition: all 0.25s ease;
}

.btn-navy:hover {
    background-color: #001a33;
    color: #f3b61f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 36, 72, 0.2);
}

/* Outline navy — used for secondary/icon buttons */
.btn-outline-navy {
    background: transparent;
    color: #002448;
    border: 1.5px solid #002448;
    transition: all 0.25s ease;
}

.btn-outline-navy:hover {
    background: #002448;
    color: #f3b61f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 36, 72, 0.2);
}

/* Call button — gold ring on hover */
.btn-call {
    background: transparent;
    color: #002448;
    border: 1.5px solid rgba(0, 36, 72, 0.2);
    border-radius: 50rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-call:hover {
    background: #002448;
    color: #f3b61f;
    border-color: #f3b61f;
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(243, 182, 31, 0.2), 0 4px 12px rgba(0, 36, 72, 0.25);
}

.btn-call i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.btn-call:hover i {
    transform: rotate(15deg);
}

.avatar-sm {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Unified Admin Frame (Header & Footer) */
.admin-frame {
    background-color: #002448 !important;
    color: #ffffff !important;
    border: none !important;
}

.admin-frame .nav-link {
    color: #f3b61f !important;
    font-weight: 700 !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.admin-frame .nav-link:hover {
    transform: translateY(-1px);
    opacity: 0.9;
    background-color: transparent !important;
}

.admin-frame .text-navy {
    color: #ffffff !important;
}

.admin-frame .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Professional Top Bar Reset */
.admin-topbar {
    z-index: 1020;
}

/* Dashboard Enhancements */
.tile-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.tile-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.status-pulse {
    width: 10px;
    height: 10px;
    background: #198754;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    animation: status-pulse-animation 2s infinite;
}

@keyframes status-pulse-animation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(25, 135, 84, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

.x-small {
    font-size: 0.65rem;
}

.filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50rem !important;
}

.filter-btn.active {
    background-color: #002448 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 36, 72, 0.25);
}

.filter-btn:hover:not(.active) {
    background-color: #f8f9fa;
    color: #002448;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    line-height: 1;
}


.btn-navy {
    background: #002448;
    color: white;
    transition: all 0.2s ease;
}

.btn-navy:hover {
    background: #003366;
    color: white;
}

.elite-intel-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #ffffff;
    border: none;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gold-line-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #f3b61f;
    transition: all 0.3s ease;
    z-index: 5;
}

.elite-intel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 36, 72, 0.12);
}

.elite-intel-card:hover .gold-line-accent {
    width: 8px;
    box-shadow: 2px 0 15px rgba(243, 182, 31, 0.5);
}

.avatar-elite {
    width: 55px;
    height: 55px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.elite-intel-card:hover .avatar-elite {
    border-color: #f3b61f;
    box-shadow: 0 5px 15px rgba(243, 182, 31, 0.2);
    transform: scale(1.05);
}

.floating-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}


.pagination-rounded .page-link {
    border-radius: 50rem !important;
    margin: 0 3px;
    min-width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-weight: bold;
    color: #666;
    transition: all 0.2s ease;
    padding: 0 10px;
}

.pagination-rounded .page-item:first-child .page-link,
.pagination-rounded .page-item:last-child .page-link {
    padding: 0 20px;
    background-color: #f8f9fa;
    color: #002448;
    border: 1px solid #eee;
}

.pagination-rounded .page-item.active .page-link {
    background-color: #002448;
    color: white;
}


.pagination-rounded .page-link:hover {
    background-color: #f8f9fa;
    color: #002448;
}

.ls-1 {
    letter-spacing: 1px;
}

.text-navy {
    color: #002448;
}

.table-elite thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #eee;
    color: #002448 !important;
    white-space: nowrap;
}

.table-elite tbody tr {
    transition: all 0.2s ease;
}

.elite-row-hover:hover {
    background-color: rgba(0, 36, 72, 0.02) !important;
    transform: scale(1.002);
    box-shadow: inset 4px 0 0 #002448;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.status-dot-green {
    background-color: #198754;
    box-shadow: 0 0 8px rgba(25, 135, 84, 0.4);
}

.status-dot-red {
    background-color: #dc3545;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.4);
    animation: pulse-red 2s infinite;
}

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

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.elite-alert {
    border-left: 4px solid #002448 !important;
    background: #ffffff;
    color: #002448;
}

.avatar-xs {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
    font-weight: bold;
}

.cursor-pointer {
    cursor: pointer;
}

/* --- Notification Bell Micro-animation --- */
#notificationBell {
    transition: all 0.3s ease;
}

#notificationBell:hover .bi-bell {
    animation: bell-swing 0.5s ease-in-out;
    color: #f3b61f !important;
}

@keyframes bell-swing {
    0% {
        transform: rotate(0);
    }

    15% {
        transform: rotate(15deg);
    }

    30% {
        transform: rotate(-15deg);
    }

    45% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0);
    }
}


/* --- Notification Intelligence Dropdown --- */
.notification-dropdown {
    width: 340px !important;
    max-height: 480px !important;
    overflow-y: auto;
    border: none !important;
    border-top: 3px solid #f3b61f !important;
    border-radius: 12px !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25) !important;
    margin-top: 15px !important;
    background-color: #fff !important;
    animation: slideUpFade 0.3s ease-out forwards;
}

/* Force high-definition styling for dropdown text regardless of parent frame */
.notification-dropdown .x-small {
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
}

.notification-dropdown .ls-1 {
    letter-spacing: 0.08rem !important;
}

.notification-dropdown .fw-bold {
    font-weight: 800 !important;
}

.notification-dropdown .text-uppercase {
    text-transform: uppercase !important;
}

.notification-dropdown .text-navy {
    color: #002448 !important;
}

/* Specific overrides for Header/Footer/Items */
.notification-dropdown h6,
.notification-dropdown .notif-type-badge,
.notification-dropdown .dropdown-item {
    color: #002448 !important;
}

/* Recent Badge Fix */
.notification-dropdown .notif-type-badge {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #002448 !important;
    opacity: 0.8 !important;
    font-size: 0.6rem !important;
    padding: 0.25rem 0.6rem !important;
    font-weight: 800 !important;
}

/* Access Ledger Link Fix */
.notification-dropdown .dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #002448 !important;
}

.notification-dropdown .text-muted {
    color: #6c757d !important;
    opacity: 0.6;
}

/* --- Session Integrity Timer --- */
.session-badge {
    background: rgba(243, 182, 31, 0.08);
    border: 1px solid rgba(243, 182, 31, 0.3);
    padding: 5px 12px;
    border-radius: 50px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #f3b61f;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    letter-spacing: 0.5px;
}

.session-badge:hover {
    background: rgba(243, 182, 31, 0.18);
    border-color: #f3b61f;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(243, 182, 31, 0.2);
}

.session-badge i {
    font-size: 0.8rem;
    opacity: 0.85;
}

.session-badge .session-label {
    font-size: 0.6rem;
    opacity: 0.6;
    letter-spacing: 1px;
    font-family: inherit;
}

.session-pulse-critical {
    animation: pulse-red-warning 1.5s infinite;
    color: #ff6b6b !important;
    border-color: rgba(220, 53, 69, 0.5) !important;
    background: rgba(220, 53, 69, 0.08) !important;
}

@keyframes pulse-red-warning {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Responsive: hide label on mobile, keep countdown */
@media (max-width: 767.98px) {
    .session-badge .session-label {
        display: none;
    }

    .session-badge {
        padding: 5px 9px;
        gap: 5px;
    }
}

.notif-item {
    transition: all 0.2s ease-in-out;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    cursor: pointer;
    background: #fff !important;
    padding: 1.2rem 1rem !important;
}

.notif-item:hover {
    background: #f8f9fa !important;
    padding-left: 1.2rem !important;
}

.notif-item * {
    color: #002448 !important;
}

.notif-item .small.text-muted {
    color: #6c757d !important;
}

.notif-item .avatar-sm {
    transition: transform 0.2s ease;
}

.notif-item:hover .avatar-sm {
    transform: scale(1.1);
}

#notificationBadge {
    font-size: 0.65rem !important;
    padding: 0.35em 0.65em !important;
    transform: translate(-30%, -30%) !important;
    z-index: 5;
}

/* --- Elite Command Center Gateway (Split-Screen) --- */
.login-split-system {
    height: 100vh;
    overflow: hidden;
    background-color: #f8f9fa;
}

.identity-panel {
    background: #002448;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.authorization-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.proxy-workspace {
    /* background: #f4f7f6; */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.glass-login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 36, 72, 0.15);
    width: 100%;
    max-width: 440px;
    transition: all 0.4s ease;
}

.glass-login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px -12px rgba(0, 36, 72, 0.2);
}

.lifting-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa !important;
    border-radius: 14px !important;
}

.lifting-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 36, 72, 0.08);
    background: #fff !important;
}

.glow-focus:focus-within {
    box-shadow: 0 0 0 4px rgba(0, 36, 72, 0.05);
}

.btn-elite-entry {
    background: #002448;
    color: white;
    border-radius: 14px;
    padding: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 36, 72, 0.2);
}

.btn-elite-entry:hover {
    background: #003366;
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 36, 72, 0.3);
    color: #f3b61f;
}

/* Mobile Responsiveness for Split-Screen */
@media (max-width: 991.98px) {
    .login-split-system {
        height: auto;
        overflow: auto;
    }

    .identity-panel {
        padding: 3rem 1.5rem;
        min-height: 40vh;
    }

    .proxy-workspace {
        min-height: 60vh;
        padding: 2rem 1.5rem;
    }
}