/* ============================================================
   HRMS v2 — Enterprise Custom Stylesheet
   ============================================================ */

/* ── Google Font ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --hrms-primary: #1e3a5f;
    --hrms-primary-light: #2d5a8e;
    --hrms-accent: #0ea5e9;
    --hrms-accent-light: #38bdf8;
    --hrms-success: #10b981;
    --hrms-warning: #f59e0b;
    --hrms-danger: #ef4444;
    --hrms-info: #6366f1;
    --hrms-bg: #f0f4f8;
    --hrms-card-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --hrms-card-shadow-hover: 0 10px 25px rgba(0, 0, 0, .08);
    --hrms-radius: 0.75rem;
    --hrms-transition: all .2s ease;
}

/* ── Base ─────────────────────────────────────────────────── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: url('../images/glass-bg.png') no-repeat center center fixed !important;
    background-size: cover !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar-left {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 2px 0 20px rgba(0, 0, 0, .2) !important;
}

/* ── Sidebar Scrollbar ─────────────────────────────────── */
.sidebar-left .simplebar-scrollbar::before {
    background: rgba(255, 255, 255, .25) !important;
    border-radius: 4px;
    width: 4px !important;
}

.sidebar-left .simplebar-scrollbar.simplebar-visible::before {
    opacity: 1 !important;
}

.sidebar-left .simplebar-track.simplebar-vertical {
    width: 6px !important;
    right: 2px;
}

/* ── Section Titles ───────────────────────────────────── */
.sidebar-left .left-menu .menu-title {
    color: rgba(255, 255, 255, .8) !important;
    font-size: .62rem !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    padding: 18px 20px 8px !important;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.sidebar-left .left-menu .menu-title:first-child {
    border-top: none;
    margin-top: 0;
}

/* ── Menu Items ───────────────────────────────────────── */
.sidebar-left .left-menu>li>a {
    color: #ffffff !important;
    font-size: .82rem !important;
    font-weight: 500 !important;
    padding: 9px 14px !important;
    margin: 2px 10px;
    border-radius: 10px;
    border-left: none !important;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    position: relative;
}

/* ── Hover State ──────────────────────────────────────── */
.sidebar-left .left-menu>li>a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .12) !important;
    transform: translateX(3px);
    border-left: none !important;
}

/* ── Active / Selected State (pill shape) ─────────────── */
.sidebar-left .left-menu>li>a.active,
.sidebar-left .left-menu>li.mm-active>a {
    color: #fff !important;
    background: rgba(255, 255, 255, .2) !important;
    border-left: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12), inset 0 0 0 1px rgba(255, 255, 255, .1);
    font-weight: 600 !important;
}

/* ── Menu Icons ───────────────────────────────────────── */
.sidebar-left .left-menu>li>a i {
    color: #ffffff !important;
    width: 24px;
    font-size: 1.05rem;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    opacity: 1 !important;
}

.sidebar-left .left-menu>li>a:hover i {
    color: #fff;
    transform: scale(1.1);
}

/* ── Active Icon Glow ─────────────────────────────────── */
.sidebar-left .left-menu>li.mm-active>a i,
.sidebar-left .left-menu>li>a.active i {
    color: #fff !important;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, .4));
}

/* Ensure all sidebar icons and arrow indicators stay high-contrast */
.sidebar-left #sidebar-menu ul li a i,
.sidebar-left #sidebar-menu .has-arrow::after,
.sidebar-left .sub-menu li a i {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* ── Sub-Menu ─────────────────────────────────────────── */
.sidebar-left .sub-menu {
    background: rgba(0, 0, 0, .06) !important;
    border-radius: 0 0 10px 10px;
    margin: 0 10px 2px;
    padding: 4px 0 !important;
}

.sidebar-left .sub-menu li a {
    color: rgba(255, 255, 255, .85) !important;
    font-size: .78rem !important;
    padding: 7px 14px 7px 44px !important;
    border-radius: 8px;
    margin: 1px 6px;
    transition: all .2s ease;
}

.sidebar-left .sub-menu li a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .08) !important;
}

.sidebar-left .sub-menu li a.active {
    color: #fff !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, .1) !important;
}

/* ── Collapsed Sidebar Overrides ──────────────────────── */
.sidebar-collpsed .sidebar-left .left-menu>li>a {
    margin: 2px 6px;
    padding: 12px 0 !important;
    border-radius: 8px;
    justify-content: center;
}

