:root {
    --bg: #f2f5f9;
    --surface: #ffffff;
    --surface2: #eef2f7;
    --border: #dde3ec;
    --accent: #0077cc;
    --accent2: #e85c1a;
    --accent3: #1aaa5e;
    --warn: #d49600;
    --text: #1a2535;
    --muted: #7a92aa;
    --grid: rgba(0,0,0,0.03);
  }

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

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* Grid background */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(var(--grid) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
  }

  /* Subtle warm orb */
  body::after {
    content: '';
    position: fixed;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,213,0,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  .wrapper { position: relative; z-index: 1; }

  /* ─── HEADER ─── */
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    border-bottom: 3px solid #c9a800;
    background: #ffd500;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 4px 20px rgba(255,213,0,0.3);
  }

  .logo {
    display: flex; align-items: center; gap: 12px;
  }
  .logo-icon {
    width: auto; height: 36px;
    /* background: linear-gradient(135deg, #1a2535, #2e4060); */
    /* clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); */
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
  }
  .logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px; font-weight: 700;
    letter-spacing: 3px;
    color: #1a2535;
  }
  .logo-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px; color: #5a4a00;
    letter-spacing: 2px; text-transform: uppercase;
    margin-top: 1px;
  }

  .header-right {
    display: flex; align-items: center; gap: 20px;
  }
  .live-badge {
    display: flex; align-items: center; gap: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px; color: #1a5c30;
    letter-spacing: 1.5px;
    background: rgba(0,0,0,0.1);
    padding: 5px 12px; border-radius: 99px;
  }
  .live-dot {
    width: 7px; height: 7px;
    background: #1aaa5e;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
  }
  @keyframes pulse {
    0%,100% { opacity:1; box-shadow: 0 0 0 0 rgba(26,170,94,0.4); }
    50% { opacity:0.6; box-shadow: 0 0 0 6px rgba(26,170,94,0); }
  }

  .header-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px; color: #5a4a00;
    letter-spacing: 1px;
  }

  .avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    border: 2px solid rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
  }

  .header-divider {
  width: 2px;
  height: 40px;
  background-color: #000000;
  opacity: 0.35;
  border-radius: 2px;
  margin: 0 8px; /* Memberikan jarak napas antara logo UT dan teks Digvision */
}
  

  /* ─── MAIN LAYOUT ─── */
  main { padding: 28px 32px; }

  /* Section label */
  .section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px; letter-spacing: 3px;
    color: var(--muted); text-transform: uppercase;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
  }
  .section-label::after {
    content: '';
    flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
  }

  /* ─── TOP KPI ROW ─── */
  .kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1.2fr 1.2fr;
    gap: 16px;
    margin-bottom: 28px;
  }

  .kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .kpi-card:hover { border-color: #ffd500; box-shadow: 0 4px 20px rgba(255,213,0,0.15); }
  .kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
  }
  .kpi-card.blue::before { background: linear-gradient(90deg, #0077cc, transparent); }
  .kpi-card.orange::before { background: linear-gradient(90deg, #e85c1a, transparent); }
  .kpi-card.green::before { background: linear-gradient(90deg, #1aaa5e, transparent); }
  .kpi-card.yellow::before { background: linear-gradient(90deg, #d49600, transparent); }

  .kpi-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px; letter-spacing: 2px;
    color: var(--muted); text-transform: uppercase;
    margin-bottom: 14px;
  }
  .kpi-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 44px; font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
  }
  .kpi-card.blue .kpi-value { color: var(--accent); }
  .kpi-card.orange .kpi-value { color: var(--accent2); }
  .kpi-card.green .kpi-value { color: var(--accent3); }
  .kpi-card.yellow .kpi-value { color: var(--warn); }

  .kpi-unit {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px; color: var(--muted);
  }
  .kpi-trend {
    position: absolute; top: 22px; right: 22px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px; color: var(--accent3);
  }

  /* Time breakdown inside KPI */
  .time-bars { margin-top: 14px; }
  .time-row {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 8px;
  }
  .time-row-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px; color: var(--muted);
    width: 68px; flex-shrink: 0;
  }
  .bar-track {
    flex: 1; height: 6px;
    background: rgba(0,0,0,0.07);
    border-radius: 99px; overflow: hidden;
  }
  .bar-fill {
    height: 100%; border-radius: 99px;
    transition: width 1s ease;
  }
  .bar-fill.primary { background: linear-gradient(90deg, var(--accent3), #00cc6a); }
  .bar-fill.secondary { background: linear-gradient(90deg, var(--accent2), #ff4500); }
  .time-pct {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px; font-weight: 600;
    width: 34px; text-align: right;
  }
  .time-pct.primary { color: var(--accent3); }
  .time-pct.secondary { color: var(--accent2); }

  /* Cycle time breakdown */
  .cycle-segments { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
  .cycle-row {
    display: flex; align-items: center; justify-content: space-between;
  }
  .cycle-dot-label { display: flex; align-items: center; gap: 7px; }
  .dot {
    width: 7px; height: 7px; border-radius: 50%;
    flex-shrink: 0;
  }
  .cycle-name {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px; color: var(--muted);
  }
  .cycle-val {
    font-family: 'Rajdhani', monospace;
    font-size: 14px; font-weight: 600; color: var(--text);
  }

  /* ─── BOTTOM SECTION ─── */
  .bottom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* PROJECT TABLE */
  .table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }

  .table-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: #fffbe6;
  }
  .table-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px; font-weight: 600;
    letter-spacing: 1px;
  }
  .table-actions { display: flex; gap: 10px; }
  .btn-sm {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px; letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
  }
  .btn-sm:hover { border-color: #c9a800; color: #5a4a00; background: #fffbe6; }
  .btn-sm.active {
    border-color: #c9a800;
    background: #ffd500;
    color: #5a4a00;
    font-weight: 600;
  }

  /* Search */
  .search-bar {
    display: flex; align-items: center; gap: 8px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
  }
  .search-bar input {
    background: transparent; border: none; outline: none;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px; color: var(--text);
    width: 160px;
  }
  .search-bar input::placeholder { color: var(--muted); }
  .search-icon { color: var(--muted); font-size: 12px; }

  /* Table */
  table { width: 100%; border-collapse: collapse; }
  thead tr {
    background: #ffd500;
    border-bottom: 2px solid #c9a800;
  }
  th {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 8px; letter-spacing: 2px;
    color: #5a4a00; text-transform: uppercase;
    padding: 12px 16px; text-align: left;
    font-weight: 600;
    white-space: nowrap;
  }
  th:first-child { padding-left: 24px; }

  tbody tr {
    border-bottom: 1px solid #eef2f7;
    transition: background 0.2s;
  }
  tbody tr:hover { background: #fffbe6; }
  tbody tr:last-child { border-bottom: none; }

  td {
    padding: 14px 16px;
    font-size: 12px;
    vertical-align: middle;
  }
  td:first-child { padding-left: 24px; }

  .td-project { display: flex; flex-direction: column; gap: 3px; }
  .td-project-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px; font-weight: 600; color: var(--text);
  }
  .td-project-loc {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px; color: var(--muted);
  }

  .tag {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 8px; letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
  }
  .tag-active { background: rgba(0,255,136,0.1); color: var(--accent3); border: 1px solid rgba(0,255,136,0.2); }
  .tag-done { background: rgba(0,212,255,0.1); color: var(--accent); border: 1px solid rgba(0,212,255,0.2); }
  .tag-paused { background: rgba(255,107,53,0.1); color: var(--accent2); border: 1px solid rgba(255,107,53,0.2); }

  .td-mono {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
  }
  .td-highlight {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px; font-weight: 600;
  }
  .c-blue { color: var(--accent); }
  .c-green { color: var(--accent3); }
  .c-orange { color: var(--accent2); }
  .c-yellow { color: var(--warn); }
  .c-muted { color: var(--muted); }

  .mini-bar-wrap { display: flex; align-items: center; gap: 8px; }
  .mini-bar-track {
    width: 60px; height: 4px;
    background: rgba(0,0,0,0.08);
    border-radius: 99px; overflow: hidden;
  }
  .mini-bar-fill {
    height: 100%; border-radius: 99px;
    background: linear-gradient(90deg, var(--accent3), #00cc6a);
  }
  .mini-bar-fill.secondary { background: linear-gradient(90deg, var(--accent2), #ff4500); }

  /* ─── FOOTER NAV ─── */
  .footer-nav {
    display: flex; justify-content: center; gap: 4px;
    padding: 20px 0;
  }
  .page-btn {
    width: 30px; height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: white;
    color: var(--muted);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
  }
  .page-btn.active { border-color: #c9a800; color: #5a4a00; background: #ffd500; font-weight: 700; }
  .page-btn:hover { border-color: #c9a800; color: #5a4a00; background: #fffbe6; }

  /* Sidebar mini stats */
  .side-stat {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(30,48,72,0.5);
  }
  .side-stat:last-child { border-bottom: none; }
  .side-stat-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
  }
  .side-stat-info { flex: 1; }
  .side-stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 8px; color: var(--muted); letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 2px;
  }
  .side-stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px; font-weight: 600;
  }

  /* Donut chart placeholder */
  .donut-wrap {
    display: flex; justify-content: center; padding: 20px 0 10px;
    position: relative;
  }
  svg.donut { transform: rotate(-90deg); }
  .donut-center {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
  }
  .donut-center-val {
    font-family: 'Rajdhani', sans-serif;
    font-size: 26px; font-weight: 700; color: var(--accent3);
    line-height: 1;
  }
  .donut-center-lbl {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 8px; color: var(--muted); letter-spacing: 1px;
  }

  /* animate in */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .kpi-card { animation: fadeUp 0.5s ease both; }
  .kpi-card:nth-child(1) { animation-delay: 0.05s; }
  .kpi-card:nth-child(2) { animation-delay: 0.1s; }
  .kpi-card:nth-child(3) { animation-delay: 0.15s; }
  .kpi-card:nth-child(4) { animation-delay: 0.2s; }
  .table-card { animation: fadeUp 0.5s 0.25s ease both; }

  /* scrollbar */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: #dde3ec; border-radius: 99px; }

  .no-data { color: var(--muted); font-size: 10px; font-family: 'IBM Plex Mono', monospace; }

  /* Top sub-header */
  .sub-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 22px;
  }
  .page-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px; font-weight: 600; letter-spacing: 1px;
  }
  .page-title span { color: var(--accent); }
  .sub-header-right { display: flex; gap: 8px; align-items: center; }

  .filter-chip {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px; letter-spacing: 1px;
    padding: 5px 12px; border-radius: 99px;
    border: 1px solid var(--border);
    color: var(--muted); cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    background: white;
  }
  .filter-chip.active, .filter-chip:hover {
    border-color: #c9a800; color: #5a4a00;
    background: #ffd500;
  }