/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar {
    background: #1e293b !important;  /* dark slate — lighter than bg-dark */
}
.sidebar .nav-link {
    font-size: 0.875rem;
    padding: 6px 10px;
    transition: background 0.15s;
    color: rgba(255, 255, 255, 0.78) !important;
}
.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.13);
    color: #fff !important;
}
/* Section labels (Modules, Leave, Administration…) */
.sidebar .nav-section-label {
    font-size: 0.68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    padding: 4px 10px;
    display: block;
}
/* Sub-nav links (Apply for Leave, My Applications…) */
.sidebar .nav-sublink {
    font-size: 0.82rem;
    padding: 4px 10px;
    color: rgba(255, 255, 255, 0.65) !important;
}
.sidebar .nav-sublink:hover,
.sidebar .nav-sublink.fw-semibold {
    color: #fff !important;
}
/* Top brand bar */
.sidebar .sidebar-brand {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ── Stat cards (home KPIs) ──────────────────────────────────────────────── */
.stat-card {
    background: #fff;
    border-left: 4px solid;
    border-radius: 4px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.stat-label {
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 4px;
}
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

/* ── Home greeting banner ────────────────────────────────────────────────── */
.home-banner {
    /* Spectrum navy + subtle dot grid */
    background:
        radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px),
        linear-gradient(135deg, #1B2082 0%, #0E1457 100%);
    background-size: 22px 22px, 100% 100%;
    border-left: 5px solid #F47920;
    position: relative;
    overflow: hidden;
}
/* Orange circle top-right */
.home-banner::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 240px; height: 240px;
    border: 55px solid rgba(244,121,32,0.14);
    border-radius: 50%;
    pointer-events: none;
}
/* Faint white circle bottom */
.home-banner::after {
    content: '';
    position: absolute;
    bottom: -90px; right: 100px;
    width: 280px; height: 280px;
    border: 70px solid rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}
.home-banner-inner {
    position: relative;
    z-index: 1;
}
/* True three-column grid so brand name is always centred */
.home-banner-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
}
/* Spectrum Nexus centre brand */
.home-nexus-name {
    font-size: 2.15rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.02em;
    line-height: 1.1;
    white-space: nowrap;
    text-shadow: 0 2px 18px rgba(0,0,0,0.3);
}
.home-nexus-accent {
    color: #F47920;
}
.home-greeting-eyebrow {
    color: #F47920;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.home-greeting-name {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 6px;
}
.home-greeting-sub {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    margin-bottom: 0;
}
.home-btn-cta {
    background: #F47920;
    color: #fff;
    border: none;
}
.home-btn-cta:hover {
    background: #d9691a;
    color: #fff;
}
.home-tagline {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.3);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

/* ── Module cards (home page) ────────────────────────────────────────────── */
.module-card {
    transition: transform 0.18s, box-shadow 0.18s;
    cursor: pointer;
}
.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12) !important;
}