.sidebar-collpsed .sidebar-left .left-menu>li:hover>a {
    border-radius: 8px 0 0 8px;
    background: rgba(255, 255, 255, .15) !important;
}

.sidebar-collpsed .sidebar-left .left-menu>li:hover>ul {
    background: linear-gradient(170deg, #0ea5e9 0%, #1e3a5f 58%, #13253d 100%) !important;
    border-radius: 0 8px 8px 0;
    border: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-collpsed .sidebar-left .left-menu>li:hover>ul a {
    color: rgba(255, 255, 255, .7) !important;
}

.sidebar-collpsed .sidebar-left .left-menu>li:hover>ul a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .1) !important;
}

/* ── Topbar ───────────────────────────────────────────────── */
#page-topbar {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 1px 15px rgba(0, 0, 0, .1) !important;
}

#page-topbar .navbar-logo-box {
    background: transparent !important;
}

/* Topbar Text & Icons Override for Red Theme */
#page-topbar .navbar-logo-box .hrms-brand,
#page-topbar .navbar-logo-box .hrms-brand span {
    color: #ffffff !important;
}

#page-topbar .sidebar-btn i {
    color: #ffffff !important;
}

#page-topbar .top-icon {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

#page-topbar .top-icon i {
    color: #1f2937 !important;
}

/* Navbar Search Input Styling */
#topbar-search {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

#topbar-search::placeholder {
    color: rgba(255, 255, 255, 0.92);
}

#page-topbar .app-search span {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Clock & Badges on Red Header */
.topbar-clock {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #1f2937 !important;
}

.topbar-locale-badge {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1f2937 !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
}

.topbar-role-badge {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

/* User Dropdown Override */
.topbar-user-name {
    color: #0f172a !important;
}

.topbar-avatar-circle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

#page-topbar .topbar-kbd {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.75);
    color: #334155;
}

#page-topbar .topbar-clock i {
    color: #334155 !important;
}

#page-topbar #page-header-user-dropdown .mdi-chevron-down {
    color: #64748b !important;
}

#page-topbar #page-header-user-dropdown .topbar-user-name {
    color: #0f172a !important;
}

#page-topbar #page-header-user-dropdown .topbar-role-badge {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

.hrms-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -.02em;
}

.hrms-brand span {
    color: #ffffff;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: var(--hrms-radius) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1) !important;
    transition: var(--hrms-transition);
}

.card:hover {
    box-shadow: var(--hrms-card-shadow-hover) !important;
}

/* ── Stat Cards ───────────────────────────────────────────── */
.stat-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--hrms-radius) !important;
    padding: 1.5rem;
    color: #111827;
    transition: var(--hrms-transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hrms-card-shadow-hover) !important;
}

.stat-card .stat-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.5rem;
    color: rgba(17, 24, 39, .2);
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: .25rem;
}

.stat-card .stat-label {
    font-size: .78rem;
    font-weight: 500;
    opacity: .85;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.stat-card-primary,
.stat-card-success,
.stat-card-warning,
.stat-card-info {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1) !important;
    color: #111827 !important;
    text-shadow: none;
}



/* ── Tables ───────────────────────────────────────────────── */
.table thead th {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #1e293b;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4) !important;
    padding: .75rem 1rem !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.table tbody td {
    font-size: .85rem;
    padding: .75rem 1rem !important;
    vertical-align: middle;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #0f172a;
    font-weight: 500;
}

.table-hover tbody tr:hover {
    background-color: rgba(14, 165, 233, .04) !important;
}

/* ── Badges ───────────────────────────────────────────────── */
.badge-hrms {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .03em;
    padding: .35em .65em;
    border-radius: 6px;
}

/* ── Page Title ───────────────────────────────────────────── */
.page-title-box h4 {
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.breadcrumb-item a,
.breadcrumb-item.active {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    font-weight: 600;
}

/* ── Quick Action Cards ───────────────────────────────────── */
.quick-action-card {
    border-radius: var(--hrms-radius);
    padding: 1.25rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--hrms-transition);
    cursor: pointer;
    text-decoration: none;
    color: #0f172a;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.quick-action-card:hover {
    border-color: var(--hrms-accent);
    box-shadow: 0 4px 12px rgba(14, 165, 233, .12);
    transform: translateY(-2px);
    color: inherit;
}

.quick-action-card .qa-icon {
    font-size: 2rem;
    color: var(--hrms-accent);
    margin-bottom: .5rem;
}

.quick-action-card .qa-label {
    font-size: .78rem;
    font-weight: 700;
    color: #1e293b;
}

/* ── Login Page ───────────────────────────────────────────── */
.authentication-bg {
    background: linear-gradient(135deg, var(--hrms-primary) 0%, #0f2439 100%) !important;
}

.authentication-bg .card {
    border-radius: 1rem !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .15) !important;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── Navbar Overflow Fix ─────────────────────────────────── */
.navbar-header {
    overflow: visible !important;
}

.navbar-header .menu-sm {
    flex-wrap: nowrap;
    overflow: visible;
    max-width: calc(100vw - 260px);
}

#page-header-user-dropdown {
    flex-shrink: 0;
}

#page-header-user-dropdown.top-icon {
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .stat-card .stat-value {
        font-size: 1.25rem;
    }

    .stat-card .stat-icon {
        font-size: 2.5rem;
    }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    border-top: 1px solid #e2e8f0;
    font-size: .8rem;
    color: #94a3b8;
}

