/* ============================================================
 *  ePortal Arsa Sejahtera — Design System
 *  Identitas: logo BPRS ARSA (merah A + emas + biru tua)
 *  Aksen utama: kuning emas #ffa10a (brand arsa.co.id)
 *  Display: Sora · Body: Inter
 * ============================================================ */

/* ── Token ── */
:root {
    /* Brand ARSA */
    --brand-950: #0b1d3d;
    --brand-900: #10264f;
    --brand-800: #17325f;
    --brand-700: #1e3f7a;
    --gold:      #ffa10a;
    --gold-deep: #e28e00;
    --gold-soft: #fff3d6;
    --red:       #c92a2a;
    --red-deep:  #a01f1f;
    --red-soft:  #fdecec;

    /* Netral */
    --ink:   #0f172a;
    --slate: #475569;
    --muted: #64748b;
    --faint: #94a3b8;
    --paper: #f6f7f9;
    --surface: #ffffff;
    --line:  #e4e9f0;
    --line-soft: #eef2f7;

    /* Status */
    --ok-bg:   #dcfce7; --ok-fg:   #166534; --ok-dot: #16a34a;
    --wait-bg: #fef3c7; --wait-fg: #92400e; --wait-dot: #f59e0b;
    --no-bg:   #fee2e2; --no-fg:   #991b1b; --no-dot: #ef4444;

    /* Bentuk */
    --r-sm: 10px; --r-md: 14px; --r-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .04);
    --shadow-lg: 0 18px 40px rgba(16, 38, 79, .18);

    /* Tipografi */
    --font-display: 'Sora', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    font-size: 14px;
}

:focus-visible { outline: 3px solid rgba(255, 161, 10, .45); outline-offset: 2px; border-radius: 4px; }

/* ── Logo ── */
.logo-img { height: 40px; width: auto; display: block; }
.logo-tile {
    background: #fff; border-radius: 10px; padding: 6px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    display: inline-flex; align-items: center;
}
.logo-tile img { height: 40px; width: auto; display: block; }

/* ── Navbar ── */
.navbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px 16px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line-soft);
    padding: 10px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--brand-900); letter-spacing: -.01em; line-height: 1.15; }
.brand-sub  { font-size: 11px; color: var(--faint); letter-spacing: .02em; }

.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link {
    font-size: 13px; font-weight: 600; color: var(--slate);
    text-decoration: none; padding: 8px 14px; border-radius: 999px;
    transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: var(--gold-soft); color: var(--brand-800); }
.nav-link.active { background: var(--gold-soft); color: var(--brand-900); box-shadow: inset 0 0 0 1px rgba(226,142,0,.28); }

