*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --blue: #2563eb;
    --blue-light: #dbeafe;
    --blue-mid: #3b82f6;
    --orange: #f97316;
    --orange-light: #ffedd5;
    --teal: #0d9488;
    --purple: #7c3aed;
    --green: #16a34a;
    --red: #dc2626;
    --sidebar-bg: #1e293b;
    --sidebar-active: #2563eb;
    --sidebar-hover: #334155;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #fff;
    --bg: #f1f5f9;
    --card: #fff;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --radius: 14px;
    --shadow: 0 2px 12px rgba(30,41,59,0.07);
  }

  body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
  }

  /* ── SIDEBAR ── */
  .sidebar {
    width: 220px;
    min-height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
  }

  .sidebar-logo {
    padding: 20px 18px 14px;
    border-bottom: 1px solid #334155;
  }
  .sidebar-logo .logo-badge {
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 8px;
    letter-spacing: .5px;
    display: inline-block;
  }
  .sidebar-logo .logo-sub {
    color: var(--sidebar-text);
    font-size: 10px;
    margin-top: 4px;
    line-height: 1.4;
  }

  .sidebar-label {
    padding: 18px 18px 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #475569;
    text-transform: uppercase;
  }

  .sidebar nav { flex: 1; overflow-y: auto; padding-bottom: 16px; }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    font-size: 13.5px;
    color: var(--sidebar-text);
    cursor: pointer;
    border-radius: 8px;
    margin: 2px 8px;
    transition: background .15s, color .15s;
    position: relative;
    user-select: none;
  }
  .nav-item:hover { background: var(--sidebar-hover); color: #cbd5e1; }
  .nav-item.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
    font-weight: 600;
  }
  .nav-item svg { flex-shrink: 0; }
  .nav-item .chevron {
    margin-left: auto;
    transition: transform .2s;
  }
  .nav-item.open .chevron { transform: rotate(90deg); }

  .sidebar-footer {
    padding: 12px 14px;
    border-top: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .sidebar-footer .avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  .sidebar-footer .info { overflow: hidden; }
  .sidebar-footer .info .name {
    font-size: 12.5px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sidebar-footer .info .role {
    font-size: 10.5px;
    color: var(--sidebar-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ── TOPBAR ── */
  .topbar {
    position: fixed;
    top: 0; left: 220px; right: 0;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 14px;
    z-index: 90;
  }
  .topbar .hris-badge {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--text);
  }
  .topbar .hris-badge svg { color: var(--blue); }
  .topbar .spacer { flex: 1; }
  .topbar .summarize-btn {
    display: flex; align-items: center; gap: 6px;
    background: linear-gradient(90deg,#2563eb,#7c3aed);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: opacity .15s;
  }
  .topbar .summarize-btn:hover { opacity: .88; }
  .topbar .icon-btn {
    width: 36px; height: 36px;
    border: none; background: var(--bg);
    border-radius: 50%;
    display: grid; place-items: center;
    cursor: pointer;
    color: var(--text-muted);
    position: relative;
    transition: background .15s;
  }
  .topbar .icon-btn:hover { background: var(--blue-light); color: var(--blue); }
  .badge {
    position: absolute;
    top: 3px; right: 3px;
    background: var(--orange);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 99px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    display: grid;
    place-items: center;
  }
  .topbar .user-chip {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg);
    border-radius: 24px;
    padding: 4px 12px 4px 4px;
    cursor: pointer;
    transition: background .15s;
  }
  .topbar .user-chip:hover { background: var(--blue-light); }
  .topbar .user-chip .av {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    display: grid; place-items: center;
  }
  .topbar .user-chip .uname {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar .user-chip .ucomp {
    font-size: 10.5px;
    color: var(--text-muted);
  }

  /* ── MAIN CONTENT ── */
  .main {
    margin-left: 220px;
    margin-top: 56px;
    padding: 24px;
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* ── HERO CARD ── */
  .hero-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
  }
  .hero-card::before {
    content: '';
    position: absolute;
    top: -40px; right: 160px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: var(--blue-light);
    opacity: .4;
    pointer-events: none;
  }
  .hero-text h1 { font-size: 22px; font-weight: 700; color: var(--text); }
  .hero-text .date { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
  .hero-text .shortcut-label { font-size: 11px; font-weight: 600; color: var(--text-muted); margin: 16px 0 10px; text-transform: uppercase; letter-spacing: .8px; }
  .shortcuts { display: flex; gap: 10px; flex-wrap: wrap; }
  .shortcut-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    display: flex; align-items: center; gap: 6px;
  }
  .shortcut-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
  .hero-illus {
    position: relative;
    width: 180px; height: 140px;
    flex-shrink: 0;
  }
  .hero-illus .check-bubble {
    position: absolute;
    top: 10px; left: 10px;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--teal);
    display: grid; place-items: center;
    box-shadow: 0 4px 16px rgba(13,148,136,.3);
    animation: pop .6s ease both;
  }
  @keyframes pop { from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1} }
  .hero-illus img { width: 140px; position: absolute; bottom: 0; right: 0; }

  /* ── STATS ROW ── */
  .stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

  /* ── CARD ── */
  .card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
  }
  .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex; align-items: center; gap: 6px;
  }
  .card-title svg { color: var(--text-muted); }
  .card-menu { color: var(--text-muted); cursor: pointer; font-size: 18px; line-height: 1; }

  /* progress bar */
  .prog-bar { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; margin-bottom: 12px; }
  .prog-fill { height: 100%; border-radius: 99px; }

  .stat-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
  .stat-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
  .stat-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
  .stat-count { font-size: 12.5px; font-weight: 600; color: var(--text); }
  .stat-pct { font-size: 12px; color: var(--text-muted); min-width: 38px; text-align: right; }
  .total-row { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
  .total-row strong { color: var(--text); }
  .filter-row { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; cursor: pointer; }

  /* ── BAR CHART ── */
  .bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding-bottom: 4px; }
  .bar-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
  .bar { border-radius: 4px 4px 0 0; width: 100%; background: var(--blue-mid); transition: background .15s; cursor: pointer; }
  .bar:hover { background: var(--blue); }
  .bar-label { font-size: 9.5px; color: var(--text-muted); white-space: nowrap; }
  .bar-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 9px; color: var(--text-muted); height: 90px; padding-bottom: 4px; margin-right: 4px; text-align: right; }

  /* ── DONUT ── */
  .donut-wrap { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 10px; }
  .donut-wrap svg { transform: rotate(-90deg); }
  .donut-label { position: absolute; text-align: center; }
  .donut-label .num { font-size: 20px; font-weight: 700; color: var(--text); }
  .donut-label .sub { font-size: 10px; color: var(--text-muted); }

  /* ── BOTTOM ROW ── */
  .bottom-row { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 16px; }

  /* ── QUICK LINKS ── */
  .quick-links { display: flex; flex-direction: column; gap: 4px; }
  .quick-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: background .15s, color .15s;
  }
  .quick-link:hover { background: var(--blue-light); color: var(--blue); }
  .quick-link svg { color: var(--blue); flex-shrink: 0; }

  /* ── BANNER ── */
  .banner-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    min-height: 170px;
    box-shadow: var(--shadow);
  }
  .banner-card::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 150px; height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
  }
  .banner-card .banner-icon {
    position: absolute;
    top: 20px; left: 24px;
    font-size: 36px;
    animation: float 3s ease-in-out infinite;
  }
  @keyframes float { 0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)} }
  .banner-card h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
  .banner-card p { font-size: 12px; color: rgba(255,255,255,.8); line-height: 1.5; }
  .banner-card .banner-btn {
    margin-top: 14px;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 99px;
    border: 1.5px solid rgba(255,255,255,.35);
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .15s;
    width: fit-content;
  }
  .banner-card .banner-btn:hover { background: rgba(255,255,255,.28); }

  /* ── LEAVE CARD ── */
  .leave-card { display: flex; flex-direction: column; gap: 14px; }
  .leave-item { display: flex; flex-direction: column; gap: 4px; }
  .leave-item .leave-title { font-size: 12px; color: var(--text-muted); font-weight: 500; }
  .leave-item .leave-val { font-size: 22px; font-weight: 700; color: var(--text); }
  .leave-item .leave-val.negative { color: var(--red); }
  .leave-item .leave-link { font-size: 12px; color: var(--blue); cursor: pointer; }
  .leave-item .leave-link:hover { text-decoration: underline; }
  .leave-divider { height: 1px; background: var(--border); }

  /* ── ANIMATIONS ── */
  .card, .hero-card, .banner-card {
    animation: fadeUp .4s ease both;
  }
  @keyframes fadeUp { from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none} }
  .stats-row .card:nth-child(1){ animation-delay:.05s }
  .stats-row .card:nth-child(2){ animation-delay:.10s }
  .stats-row .card:nth-child(3){ animation-delay:.15s }
  .stats-row .card:nth-child(4){ animation-delay:.20s }

  /* ── LANGUAGE SWITCHER ── */
  .lang-switcher {
    position: relative;
  }
  .lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
  }
  .lang-btn:hover {
    border-color: var(--blue);
    background: var(--blue-light);
    color: var(--blue);
  }
  .lang-flag { font-size: 16px; line-height: 1; }
  .lang-code { font-size: 12.5px; font-weight: 700; letter-spacing: .3px; }

  .lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(30,41,59,.13);
    padding: 6px;
    min-width: 200px;
    z-index: 999;
    animation: dropIn .18s ease;
  }
  @keyframes dropIn { from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none} }
  .lang-dropdown.open { display: block; }

  .lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .12s;
  }
  .lang-option:hover { background: var(--bg); }
  .lang-option.active { background: var(--blue-light); }
  .lang-flag-lg { font-size: 20px; line-height: 1; flex-shrink: 0; }
  .lang-opt-name { font-size: 13px; font-weight: 600; color: var(--text); }
  .lang-opt-code { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
  .lang-check { margin-left: auto; flex-shrink: 0; }

  /* scrollbar */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }

  /* ── SUBMENU (inline accordion) ── */
  .nav-group { position: relative; }
  .submenu {
    overflow: hidden;
    max-height: 0;
    transition: max-height .28s ease;
  }
  .nav-group.open .submenu { max-height: 300px; }
  .nav-group.open .nav-item .chevron { transform: rotate(90deg); }
  .sub-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px 7px 42px;
    font-size: 12.5px;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    margin: 1px 8px;
    transition: background .15s, color .15s;
    position: relative;
  }
  .sub-item::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #475569;
    transition: background .15s;
  }
  .sub-item:hover { background: #334155; color: #cbd5e1; }
  .sub-item:hover::before { background: var(--blue); }
  .sub-item.active { color: #fff; font-weight: 600; }
  .sub-item.active::before { background: var(--blue); }