/* ── Dark Mode Adjustments ────────────────────────────────── */
[data-bs-theme="dark"] {
    --hrms-bg: #0f172a;
    --hrms-card-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

[data-bs-theme="dark"] .stat-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3) !important;
}

[data-bs-theme="dark"] .quick-action-card {
    background: #1e293b;
    border-color: #334155;
}

[data-bs-theme="dark"] .quick-action-card:hover {
    border-color: var(--hrms-accent);
}

/* ============================================================
   NAVBAR — Advanced Features
   ============================================================ */

/* ── ⌘K Shortcut Badge ───────────────────────────────────── */
.topbar-kbd {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .06);
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: .65rem;
    color: #94a3b8;
    font-family: inherit;
    pointer-events: none;
}

/* ── Live Clock ──────────────────────────────────────────── */
.topbar-clock {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, .08), rgba(99, 102, 241, .08));
    border: 1px solid rgba(14, 165, 233, .15);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--hrms-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

.topbar-clock i {
    color: var(--hrms-accent);
    font-size: .9rem;
}

/* ── Locale Badge ────────────────────────────────────────── */
.topbar-locale-badge {
    background: rgba(14, 165, 233, .1);
    color: var(--hrms-accent);
    font-size: .65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: .05em;
    border: 1px solid rgba(14, 165, 233, .2);
}

/* ── Notification Count ──────────────────────────────────── */
.topbar-notif-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--hrms-danger);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: notifPulse 2s ease-in-out infinite;
}

@keyframes notifPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, .5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

/* ── Role Badge ──────────────────────────────────────────── */
.topbar-role-badge {
    display: inline-block;
    font-size: .6rem;
    font-weight: 700;
    color: var(--hrms-accent);
    background: rgba(14, 165, 233, .1);
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ── User Profile Avatar ─────────────────────────────────── */
.topbar-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f, #2d6a9f);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(14, 165, 233, .25);
}

.topbar-user-name {
    font-size: .82rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-bs-theme="dark"] .topbar-user-name {
    color: #e2e8f0;
}

/* ── Right Sidebar Scroll Body ───────────────────────────── */
.rsb-scroll-body {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 165, 233, .3) transparent;
}

.rsb-scroll-body::-webkit-scrollbar {
    width: 5px;
}

.rsb-scroll-body::-webkit-scrollbar-track {
    background: transparent;
}

.rsb-scroll-body::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, .25);
    border-radius: 4px;
}

.rsb-scroll-body::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 165, 233, .45);
}

/* ── Notification Items ──────────────────────────────────── */
.notification-item {
    transition: var(--hrms-transition);
}

.notification-item:hover {
    background: rgba(14, 165, 233, .04);
}

/* ============================================================
   RIGHT SIDEBAR — Futuristic Data-Driven Widgets
   ============================================================ */