/* Colored top borders per module */
.mc-hr        { border-top: 3px solid #7B1FA2 !important; }
.mc-ticket    { border-top: 3px solid #0d6efd !important; }
.mc-dashboard { border-top: 3px solid #198754 !important; }
.mc-verif     { border-top: 3px solid #d97706 !important; }

/* Icon circles */
.mc-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.mc-icon-hr        { background: rgba(123,31,162,0.1);  color: #7B1FA2; }
.mc-icon-ticket    { background: rgba(13,110,253,0.1);  color: #0d6efd; }
.mc-icon-dashboard { background: rgba(25,135,84,0.1);   color: #198754; }
.mc-icon-verif     { background: rgba(217,119,6,0.1);   color: #d97706; }

/* Stat pills inside module cards */
.mc-stat-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.mc-stat-neutral  { background: rgba(0,0,0,0.05); color: #6b7280; font-weight: 500; }
.mc-stat-hr       { background: rgba(123,31,162,0.1); color: #7B1FA2; }
.mc-stat-ticket   { background: rgba(13,110,253,0.1); color: #0d6efd; }
.mc-stat-dashboard{ background: rgba(25,135,84,0.1);  color: #198754; }
.mc-stat-verif    { background: rgba(217,119,6,0.1);  color: #d97706; }

/* "Open →" footer link */
.mc-open-link {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.module-card:hover .mc-open-link {
    opacity: 1;
}

/* ── SLA badges ──────────────────────────────────────────────────────────── */
.sla-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
}
.sla-overdue       { background: #C62828; }
.sla-at-risk       { background: #E65100; }
.sla-on-track      { background: #2E7D32; }
.sla-resolved      { background: #757575; }
.sla-clock-paused  { background: #546E7A; }
.sla-pending-triage{ background: #90A4AE; }

/* ── Dashboard card classes (ported from Streamlit APP_CSS) ─────────────── */
.kc {
    background: white;
    border-radius: 10px;
    padding: 14px 16px 12px;
    border-top: 4px solid;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    margin-bottom: 4px;
    min-height: 118px;
    box-sizing: border-box;
}
.kl {
    font-size: 11px;
    color: #4B5563;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.kpct {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2px;
}
.kv {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1px;
}
.ks {
    font-size: 11.5px;
    color: #374151;
    font-weight: 500;
    margin-top: 3px;
    line-height: 1.4;
}
.ks b { font-weight: 700; color: #1F3864; }
.kp { font-size: 12px; font-weight: 700; margin-top: 3px; }

/* Section header */
.sh {
    background: #1F3864;
    color: white;
    padding: 7px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 8px;
    margin-top: 14px;
}

/* Page banner */
.pb {
    background: linear-gradient(90deg, #1F3864, #2E5FA3);
    color: white;
    padding: 12px 22px;
    border-radius: 10px;
    margin-bottom: 14px;
}
.pb h2 { margin: 0; font-size: 19px; }
.pb p  { margin: 2px 0 0; font-size: 11px; opacity: .8; }

/* Info / warning / success banners */
.ib {
    background: #FFF2CC;
    border-left: 5px solid #C9A800;
    padding: 9px 13px;
    border-radius: 4px;
    font-size: 12px;
    color: #374151;
    margin-top: 8px;
}
.rb {
    background: #FCE4D6;
    border-left: 5px solid #C00000;
    padding: 9px 13px;
    border-radius: 4px;
    font-size: 12px;
    color: #374151;
    margin-top: 8px;
}
.gb {
    background: #E2EFDA;
    border-left: 5px solid #375623;
    padding: 9px 13px;
    border-radius: 4px;
    font-size: 12px;
    color: #374151;
    margin-top: 8px;
}

/* Attainment card */
.ac {
    background: white;
    border-radius: 8px;
    padding: 12px 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,.07);
    min-height: 118px;
    box-sizing: border-box;
}
.al {
    font-size: 11px;
    color: #4B5563;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .4px;
}
.av {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    margin: 2px 0;
}
.as2 {
    font-size: 11.5px;
    color: #374151;
    font-weight: 500;
    margin-top: 3px;
    line-height: 1.4;
}
.as2 b { font-weight: 700; color: #1F3864; }

/* Filter bar */
.fb {
    background: white;
    border-radius: 8px;
    padding: 7px 14px;
    margin-bottom: 12px;
    font-size: 11px;
    color: #374151;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    border-left: 4px solid #2E5FA3;
}

/* Dark KPI card (income page) */
.dk {
    background: linear-gradient(135deg, #0f2744 0%, #0a1628 100%);
    border: 1px solid #1e3a5f;
    border-left: 3px solid;
    border-radius: 10px;
    padding: 20px 20px 16px;
    min-height: 120px;
    position: relative;
    box-sizing: border-box;
}
.dkl {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 1.3;
    font-family: monospace;
}
.dkv {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}
.dks {
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
}