.nav-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── Notifikasi internal ── */
.notif-menu { position: relative; }
.notif-bell { position:relative; width:44px; height:44px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; background:var(--surface); color:var(--brand-900); cursor:pointer; transition:.18s ease; }
.notif-bell:hover { background:var(--gold-soft); border-color:rgba(226,142,0,.35); transform:translateY(-1px); }
.notif-bell svg { width:21px; height:21px; }
.notif-count { position:absolute; top:-4px; right:-5px; min-width:20px; height:20px; padding:0 5px; display:grid; place-items:center; background:var(--red); color:#fff; border:2px solid #fff; border-radius:999px; font-size:10px; font-weight:800; }
.notif-count[hidden] { display:none; }
.notif-dropdown { position:absolute; right:0; top:calc(100% + 10px); width:min(380px,calc(100vw - 24px)); max-height:460px; overflow:auto; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow-lg); z-index:80; }
.notif-dropdown-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; border-bottom:1px solid var(--line-soft); }
.notif-dropdown-head a { font-size:12px; font-weight:700; color:var(--brand-700); }
.notif-drop-item { display:flex; gap:10px; padding:13px 16px; color:var(--ink); text-decoration:none; border-bottom:1px solid var(--line-soft); }
.notif-drop-item:hover,.notif-drop-item.is-unread { background:#fffaf0; }
.notif-drop-item span:last-child { min-width:0; }
.notif-drop-item b { display:block; font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.notif-drop-item small { display:block; margin-top:3px; color:var(--faint); font-size:10.5px; }
.notif-empty { padding:28px 16px; text-align:center; color:var(--faint); }
.notif-dot { width:9px; height:9px; margin-top:5px; border-radius:50%; flex:none; background:#3b82f6; box-shadow:0 0 0 4px rgba(59,130,246,.10); }
.notif-dot-penting { background:var(--wait-dot); box-shadow:0 0 0 4px rgba(245,158,11,.12); }
.notif-dot-darurat { background:var(--red); box-shadow:0 0 0 4px rgba(201,42,42,.10); }

.notif-hero { position:relative; overflow:hidden; display:flex; align-items:center; justify-content:space-between; gap:28px; padding:27px 30px; margin-bottom:20px; border-radius:20px; color:#fff; background:linear-gradient(130deg,#10264f 0%,#0b1d3d 66%,#162e5e 100%); box-shadow:0 12px 30px rgba(11,29,61,.16); }
.notif-hero::after { content:""; position:absolute; width:290px; height:290px; right:-90px; top:-155px; border-radius:50%; border:55px solid rgba(255,161,10,.10); }
.notif-hero-copy,.notif-hero-stats { position:relative; z-index:1; }
.notif-hero h1 { font-family:var(--font-display); font-size:25px; line-height:1.2; margin:4px 0 6px; letter-spacing:-.025em; }
.notif-hero p { color:rgba(255,255,255,.70); font-size:13px; }
.notif-hero .page-eyebrow { color:var(--gold); }
.notif-hero-stats { display:flex; min-width:360px; border:1px solid rgba(255,255,255,.13); background:rgba(255,255,255,.06); border-radius:14px; backdrop-filter:blur(5px); }
.notif-hero-stats div { flex:1; min-width:110px; padding:13px 17px; border-right:1px solid rgba(255,255,255,.11); }
.notif-hero-stats div:last-child { border:0; }
.notif-hero-stats span { display:block; color:var(--gold); font-family:var(--font-display); font-weight:800; font-size:21px; }
.notif-hero-stats small { display:block; color:rgba(255,255,255,.63); font-size:10.5px; margin-top:1px; white-space:nowrap; }

.notif-admin-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(285px,.75fr); gap:20px; align-items:start; }
.notif-side-stack { display:grid; gap:14px; position:sticky; top:84px; }
.notif-panel { background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow-sm); }
.notif-compose-panel { overflow:hidden; }
.notif-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:20px 22px; border-bottom:1px solid var(--line-soft); }
.notif-panel-head.compact { align-items:center; }
.notif-panel-head h2 { font-family:var(--font-display); color:var(--brand-900); font-size:17px; letter-spacing:-.015em; margin:2px 0 3px; }
.notif-panel-head p { color:var(--muted); font-size:12px; }
.notif-kicker { color:var(--gold-deep); font-size:9.5px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.notif-compose-icon { width:42px; height:42px; flex:none; display:grid; place-items:center; border-radius:12px; color:var(--gold-deep); background:var(--gold-soft); }
.notif-compose-icon svg { width:21px; height:21px; }
.notif-compose-form { padding:0 22px 20px; }
.notif-fieldset { border:0; border-bottom:1px solid var(--line-soft); padding:18px 0 20px; }
.notif-fieldset legend { display:flex; align-items:center; gap:8px; color:var(--brand-900); font-weight:800; font-size:12px; }
.notif-fieldset legend>span { width:23px; height:23px; display:grid; place-items:center; border-radius:7px; color:var(--brand-900); background:var(--gold-soft); font-size:11px; }
.notif-fieldset legend em { margin-left:auto; font-style:normal; color:var(--faint); font-size:9.5px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.notif-compose-form label.field-label { margin-top:12px; }
.notif-compose-form input:not([type="checkbox"]),.notif-compose-form select,.notif-compose-form textarea { min-height:44px; background:#fbfcfe; border-color:#dfe5ed; }
.notif-compose-form textarea { min-height:116px; line-height:1.6; }
.notif-label-row,.notif-picker-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.notif-label-row small,.notif-picker-head>span { color:var(--faint); font-size:10.5px; }
.notif-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.notif-conditional { margin-top:14px; padding:14px; border:1px solid #f3dfb9; border-radius:12px; background:#fffbf3; }
.notif-user-picker { max-height:245px; overflow:auto; border:1px solid var(--line); border-radius:11px; margin-top:8px; padding:5px; display:grid; grid-template-columns:1fr 1fr; background:#fff; }
.notif-user-picker label { display:flex; align-items:center; gap:9px; min-width:0; padding:8px; border-radius:8px; cursor:pointer; }
.notif-user-picker label:hover { background:var(--gold-soft); }
.notif-user-picker input { flex:none; width:16px; height:16px; accent-color:var(--gold-deep); }
.notif-user-picker label>span:last-child { min-width:0; }
.notif-user-picker b,.notif-user-picker small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.notif-user-picker b { font-size:11.5px; }
.notif-user-picker small { color:var(--faint); font-size:9.5px; }
.notif-user-avatar { width:29px; height:29px; flex:none; display:grid!important; place-items:center; border-radius:9px; background:#eef2f7; color:var(--brand-800); font-size:10px; font-weight:800; }
input[type="datetime-local"],input[type="search"] { width:100%; padding:10px 13px; border:1px solid var(--line); border-radius:var(--r-sm); font:inherit; }
.notif-submit-bar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-top:20px; }
.notif-submit-bar>div { display:grid; }.notif-submit-bar b { color:var(--slate); font-size:11.5px; }.notif-submit-bar span { color:var(--faint); font-size:10.5px; }
.notif-send-btn { min-width:190px; min-height:45px; box-shadow:0 6px 16px rgba(226,142,0,.18); }
.notif-send-btn svg { width:16px; height:16px; }

.notif-inbox-panel { overflow:hidden; }
.notif-unread-pill,.notif-history-total { display:inline-flex; align-items:center; min-height:25px; padding:4px 9px; border-radius:999px; background:var(--gold-soft); color:var(--brand-900); font-size:10.5px; font-weight:800; }
.notif-empty-state { min-height:235px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:32px 24px; }
.notif-empty-state.large { min-height:330px; }
.notif-empty-icon { width:56px; height:56px; display:grid; place-items:center; margin-bottom:13px; border-radius:18px; color:var(--gold-deep); background:linear-gradient(145deg,#fff7e5,#ffedc4); }
.notif-empty-icon svg { width:25px; height:25px; }
.notif-empty-state b { color:var(--brand-900); font-family:var(--font-display); font-size:13px; }
.notif-empty-state p { max-width:245px; margin-top:5px; color:var(--faint); font-size:11px; line-height:1.55; }
.notif-list { display:grid; }
.notif-row-form { margin:0; }
.notif-row { width:100%; text-align:left; font:inherit; background:transparent; border:0; cursor:pointer; display:flex; align-items:flex-start; gap:12px; padding:14px 18px; color:var(--ink); border-bottom:1px solid var(--line-soft); transition:.15s ease; }
.notif-row:hover { background:#fafbfc; }
.notif-row.is-unread { background:linear-gradient(90deg,#fff8e9,rgba(255,255,255,.3)); box-shadow:inset 3px 0 var(--gold); }
.notif-row-content { display:grid; gap:3px; min-width:0; flex:1; }
.notif-row-content b { font-size:12px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.notif-row-content small { color:var(--faint); font-size:10px; }
.notif-row-content>span { color:var(--muted); font-size:11px; line-height:1.5; }
.notif-row-arrow { margin-left:auto; color:var(--faint); font-size:21px; }
.notif-read-all { padding:12px 16px; }
.compact-list .notif-row { padding:12px 18px; }
.notif-tip-card { display:flex; gap:11px; padding:15px 17px; color:#5b471c; border:1px solid #f2dfb5; border-radius:14px; background:#fffaf0; }
.notif-tip-icon { width:24px; height:24px; flex:none; display:grid; place-items:center; border-radius:50%; background:var(--gold); color:var(--brand-950); font-weight:900; }
.notif-tip-card b { font-size:11.5px; }.notif-tip-card p { margin-top:3px; color:#876f38; font-size:10.5px; line-height:1.55; }

.notif-history-panel { margin-top:20px; overflow:hidden; }
.notif-history-list { display:grid; }
.notif-history-item { display:grid; grid-template-columns:10px minmax(0,1fr) 110px 76px 34px; gap:14px; align-items:center; min-height:74px; padding:12px 20px; border-top:1px solid var(--line-soft); }
.notif-history-mark { width:8px; height:8px; border-radius:50%; background:#3b82f6; }
.notif-history-main { min-width:0; }.notif-history-main>div:first-child { display:grid; gap:2px; }.notif-history-main b { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12.5px; }.notif-history-main span { color:var(--faint); font-size:10.5px; }
.notif-read-progress { height:4px; margin-top:8px; overflow:hidden; border-radius:99px; background:#edf1f5; }.notif-read-progress i { display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,var(--gold),var(--gold-deep)); }
.notif-history-read { display:grid; text-align:right; }.notif-history-read b { color:var(--brand-900); }.notif-history-read span { color:var(--faint); font-size:9.5px; }
.notif-more-btn { width:32px; height:32px; border:0; border-radius:8px; background:transparent; color:var(--faint); font-size:20px; cursor:pointer; }.notif-more-btn:hover { color:var(--red); background:var(--red-soft); }
.notif-empty-history { padding:34px 20px; text-align:center; color:var(--faint); }
.notif-employee-inbox { overflow:hidden; }

.notif-detail-card { max-width:820px; margin:0 auto; padding:28px 32px; border:1px solid var(--line); border-top:4px solid #3b82f6; border-radius:16px; background:#fff; box-shadow:var(--shadow-md); }
.notif-detail-card.notif-priority-penting { border-top-color:var(--wait-dot); }.notif-detail-card.notif-priority-darurat { border-top-color:var(--red); }
.notif-detail-top,.notif-detail-meta { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.notif-back { color:var(--brand-700); font-size:11.5px; font-weight:700; text-decoration:none; }
.notif-time { color:var(--faint); font-size:10.5px; }
.notif-detail-label { display:flex; align-items:center; gap:10px; margin-top:28px; color:var(--muted); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.09em; }
.notif-detail-card h2 { font-family:var(--font-display); color:var(--brand-950); font-size:25px; margin:10px 0 15px; letter-spacing:-.025em; }
.notif-body { color:var(--slate); line-height:1.8; margin-bottom:24px; }
.notif-detail-meta { justify-content:flex-start; padding:13px 15px; margin-bottom:18px; border-radius:10px; background:#f7f9fc; color:var(--muted); font-size:10.5px; }
.notif-inline-form { display:inline-flex; margin-right:8px; }

@media (max-width:900px) {
    .notif-hero { align-items:flex-start; flex-direction:column; }
    .notif-hero-stats { min-width:0; width:100%; }
    .notif-admin-layout { grid-template-columns:1fr; }
    .notif-side-stack { position:static; grid-row:1; }
    .notif-form-grid { grid-template-columns:1fr; gap:0; }
    .notif-dropdown { position:fixed; right:12px; top:68px; }
    .user-meta { display:none; }
}
@media (max-width:620px) {
    .notif-hero { padding:22px 20px; border-radius:15px; }
    .notif-hero-stats { display:grid; grid-template-columns:repeat(3,1fr); }
    .notif-hero-stats div { min-width:0; padding:11px 8px; }
    .notif-hero-stats small { white-space:normal; }
    .notif-panel-head,.notif-compose-form { padding-left:16px; padding-right:16px; }
    .notif-user-picker { grid-template-columns:1fr; }
    .notif-submit-bar { align-items:stretch; flex-direction:column; }
    .notif-send-btn { width:100%; }
    .notif-history-item { grid-template-columns:8px minmax(0,1fr) 34px; gap:10px; padding:13px 15px; }
    .notif-history-read,.notif-history-item>.badge { display:none; }
    .notif-detail-card { padding:22px 18px; }
    .notif-detail-top,.notif-detail-meta { align-items:flex-start; flex-direction:column; gap:7px; }
}

.user-chip {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 10px 4px 4px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface);
}
.avatar {
    width: 28px; height: 28px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: linear-gradient(145deg, var(--red), var(--red-deep));
    color: #fff; font-size: 11px; font-weight: 700; font-family: var(--font-display);
    text-transform: uppercase;
}
.user-meta { line-height: 1.15; }
.user-name { font-size: 12px; font-weight: 700; color: var(--ink); }
.user-role { font-size: 10.5px; color: var(--faint); }

/* ── Layout halaman ── */
.container { max-width: 1080px; margin: 0 auto; padding: 26px 20px 56px; }

.page-head { margin-bottom: 20px; }
.page-eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold-deep);
}
.page-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--ink); margin-top: 4px; letter-spacing: -.015em; }
.page-desc { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ── Header halaman versi kartu (navy + emas, gaya hero dashboard) ── */
.page-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--brand-900), var(--brand-950) 65%, #0d2249);
    border-radius: var(--r-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-md);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M36 4 L44 28 L68 36 L44 44 L36 68 L28 44 L4 36 L28 28 Z'/%3E%3Ccircle cx='36' cy='36' r='9'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 72px 72px;
    pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .page-eyebrow { color: var(--gold); }
.page-hero .page-title { color: #fff; }
.page-hero .page-desc { color: rgba(255,255,255,.78); }

/* ── Kartu ── */
.box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}
.box-title {
    font-family: var(--font-display); font-size: 15px; font-weight: 700;
    color: var(--brand-900); margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.box-title::before {
    content: ""; width: 4px; height: 16px; border-radius: 2px;
    background: linear-gradient(var(--gold), var(--gold-deep));
}

.grid-2 { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 18px; align-items: start; }

/* ── Dashboard top row: Hero + Widgets ── */
.dash-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}
@media (max-width:860px) { .dash-top-row { grid-template-columns:1fr; } }

/* ── Hero compact (kiri) ── */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--brand-900), var(--brand-950) 65%, #0d2249);
    border-radius: var(--r-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-md);
    display: flex; flex-direction: column; justify-content: space-between;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M36 4 L44 28 L68 36 L44 44 L36 68 L28 44 L4 36 L28 28 Z'/%3E%3Ccircle cx='36' cy='36' r='9'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 72px 72px;
    pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-eyebrow {
    font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold);
}
.hero-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: #fff; margin-top: 4px; letter-spacing: -.02em; }
.hero-date { color: rgba(255,255,255,.65); font-size: 12px; margin-top: 3px; }
.hero-meta { display:flex; gap:16px; margin-top:14px; }
.hero-meta-item {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-sm);
    padding: 8px 14px;
    flex:1;
}
.hero-meta-label { display:block; font-size:10px; font-weight:600; color:rgba(255,255,255,.5); text-transform:uppercase; letter-spacing:.04em; }
.hero-meta-value { display:block; font-family:var(--font-display); font-size:18px; font-weight:800; color:var(--gold); margin-top:2px; }
.hero-meta-value em { font-style:normal; font-size:11px; font-weight:600; color:rgba(255,255,255,.5); }
.hero-actions { margin-top:16px; }

/* ── Widgets column (kanan) ── */
.dash-widgets-col {
    display: flex; flex-direction: column; gap: 12px;
}

/* ── Stat cards ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 18px; }
.stat {
    position: relative; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); box-shadow: var(--shadow-sm);
    padding: 16px 18px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stat::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: var(--accent, var(--gold));
    opacity: .9;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent, var(--gold)); }
.stat::after {
    content: ""; position: absolute; right: -22px; top: -22px;
    width: 64px; height: 64px; border-radius: 50%;
    background: radial-gradient(circle, var(--accent-soft, var(--gold-soft)) 0%, transparent 70%);
    opacity: 0; transition: opacity .2s ease;
}
.stat:hover::after { opacity: 1; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat-value { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--ink); margin-top: 4px; letter-spacing: -.02em; }
.stat-value em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--faint); }
.stat-icon { margin-left: auto; color: var(--accent, var(--gold)); }
.stat-icon svg { width: 20px; height: 20px; }
.stat--red { --accent: var(--red); }
.stat--red .stat-icon { color: var(--red); }
.stat--red::after { background: radial-gradient(circle, var(--red-soft) 0%, transparent 70%); }

/* ── Form ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
label.field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--slate); margin: 14px 0 5px; }
label.field-label .req { color: #dc2626; }
input[type="text"], input[type="password"], input[type="date"], input[type="number"], select, textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 14px; font-family: inherit; color: var(--ink);
    background: var(--surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255,161,10,.18);
}
textarea { resize: vertical; }

/* ── Tombol ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    background: var(--gold); color: var(--brand-950);
    border: 1px solid transparent; border-radius: var(--r-sm);
    padding: 10px 18px; font-size: 13.5px; font-weight: 700; font-family: inherit;
    cursor: pointer; text-decoration: none;
    transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--gold-deep); box-shadow: 0 4px 12px rgba(226,142,0,.30); }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; min-height: 44px; font-size: 12px; border-radius: 8px; }
.btn:disabled { cursor: wait; opacity: .68; transform: none; box-shadow: none; }
.btn-ghost { background: var(--surface); color: var(--slate); border-color: var(--line); }
.btn-ghost:hover { background: var(--gold-soft); color: var(--brand-800); box-shadow: none; }
.btn-danger-soft { background: var(--no-bg); color: var(--no-fg); border-color: transparent; }
.btn-danger-soft:hover { background: #fecaca; box-shadow: none; }
.btn-ok { background: var(--ok-bg); color: var(--ok-fg); }
.btn-ok:hover { background: #bbf7d0; box-shadow: none; }
.btn-danger { background: linear-gradient(145deg, var(--red), var(--red-deep)); color: #fff; border-color: transparent; }
.btn-danger:hover { background: linear-gradient(145deg, #b91c1c, #7f1d1d); color: #fff; box-shadow: 0 6px 16px rgba(201, 42, 42, .28); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.tutup-done { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--no-bg); color: var(--no-fg); font-size: 13px; font-weight: 600; }

/* ── e-SOP ── */
.sop-form-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 14px; margin-bottom: 10px; }
@media (max-width: 820px) { .sop-form-grid { grid-template-columns: 1fr; } }
.sop-form-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.sop-nama { display: flex; align-items: flex-start; gap: 10px; }
.sop-ikon { font-size: 22px; line-height: 1.1; flex: none; }
.btn-lg { padding: 13px 20px; font-size: 14.5px; }

/* Tombol hero — didefinisikan SETELAH .btn agar menimpa background default */
.btn-hero { background: var(--gold); color: var(--brand-950); }
.btn-hero:hover { background: #ffb43a; box-shadow: 0 6px 16px rgba(255,161,10,.35); }
.btn-hero svg { width: 15px; height: 15px; }
.btn-hero-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-hero-ghost:hover { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.btn-hero-ghost svg { width: 15px; height: 15px; }

/* ── Alert ── */
.alert {
    display: flex; align-items: flex-start; gap: 10px;
    border-radius: var(--r-sm); padding: 12px 14px; font-size: 13.5px;
    border: 1px solid transparent; margin-bottom: 18px;
}
.alert-ok { background: var(--ok-bg); color: var(--ok-fg); border-color: #bbf7d0; }
.alert-no { background: var(--no-bg); color: var(--no-fg); border-color: #fecaca; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ── Tabel ── */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r-sm); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
    background: var(--gold-soft);
    color: var(--brand-900);
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    padding: 11px 14px; text-align: left; white-space: nowrap;
    border-bottom: 1px solid var(--line-soft);
}
tbody td { padding: 12px 14px; vertical-align: middle; border-bottom: 1px solid var(--line-soft); }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: var(--gold-soft); }
.cell-main { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: 11.5px; color: var(--faint); }
.tbl-empty { text-align: center; color: var(--faint); padding: 26px 14px !important; }
.mono { font-variant-numeric: tabular-nums; }

/* ── Badge status ── */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
    white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-menunggu  { background: var(--wait-bg); color: var(--wait-fg); }
.badge-disetujui { background: var(--ok-bg);   color: var(--ok-fg); }
.badge-ditolak   { background: var(--no-bg);   color: var(--no-fg); }

/* Dot berdenyut untuk yang menunggu keputusan */
.badge-menunggu .dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.45); }
    50%      { box-shadow: 0 0 0 5px rgba(245,158,11,0); }
}

/* ── Tag modul ── */
.tag {
    display: inline-block; padding: 3px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.tag-cuti { background: var(--gold-soft); color: var(--brand-800); }
.tag-dinas { background: var(--red-soft); color: var(--red-deep); }

/* ── Halaman login ── */
.login-page {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(255,161,10,.12), transparent 60%),
        radial-gradient(900px 420px at 0% 110%, rgba(201,42,42,.10), transparent 55%),
        var(--paper);
}
.login-card {
    display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 880px;
    background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.login-brand {
    position: relative; padding: 40px 36px; color: #f2f5ef;
    background:
        linear-gradient(160deg, rgba(16,38,79,.96), rgba(11,29,61,.98)),
        var(--brand-900);
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 480px;
}
/* Motif khatam sebagai latar */
.login-brand::before {
    content: ""; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M36 4 L44 28 L68 36 L44 44 L36 68 L28 44 L4 36 L28 28 Z'/%3E%3Ccircle cx='36' cy='36' r='9'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 72px 72px;
    pointer-events: none;
}
.login-brand > * { position: relative; z-index: 1; }
.login-brand-top { display: flex; align-items: center; gap: 12px; }
.login-brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.login-brand-sub { font-size: 12px; opacity: .75; margin-top: 2px; }
.login-brand-hero { margin-top: 40px; }
.login-brand-hero h1 { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.login-brand-hero h1 span { color: var(--gold); }
.login-brand-hero p { margin-top: 12px; font-size: 13.5px; opacity: .82; line-height: 1.6; }
.login-points { margin-top: 28px; display: grid; gap: 10px; }
.login-point { display: flex; align-items: center; gap: 9px; font-size: 12.5px; opacity: .88; }
.login-point svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.login-brand-foot { font-size: 11.5px; opacity: .55; margin-top: 32px; }

.login-form-side { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.login-form-side h2 { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--ink); }
.login-form-side .sub { color: var(--muted); font-size: 13px; margin-top: 4px; margin-bottom: 20px; }
.login-hint { font-size: 12px; color: var(--faint); text-align: center; margin-top: 16px; line-height: 1.5; }

/* ── Responsif ── */
@media (max-width: 760px) {
    .login-card { grid-template-columns: 1fr; max-width: 420px; }
    .login-brand { min-height: 0; padding: 26px 24px; }
    .login-brand-hero, .login-points, .login-brand-foot { display: none; }
    .login-form-side { padding: 28px 24px 32px; }
    .grid-2 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .navbar { padding: 10px 14px; }
    .container { padding: 18px 14px 44px; }
    .hero { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
    .hero-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
    .hero-side { grid-template-columns: 1fr; }
}

/* ── Responsif mobile & tablet (polesan) ── */
@media (max-width: 860px) {
    .navbar { padding: 8px 14px; gap: 6px 10px; }
}
@media (max-width: 760px) {
    .logo-img { height: 34px; }
    .brand-name { font-size: 13.5px; }
    .brand-sub { display: none; }
    .nav-link { padding: 6px 11px; font-size: 12.5px; }
    .nav-right { gap: 6px; }
    /* Menu mobile: satu baris bisa digeser ke samping (bukan membungkus 3 baris) */
    .nav-links {
        order: 3; width: 100%;
        flex-wrap: nowrap; overflow-x: auto;
        justify-content: flex-start; padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-link { flex: none; }
    .page-hero { padding: 18px 20px; }
    .page-title { font-size: 20px; }
    .page-desc { font-size: 12.5px; }
    .hero { padding: 20px 18px; }
    .hero-title { font-size: 22px; }
    .hero-stat-value { font-size: 19px; }
    .box { padding: 16px; }
    .box-title { font-size: 14px; }
    table { font-size: 12.5px; }
    thead th { padding: 9px 12px; font-size: 10.5px; }
    tbody td { padding: 10px 12px; }
}
@media (max-width: 520px) {
    /* Filter & pencarian: penuh selebar kartu */
    form input[type="date"], form input[type="search"], form input[type="text"], form select {
        width: 100% !important;
    }
    .hero-actions .btn { width: 100%; }
    .stat-value { font-size: 23px; }
    .quota-pill { border-radius: 12px; }
}

@media (max-width: 640px) {
    .responsive-cards thead { display: none; }
    .responsive-cards,
    .responsive-cards tbody,
    .responsive-cards tr,
    .responsive-cards td { display: block; width: 100%; }
    .responsive-cards tbody { display: grid; gap: 12px; }
    .responsive-cards tr:not(.tolak-row) {
        border: 1px solid var(--line);
        border-radius: var(--r-sm);
        background: var(--surface);
        padding: 8px 12px;
        box-shadow: var(--shadow-sm);
    }
    .responsive-cards td {
        display: grid;
        grid-template-columns: minmax(82px, 34%) 1fr;
        gap: 10px;
        align-items: start;
        padding: 8px 0;
        border-bottom: 1px solid var(--line-soft);
        white-space: normal !important;
    }
    .responsive-cards td:last-child { border-bottom: 0; }
    .responsive-cards td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: .05em;
        text-transform: uppercase;
    }
    .responsive-cards .tbl-empty { display: block; }
    .responsive-cards .tbl-empty::before { content: none; }
    .responsive-cards .mobile-actions form,
    .responsive-cards .mobile-actions .aksi-row { width: 100%; flex-wrap: wrap; }
    .responsive-cards .mobile-actions input[type="text"] { width: 100% !important; }
    .responsive-cards .tolak-row { padding: 0; border: 0; }
    .responsive-cards .tolak-row td { display: block; padding: 0; }
    .responsive-cards .tolak-row td::before { content: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .badge-menunggu .dot { animation: none; box-shadow: none; }
}

/* ── Kuota cuti tahunan & panel admin ── */
.quota-pill { display:inline-flex; align-items:center; flex-wrap:wrap; gap:6px; background:var(--gold-soft); color:#92400e; border:1px solid #ffd88a; padding:7px 14px; border-radius:999px; font-size:12.5px; font-weight:600; }
.quota-pill b { color:#7c2d12; }
.sisa-low { color:var(--red); font-weight:700; }
.num-input { width:76px; }
.admin-grid { display:grid; grid-template-columns:1fr 1.6fr; gap:18px; align-items:start; }
@media (max-width:860px){ .admin-grid { grid-template-columns:1fr; } }

/* ── Kelola User: pencarian & pengelompokan ── */
.user-search { width:100%; max-width:380px; padding:9px 14px; border:1px solid var(--line); border-radius:var(--r-sm); font-family:var(--font-body); font-size:13px; background:var(--surface); color:var(--ink); }
.user-search:focus { outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(255,161,10,.14); }
.group-head { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:16px 0 6px; }
.group-head .tag { font-size:11px; padding:4px 10px; border-radius:999px; }
.group-count { font-size:12px; color:var(--faint); }
.badge-admin { display:inline-block; margin-left:6px; padding:2px 8px; border-radius:999px; background:var(--gold-soft); color:var(--gold-deep); font-size:10px; font-weight:700; vertical-align:middle; }
.tag-none { background:var(--no-bg); color:var(--no-fg); }

/* ── Kelola User: form tambah user ── */
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > input, .input-icon > select { height: 44px; }
.input-icon > svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.input-icon > input, .input-icon > select { padding-left: 36px; }
.input-icon > select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; cursor: pointer; }
.input-icon > input + .btn { margin-left: 8px; }
.field-hint { font-size: 11.5px; color: var(--faint); margin-top: 5px; }
.info-strip { display: flex; align-items: center; gap: 9px; margin-top: 18px; padding: 11px 14px; border-radius: var(--r-sm); background: var(--gold-soft); border: 1px dashed #ffd88a; color: #92400e; font-size: 12.5px; }
.info-strip svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--gold-deep); }
.info-strip b { color: #7c2d12; }

/* ── Modul layanan (dashboard) ── */
.modul-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px; }
.modul-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); padding:16px 15px 14px; text-decoration:none; color:inherit; position:relative; overflow:hidden; transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.modul-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); border-color:var(--gold); }
.modul-card::after { content:''; position:absolute; inset:0 0 auto 0; height:3px; background:var(--mc, var(--gold)); }
.modul-icon { width:40px; height:40px; border-radius:11px; display:flex; align-items:center; justify-content:center; background:var(--mc-soft, var(--gold-soft)); color:var(--mc, var(--gold-deep)); }
.modul-icon svg { width:21px; height:21px; }
.modul-name { font-family:var(--font-display); font-weight:800; font-size:14.5px; margin-top:11px; }
.modul-desc { font-size:12px; color:var(--muted); margin-top:4px; line-height:1.5; }
.modul-meta { display:flex; align-items:center; justify-content:space-between; margin-top:10px; }
.modul-badge { font-size:10.5px; font-weight:700; padding:3px 9px; border-radius:999px; background:var(--ok-bg,#dcfce7); color:var(--ok-fg,#166534); }
.modul-arrow { color:var(--faint); font-size:12px; font-weight:700; transition:transform .15s ease, color .15s ease; }
.modul-card:hover .modul-arrow { transform:translateX(3px); color:var(--gold-deep); }

/* ── Komentar tiket (thread dua arah) ── */
.komentar { border:1px solid var(--line); border-radius:var(--r-sm); padding:11px 13px; margin-bottom:10px; }
.komentar-head { display:flex; align-items:center; gap:9px; margin-bottom:7px; }
.komentar-head b { font-size:13px; }
.komentar-pesan { font-size:13.5px; color:var(--ink); line-height:1.55; white-space:pre-wrap; }
.komentar-lain { background:var(--surface); }
.komentar-saya { background:var(--gold-soft); border-color:#ffe4ad; }
.avatar-sm { width:28px; height:28px; font-size:12px; flex-shrink:0; }

/* ── Badge status tiket ── */
.badge-open, .badge-in-progress { background:var(--wait-bg,#fef3c7); color:var(--wait-fg,#92400e); }
.badge-resolved { background:var(--ok-bg,#dcfce7); color:var(--ok-fg,#166534); }
.badge-closed { background:var(--no-bg,#fee2e2); color:var(--no-fg,#991b1b); }

/* ── e-Ticket: form pengajuan ── */
.tiket-form-sub { font-size:12.5px; color:var(--muted); margin:-6px 0 6px; }
.tiket-form-grid { display:grid; grid-template-columns: 1.5fr 1fr; gap: 0 18px; align-items:stretch; }
.field-label .opt { color: var(--faint); font-weight:500; }
.dropzone {
    display:flex; flex-direction:row; align-items:center; justify-content:center; gap:8px;
    border:1.5px dashed var(--line); border-radius:var(--r-sm);
    background:var(--paper); padding:10px 14px; cursor:pointer; min-height:42px;
    transition:border-color .15s ease, background .15s ease;
    text-align:center;
}
.dropzone:hover { border-color:var(--gold); background:var(--gold-soft); }
.dropzone svg { width:18px; height:18px; color:var(--faint); flex:none; }
.dz-main { font-size:13px; font-weight:600; color:var(--slate); }
.dz-hint { font-size:11px; color:var(--faint); }
.dz-input { display:none; }
.tiket-form-actions { display:flex; justify-content:flex-end; margin-top:16px; }

/* ── e-Ticket: filter status (panel IT) ── */
.filter-pills { display:flex; flex-wrap:wrap; gap:8px; }
.filter-pill {
    display:inline-flex; align-items:center; gap:7px;
    padding:7px 14px; border-radius:999px;
    border:1px solid var(--line); background:var(--surface);
    font-size:12.5px; font-weight:600; color:var(--slate);
    text-decoration:none; transition:all .15s ease;
}
.filter-pill:hover { border-color:var(--gold); color:var(--brand-800); background:var(--gold-soft); }
.filter-pill.active { background:var(--gold); border-color:var(--gold); color:var(--brand-950); }
.pill-count { font-size:10.5px; font-weight:700; padding:1px 7px; border-radius:999px; background:rgba(15,23,42,.08); }
.filter-pill.active .pill-count { background:rgba(11,29,61,.15); }

/* ── e-Ticket: jumlah di judul daftar ── */
.count-pill { margin-left:8px; padding:2px 10px; border-radius:999px; background:var(--gold-soft); color:var(--gold-deep); font-size:11.5px; font-weight:700; }

/* ── e-Ticket: info tiket (detail) ── */
.tiket-info { display:flex; flex-direction:column; gap:14px; font-size:13.5px; }
.ti-item { display:flex; flex-direction:column; gap:4px; }
.ti-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--faint); }
.ti-deskripsi { background:var(--paper); border:1px solid var(--line-soft); border-radius:var(--r-sm); padding:12px 14px; line-height:1.65; color:var(--ink); }
.ti-foto { max-width:100%; max-height:260px; border-radius:10px; border:1px solid var(--line); margin-top:4px; display:block; }

@media (max-width: 760px) {
    .tiket-form-grid { grid-template-columns: 1fr; }
    .dropzone { justify-content:flex-start; }
    .tiket-form-actions { justify-content: stretch; }
    .tiket-form-actions .btn { width: 100%; }
}

/* ── grid 2 kolom (dipakai banyak halaman) ── */
.grid-2 { display:grid; grid-template-columns:1fr 1.4fr; gap:16px; align-items:start; }
@media (max-width:860px){ .grid-2 { grid-template-columns:1fr; } }

/* ── Dashboard Widgets (Notes & To-Do) ── */
.dash-widgets-col .stat { padding:12px 14px; }
.dash-widgets-col .stat::after { display:none; }

/* Header row */
.stat-action-btn {
    width:20px; height:20px; display:inline-flex; align-items:center; justify-content:center;
    border-radius:5px; border:1px solid var(--line); background:var(--surface);
    color:var(--muted); font-size:13px; font-weight:700; cursor:pointer;
    margin-left:6px; vertical-align:middle; transition:all .12s; line-height:1;
}
.stat-action-btn:hover { background:var(--accent-soft); border-color:var(--accent); color:var(--accent); }
.stat-count {
    font-size:10px; font-weight:700; color:var(--accent);
    background:var(--accent-soft); padding:1px 7px; border-radius:999px; margin-left:6px;
}

.note-add-input {
    width:100%; padding:7px 10px; border:1px solid var(--line); border-radius:8px;
    font-size:12.5px; font-family:var(--font-body); color:var(--ink); background:var(--surface);
}
.note-add-input:focus { outline:none; border-color:var(--gold); box-shadow:0 0 0 2px rgba(255,161,10,.12); }
.note-add-input::placeholder { color:var(--faint); }
.stat-save-btn {
    padding:4px 12px; border-radius:6px; border:none;
    background:var(--ink); color:#fff; font-size:11.5px; font-weight:600;
    cursor:pointer; transition:background .12s;
}
.stat-save-btn:hover { background:var(--brand-800); }
.stat-cancel-btn {
    padding:4px 10px; border-radius:6px; border:1px solid var(--line);
    background:var(--surface); color:var(--muted); font-size:11.5px; cursor:pointer;
}
.stat-cancel-btn:hover { border-color:var(--red); color:var(--red); }

/* Empty state */
.stat-empty { font-size:12px; color:var(--faint); padding:4px 0; }

/* Notes list */
.stat-notes-list { display:flex; flex-direction:column; gap:1px; }
.stat-note-row { display:flex; align-items:center; gap:8px; padding:4px 0; }
.stat-note-dot { width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.stat-note-text { flex:1; font-size:12.5px; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stat-note-more { font-size:11px; color:var(--faint); padding:3px 0; }
.stat-del-btn {
    min-width:44px; min-height:44px;
    background:none; border:none; cursor:pointer; color:transparent; font-size:11px;
    padding:2px 4px; border-radius:4px; flex-shrink:0; transition:color .12s;
}
.stat-note-row:hover .stat-del-btn, .stat-todo-row:hover .stat-del-btn { color:var(--faint); }
.stat-del-btn:hover { color:var(--red) !important; background:var(--red-soft); }

/* To-Do */
.stat-form-row { display:flex; gap:6px; align-items:center; margin-bottom:6px; }
.stat-input {
    flex:1; padding:7px 10px; border:1px solid var(--line); border-radius:8px;
    font-size:12.5px; font-family:var(--font-body); color:var(--ink); background:var(--surface);
}
.stat-input:focus { outline:none; border-color:var(--gold); box-shadow:0 0 0 2px rgba(255,161,10,.12); }
.stat-input::placeholder { color:var(--faint); }
.stat-progress { margin:0 0 8px; }
.stat-progress-bar { height:3px; background:var(--line-soft); border-radius:999px; overflow:hidden; }
.stat-progress-fill { height:100%; background:var(--ok-dot); border-radius:999px; transition:width .35s ease; }
.stat-todo-list { display:flex; flex-direction:column; gap:1px; }
.stat-todo-row { display:flex; align-items:center; gap:8px; padding:4px 0; }
.stat-todo-check {
    width:16px; height:16px; border-radius:5px; border:1.5px solid var(--line);
    background:var(--surface); cursor:pointer; display:inline-flex; align-items:center;
    justify-content:center; flex-shrink:0; transition:all .15s;
}
.stat-todo-check:hover { border-color:var(--ok-dot); }
.stat-todo-check.checked { background:var(--ok-dot); border-color:var(--ok-dot); }
.stat-todo-text { flex:1; font-size:12.5px; color:var(--ink); }
.stat-todo--done .stat-todo-text { text-decoration:line-through; color:var(--faint); }

/* ── Tim Online Widget ── */
.dash-online-box { margin-top:18px; }
.online-list { display:flex; flex-direction:column; gap:0; }
.online-row {
    display:flex; align-items:center; gap:10px; padding:7px 0;
    border-bottom:1px solid var(--line-soft);
}
.online-row:last-child { border-bottom:none; }
.online-row.offline { opacity:.55; }
.dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.dot-green { background:#16a34a; box-shadow:0 0 0 3px rgba(22,163,74,.15); }
.dot-gray { background:var(--faint); }
.online-info { flex:1; min-width:0; }
.online-name { font-size:13px; font-weight:600; color:var(--ink); display:block; }
.online-meta { font-size:11.5px; color:var(--muted); display:block; }
.online-badge {
    font-size:11px; font-weight:600; padding:2px 8px; border-radius:999px; white-space:nowrap; flex-shrink:0;
}
.online-badge.on { background:#dcfce7; color:#15803d; }
.online-badge.off { background:var(--line-soft); color:var(--muted); }
.online-sep { height:1px; background:var(--line-soft); margin:4px 0; }

/* ══════════════════════════════════════════════════════════════
 *  UI/UX PRO MAX — Accessibility & Touch Improvements
 *  Source: ui-ux-pro-max skill (119 UX guidelines)
 * ══════════════════════════════════════════════════════════════ */

/* ── Touch: eliminas 300ms tap delay (WCAG 2.5.5) ── */
a, button, input, select, textarea, [role="button"], .nav-link, .modul-card, .btn {
    touch-action: manipulation;
}

/* ── Touch: min 44×44px target size (Apple HIG / Material) ── */
.nav-link { min-height: 44px; display: inline-flex; align-items: center; }
.btn-sm { min-height:44px; } /* small buttons remain touch-friendly */
.btn { min-height: 44px; }
.stat-todo-check { min-width: 44px; min-height: 44px; justify-content: center; }
.stat-action-btn { min-width: 44px; min-height: 44px; }
.online-row { min-height: 44px; }
.badge { min-height: 28px; } /* badges: display-only, not primary targets */

/* ── Cursor: pointer pada semua interactive elements ── */
a[href], .nav-link, .modul-card, .btn, button, [role="button"],
.stat-todo-check, .stat-action-btn, .online-row { cursor: pointer; }

/* ── Disabled state (MD: 0.38-0.5 opacity + cursor) ── */
.btn:disabled, .btn[disabled], button:disabled {
    opacity: 0.45; cursor: not-allowed; pointer-events: none;
}
input:disabled, select:disabled, textarea:disabled {
    opacity: 0.5; cursor: not-allowed; background: var(--line-soft);
}

/* ── Error state untuk form inputs ── */
input.error, select.error, textarea.error {
    border-color: var(--no-dot);
    box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}
.field-error {
    color: var(--no-fg); font-size: 12px; margin-top: 4px; font-weight: 500;
}
.field-error::before { content: "⚠ "; }

/* ── Required field indicator ── */
.req { color: var(--no-dot); font-weight: 700; }

/* ── Skip link (accessibility: keyboard users) ── */
.skip-link {
    position: absolute; left: -9999px; top: auto;
    background: var(--brand-900); color: #fff; padding: 10px 18px;
    font-weight: 700; z-index: 100; border-radius: var(--r-sm);
}
.skip-link:focus { left: 10px; top: 10px; }

/* ── Touch-friendly input height (≥44px on mobile) ── */
@media (max-width: 768px) {
    input[type="text"], input[type="password"], input[type="date"],
    input[type="number"], select, textarea {
        min-height: 44px; font-size: 16px; /* 16px prevents iOS auto-zoom */
    }
    .btn { min-height: 48px; font-size: 15px; padding: 12px 20px; }
    .btn-sm { min-height: 44px; font-size: 13px; }
}