/* ── Section Title ───────────────────────────────────────── */
.rsb-section-title {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rsb-section-title i {
    font-size: .9rem;
}

/* ── Metric Cards (Workforce Pulse) ──────────────────────── */
.rsb-metric-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.rsb-metric-label {
    font-size: .72rem;
    color: #64748b;
    font-weight: 500;
}

.rsb-metric-value {
    font-size: .82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rsb-progress-track {
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.rsb-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(.4, 0, .2, 1);
    animation: progressSlide 1.5s ease-out;
}

@keyframes progressSlide {
    from {
        width: 0;
    }
}

/* ── Donut Chart (Attendance Ring) ────────────────────────── */
.rsb-donut {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--clr) calc(var(--pct) * 1%),
            #e2e8f0 calc(var(--pct) * 1%));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: donutSpin .8s ease-out;
}

@keyframes donutSpin {
    from {
        transform: rotate(-90deg);
        opacity: 0;
    }

    to {
        transform: rotate(0deg);
        opacity: 1;
    }
}

.rsb-donut-center {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rsb-donut-value {
    font-size: .85rem;
    font-weight: 800;
    line-height: 1;
    color: var(--hrms-primary);
}

.rsb-donut-label {
    font-size: .55rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}

.rsb-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    flex-shrink: 0;
}

/* ── Activity Timeline ───────────────────────────────────── */
.rsb-timeline {
    position: relative;
    padding-left: 20px;
}

.rsb-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(to bottom, var(--hrms-accent), #e2e8f0);
    border-radius: 2px;
}

.rsb-timeline-item {
    position: relative;
    padding-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.rsb-timeline-item:last-child {
    padding-bottom: 0;
}

.rsb-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
    position: absolute;
    left: -19px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .05);
}

.rsb-timeline-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.rsb-timeline-time {
    font-size: .65rem;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Event Cards ─────────────────────────────────────────── */
.rsb-event-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: var(--hrms-transition);
}

.rsb-event-card:hover {
    border-color: var(--hrms-accent);
    box-shadow: 0 2px 8px rgba(14, 165, 233, .1);
}

.rsb-event-date {
    width: 42px;
    height: 42px;
    background: var(--hrms-danger);
    background: linear-gradient(135deg, #ef4444, #f87171);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.rsb-event-day {
    font-size: .9rem;
    font-weight: 800;
    line-height: 1;
}

.rsb-event-month {
    font-size: .55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .85;
}

/* ── Motivational Quote ──────────────────────────────────── */
.rsb-quote-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #eff6ff 100%);
    border: 1px solid rgba(14, 165, 233, .15);
    border-radius: 10px;
    padding: 16px;
    position: relative;
}

.rsb-quote-icon {
    font-size: 2rem;
    color: rgba(14, 165, 233, .2);
    position: absolute;
    top: 8px;
    left: 12px;
}

.rsb-quote-text {
    font-size: .78rem;
    font-style: italic;
    color: #334155;
    line-height: 1.6;
    margin: 0 0 6px 0;
    padding-top: 4px;
}

.rsb-quote-author {
    font-size: .68rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ── System Health ───────────────────────────────────────── */
.rsb-health-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.rsb-health-row:last-child {
    border-bottom: none;
}

.rsb-health-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rsb-health-online {
    background: var(--hrms-success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .2);
    animation: healthPulse 2s ease-in-out infinite;
}

@keyframes healthPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, .4);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
    }
}

/* ── Dark Mode — Right Sidebar ───────────────────────────── */
[data-bs-theme="dark"] .rsb-metric-card {
    background: #1e293b;
    border-color: #334155;
}

[data-bs-theme="dark"] .rsb-event-card {
    background: #1e293b;
    border-color: #334155;
}

[data-bs-theme="dark"] .rsb-quote-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-color: #334155;
}

[data-bs-theme="dark"] .rsb-quote-text {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .rsb-donut-center {
    background: #0f172a;
}

[data-bs-theme="dark"] .rsb-donut-value {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .topbar-clock {
    background: rgba(14, 165, 233, .15);
    border-color: rgba(14, 165, 233, .25);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .topbar-kbd {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .15);
    color: #94a3b8;
}

[data-bs-theme="dark"] .rsb-progress-track {
    background: #334155;
}
/* ── Glassmorphism Modals & Dropdowns ──────────────────────── */
.modal-content, .dropdown-menu {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: transparent !important;
}

.modal-title {
    color: #0f172a !important;
    font-weight: 800;
}

.dropdown-item {
    color: #1e293b !important;
    font-weight: 500;
}
.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.6) !important;
    color: #000 !important;
}

/* ── Form Controls (Inputs, Selects) ───────────────────────── */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #0f172a !important;
    font-weight: 500;
}
.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: var(--hrms-accent) !important;
    box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.25) !important;
}
.form-label {
    color: #1e293b !important;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(255,255,255,0.7);
}

/* Fix text colors inside cards for standard body text */
.card-body, .card-text, p.text-muted {
    color: #1e293b !important;
}
h1, h2, h3, h4, h5, h6 {
    color: #0f172a;
}
