/* ==================================================================
   SDN AI CENTER — Design System
   PT Surya Digital Nusantara

   Palet & tipografi diturunkan dari logo SDN (pita biru mengalir +
   aksen emas). Signature element: "orbit" bercahaya di hero yang
   meniru gerakan pita pada logo, dengan node provider AI mengorbit
   di sekelilingnya.
   ================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Warna dasar (dari logo) */
    --ink: #080C1C;
    --ink-2: #0D1330;
    --surface: #121A3D;
    --surface-2: #172049;
    --blue-deep: #1547C9;
    --blue: #2E6FE0;
    --blue-light: #4FB6F0;
    --gold: #F2A93B;
    --gold-deep: #E08A15;

    --paper: #FFFFFF;
    --paper-2: #F3F5FB;
    --line: #E4E7F2;

    --text-dark: #131A2E;
    --text-muted: #5B6479;
    --text-on-dark: #E8EBFA;
    --text-on-dark-muted: #9AA3C7;

    --grad-brand: linear-gradient(120deg, var(--blue-light) 0%, var(--blue-deep) 55%, var(--gold) 100%);
    --grad-gold: linear-gradient(120deg, var(--gold) 0%, var(--gold-deep) 100%);
    --grad-blue: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-deep) 100%);

    --radius-s: 10px;
    --radius-m: 16px;
    --radius-l: 24px;

    --shadow-card: 0 8px 30px rgba(15, 23, 60, 0.08);
    --shadow-dark: 0 20px 60px rgba(3, 6, 20, 0.55);

    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}

p { line-height: 1.65; color: var(--text-muted); margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.mono { font-family: var(--font-mono); }

/* Fokus keyboard terlihat jelas untuk aksesibilitas */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--blue-light);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ------------------------------------------------------------
   Tombol
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--grad-gold);
    color: #241300;
    box-shadow: 0 10px 24px rgba(224, 138, 21, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(224, 138, 21, 0.45); }

.btn-outline {
    background: transparent;
    color: var(--text-on-dark);
    border: 1.5px solid rgba(232, 235, 250, 0.35);
}
.btn-outline:hover { border-color: rgba(232, 235, 250, 0.7); }

.btn-outline-dark {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--line);
}
.btn-outline-dark:hover { border-color: var(--blue); color: var(--blue-deep); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-danger-ghost {
    background: transparent;
    color: #C23B3B;
    border: 1.5px solid #F2CFCF;
}

/* ------------------------------------------------------------
   Navbar publik (marketing)
   ------------------------------------------------------------ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 12, 28, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(232, 235, 250, 0.08);
}
.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.brand span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-on-dark);
    letter-spacing: -0.02em;
}
.nav-links {
    display: flex;
    gap: 34px;
    align-items: center;
}
.nav-links a {
    color: var(--text-on-dark-muted);
    font-size: 14.5px;
    font-weight: 500;
    transition: color .15s ease;
}
.nav-links a:hover { color: var(--text-on-dark); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
    .site-nav .nav-links {
        display: none; position: absolute; top: 76px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0; background: var(--ink);
        padding: 6px 0 4px; box-shadow: 0 12px 24px rgba(0,0,0,.25); max-height: calc(100dvh - 76px); overflow-y: auto;
    }
    .site-nav .nav-links.open { display: flex; }
    .site-nav .nav-links a { padding: 13px 24px; }
    .nav-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        background: none; border: none; color: var(--text-on-dark);
        font-size: 24px; cursor: pointer; padding: 6px;
    }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
    position: relative;
    background: radial-gradient(120% 90% at 15% -10%, #14204d 0%, var(--ink) 55%), var(--ink);
    overflow: hidden;
    padding: 88px 0 120px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--gold);
    background: rgba(242, 169, 59, 0.12);
    border: 1px solid rgba(242, 169, 59, 0.3);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
}
.eyebrow::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(242, 169, 59, .18);
}
.hero h1 {
    font-size: clamp(34px, 4.6vw, 54px);
    color: var(--text-on-dark);
    margin-bottom: 20px;
}
.hero h1 .accent {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.lead {
    font-size: 17.5px;
    color: var(--text-on-dark-muted);
    max-width: 480px;
    margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px;}
.hero-note { font-size: 13.5px; color: var(--text-on-dark-muted); }

/* --- Signature: orbit bercahaya --- */
.orbit-wrap {
    position: relative;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.orbit-ring {
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(79,182,240,.5) 25%, transparent 50%, rgba(242,169,59,.55) 75%, transparent 100%);
    -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
            mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    animation: spin 16s linear infinite;
}
.orbit-ring.ring-2 {
    width: 380px; height: 380px;
    animation-duration: 26s;
    animation-direction: reverse;
    opacity: .6;
}
.orbit-core {
    position: relative;
    width: 158px; height: 158px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #6cc6f5 0%, var(--blue-deep) 48%, #0c2b7a 100%);
    box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 70px 10px rgba(46, 111, 224, .55);
    display: flex; align-items: center; justify-content: center;
    animation: pulse 4.5s ease-in-out infinite;
    z-index: 2;
}
.orbit-core span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    letter-spacing: .04em;
}
.orbit-node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(18, 26, 61, 0.85);
    border: 1px solid rgba(232,235,250,.14);
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-on-dark);
    box-shadow: var(--shadow-dark);
    animation: float 5s ease-in-out infinite;
    z-index: 3;
}
.orbit-node .dot { width: 8px; height: 8px; border-radius: 50%; }
.node-groq { top: 34px; left: 6px; }
.node-groq .dot { background: #F2A93B; }
.node-deepseek { bottom: 54px; right: 0; animation-delay: 1.6s; }
.node-deepseek .dot { background: #4FB6F0; }
.node-gemini {
    top: 50%; right: 24px; transform: translateY(-50%);
    animation-delay: .8s;
}
.node-gemini .dot { background: #8C6FF7; }

.preview-card {
    position: absolute;
    width: 200px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(232,235,250,.12);
    border-radius: var(--radius-m);
    padding: 14px 16px;
    backdrop-filter: blur(6px);
    animation: float 6s ease-in-out infinite;
}
.preview-card .pc-title { font-size: 12.5px; font-weight: 600; color: var(--text-on-dark); margin-bottom: 3px; }
.preview-card .pc-sub { font-size: 11.5px; color: var(--text-on-dark-muted); }
.preview-chat { top: -6px; right: 30px; animation-delay: .3s; }
.preview-audio { bottom: -10px; left: 6px; animation-delay: 1.2s; }
.preview-notes { top: 44%; left: -14px; transform: translateY(-50%); animation-delay: 2.1s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 70px 10px rgba(46,111,224,.5); }
    50% { transform: scale(1.045); box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 0 90px 18px rgba(46,111,224,.65); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .orbit-wrap { height: 340px; margin-top: 20px; }
    .preview-card { display: none; }
}

/* ------------------------------------------------------------
   Baris "terhubung dengan model AI"
   ------------------------------------------------------------ */
.connected-row {
    background: var(--ink-2);
    border-top: 1px solid rgba(232,235,250,.07);
    border-bottom: 1px solid rgba(232,235,250,.07);
    padding: 28px 0;
}
.connected-row .container { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.connected-label { font-size: 13px; color: var(--text-on-dark-muted); font-weight: 500; white-space: nowrap; }
.provider-chip {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 600; font-size: 15px;
    color: var(--text-on-dark);
    padding: 6px 4px;
}
.provider-chip.soon { opacity: .38; font-weight: 500; font-family: var(--font-body); font-size: 14px; }
.provider-chip .sq { width: 9px; height: 9px; border-radius: 3px; }

/* ------------------------------------------------------------
   Section umum (light)
   ------------------------------------------------------------ */
.section { padding: 96px 0; }
.section.alt { background: var(--paper-2); }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { color: var(--blue-deep); background: rgba(46,111,224,.08); border-color: rgba(46,111,224,.22); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); color: var(--text-dark); }
.section-head p { font-size: 16px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 28px 26px;
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(46,111,224,.35); box-shadow: 0 14px 34px rgba(15,23,60,.12); }
.card .icon {
    width: 46px; height: 46px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 21px;
    background: var(--grad-blue);
    color: #fff;
    margin-bottom: 18px;
}
.card.gold .icon { background: var(--grad-gold); color: #241300; }
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

.model-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.model-list li { font-size: 13px; color: var(--text-muted); padding-top: 8px; border-top: 1px dashed var(--line); }
.model-list li:first-child { padding-top: 0; border-top: none; }
.model-list strong { color: var(--text-dark); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------------
   Cara kerja (steps)
   ------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 4px; }
.step .num {
    font-family: var(--font-display); font-weight: 700; font-size: 15px;
    color: var(--blue-deep);
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(46,111,224,.09);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14.5px; }

/* ------------------------------------------------------------
   CTA banner
   ------------------------------------------------------------ */
.cta-banner {
    background: var(--grad-blue);
    border-radius: var(--radius-l);
    padding: 52px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.cta-banner::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(60% 140% at 90% 0%, rgba(242,169,59,.35), transparent 60%);
}
.cta-banner h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; position: relative; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 0; position: relative; }
.cta-banner .btn { position: relative; }

/* ------------------------------------------------------------
   Footer (publik)
   ------------------------------------------------------------ */
.site-footer { background: var(--ink); padding: 64px 0 28px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(232,235,250,.08);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--text-on-dark); font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.footer-grid a, .footer-grid p { color: var(--text-on-dark-muted); font-size: 14px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--text-on-dark); }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 24px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom span { color: var(--text-on-dark-muted); font-size: 13px; }

/* ==================================================================
   APLIKASI (setelah login): dashboard, chat, transkrip, admin
   Shell: sidebar kiri persisten di desktop, jadi drawer geser di
   mobile/tablet (topbar tipis + tombol hamburger). --app-topbar-h
   dipakai sebagai patokan tinggi topbar oleh halaman lain (mis. chat.php)
   supaya layout full-height tetap akurat di semua breakpoint.
   ================================================================== */
:root {
    --app-sidebar-w: 258px;
    --app-topbar-h: 0px;
}
.app-shell { min-height: 100vh; min-height: 100dvh; background: var(--paper-2); display: flex; }

.app-sidebar {
    width: var(--app-sidebar-w); flex-shrink: 0;
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; height: 100vh; height: 100dvh;
    z-index: 60; transition: transform .25s ease;
}
.app-sidebar-brand {
    display: flex; align-items: center; gap: 10px; padding: 22px 22px 16px; flex-shrink: 0;
}
.app-sidebar-brand img { height: 28px; }
.app-sidebar-brand span { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 15.5px; }

.app-sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.app-sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10.5px 13px; border-radius: var(--radius-s);
    color: var(--text-on-dark-muted); font-size: 14px; font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.app-sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; }
.app-sidebar-link:hover { background: rgba(255,255,255,.06); color: var(--text-on-dark); }
.app-sidebar-link.active { background: rgba(46,111,224,.22); color: #fff; font-weight: 600; }
.app-sidebar-link.active svg { opacity: 1; color: var(--blue-light); }
.app-sidebar-section-label {
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
    color: rgba(232,235,250,.35); padding: 16px 13px 6px;
}
.app-sidebar-back { border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 4px; padding-bottom: 14px; }

.app-sidebar-footer {
    padding: 14px; border-top: 1px solid rgba(255,255,255,.08); flex-shrink: 0;
    display: flex; align-items: center; gap: 10px;
}
.app-sidebar-footer .avatar { width: 36px; height: 36px; flex-shrink: 0; }
.app-sidebar-user-info { flex: 1; min-width: 0; }
.app-sidebar-user-info .name {
    font-size: 13px; font-weight: 600; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-sidebar-user-info .balance { font-size: 12px; color: var(--gold); font-family: var(--font-mono); }
.app-sidebar-logout {
    color: var(--text-on-dark-muted); padding: 7px; border-radius: 8px; display: flex; flex-shrink: 0;
}
.app-sidebar-logout svg { width: 18px; height: 18px; }
.app-sidebar-logout:hover { color: #fff; background: rgba(255,255,255,.08); }

.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--grad-blue);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13.5px; font-family: var(--font-display);
}

.app-sidebar-overlay { display: none; }

.app-content { flex: 1; min-width: 0; margin-left: var(--app-sidebar-w); display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.app-topbar { display: none; }
.app-topbar-toggle { background: none; border: none; color: #fff; cursor: pointer; padding: 6px; display: flex; }
.app-topbar-toggle svg { width: 22px; height: 22px; }
.app-topbar-brand { display: flex; align-items: center; gap: 8px; }
.app-topbar-brand img { height: 24px; }
.app-topbar-brand span { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; }

@media (max-width: 959px) {
    :root { --app-topbar-h: 56px; }
    .app-sidebar { transform: translateX(-100%); width: min(280px, 84vw); box-shadow: var(--shadow-dark); }
    .app-sidebar.open { transform: translateX(0); }
    .app-sidebar-overlay {
        display: block; position: fixed; inset: 0; background: rgba(8,12,28,.5);
        z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s ease;
    }
    .app-sidebar-overlay.open { opacity: 1; pointer-events: auto; }
    .app-content { margin-left: 0; }
    .app-topbar {
        display: flex; align-items: center; gap: 14px;
        height: var(--app-topbar-h); padding: 0 14px; flex-shrink: 0;
        background: var(--ink); position: sticky; top: 0; z-index: 40;
    }
}
/* Orientasi landscape di HP/tablet: tinggi viewport terbatas -- pastikan
   sidebar/drawer tetap bisa discroll penuh, bukan terpotong. */
@media (max-width: 959px) and (orientation: landscape) {
    .app-sidebar { width: min(300px, 60vw); }
}

.app-main { padding: 40px 0 80px; }
.app-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 14px;}
.app-header-row h1 { font-size: 25px; margin: 0; }
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .app-main { padding: 20px 0 40px; }
    .app-header-row { margin-bottom: 18px; }
    .app-header-row h1 { font-size: 20px; }
}
.app-header-row p.sub { margin: 4px 0 0; font-size: 14.5px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
@media (max-width: 780px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m);
    padding: 22px 24px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: rgba(46,111,224,.25); }
.stat-card .stat-icon {
    width: 38px; height: 38px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; background: var(--grad-blue); color: #fff;
}
.stat-card .stat-icon svg { width: 19px; height: 19px; }
.stat-card .stat-icon.gold { background: var(--grad-gold); color: #241300; }
.stat-card .stat-icon.red { background: linear-gradient(135deg,#F5A3A3,#B23B3B); color: #fff; }
.stat-card .label { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }
.stat-card .value { font-family: var(--font-mono); font-size: 26px; font-weight: 500; color: var(--text-dark); }
.stat-card .value.gold { color: var(--gold-deep); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px; margin-bottom: 24px; }
.panel h2 { font-size: 18px; margin-bottom: 4px; }
.panel .panel-sub { font-size: 13.5px; color: var(--text-muted); margin-bottom: 20px; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-dark); margin-bottom: 7px; }
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-s);
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--text-dark);
    background: var(--paper);
    transition: border-color .15s ease;
}
.form-control:focus { border-color: var(--blue); outline: none; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.form-error {
    background: #FDECEC; color: #B23B3B; border: 1px solid #F5CFCF;
    padding: 12px 16px; border-radius: var(--radius-s); font-size: 14px; margin-bottom: 18px;
}
.form-success {
    background: #EAF6EE; color: #1E7A3E; border: 1px solid #C7E9D2;
    padding: 12px 16px; border-radius: var(--radius-s); font-size: 14px; margin-bottom: 18px;
}
.auth-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--ink);
    padding: 24px;
}
.auth-card {
    width: 100%; max-width: 400px;
    background: var(--paper);
    border-radius: var(--radius-l);
    padding: 40px 36px;
    box-shadow: var(--shadow-dark);
}
.auth-card .brand { justify-content: center; margin-bottom: 26px; }
.auth-card .brand span { color: var(--text-dark); }
.auth-card h1 { font-size: 21px; text-align: center; margin-bottom: 6px; }
.auth-card p.sub { text-align: center; font-size: 14px; margin-bottom: 26px; }
.auth-foot { text-align: center; font-size: 14px; margin-top: 20px; color: var(--text-muted); }
.auth-foot a { color: var(--blue-deep); font-weight: 600; }

/* Tabel (admin) */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
    text-align: left; padding: 12px 14px; font-size: 12.5px; text-transform: uppercase;
    letter-spacing: .03em; color: var(--text-muted); border-bottom: 1.5px solid var(--line); white-space: nowrap;
}
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.badge-green { background: #EAF6EE; color: #1E7A3E; }
.badge-amber { background: #FEF3E1; color: #A6650C; }
.badge-red { background: #FDECEC; color: #B23B3B; }
.badge-gray { background: #EEF0F6; color: var(--text-muted); }

/* Ajakan lembut lengkapi profil (nomor WhatsApp) -- BUKAN error/blocker,
   dismissible, dipakai di app-shell-start.ejs. Nada amber (sama seperti
   .badge-amber) supaya beda dari .form-error (merah, dipakai utk kegagalan
   sungguhan). */
.profile-nudge {
    display: flex; align-items: center; gap: 12px; justify-content: space-between;
    background: #FEF3E1; color: #7A5109; border: 1px solid #F3DFAF;
    padding: 11px 16px; border-radius: var(--radius-s); font-size: 13.5px; margin-bottom: 18px;
}
.profile-nudge a { color: #7A5109; font-weight: 600; text-decoration: underline; }
.profile-nudge button {
    background: none; border: none; color: inherit; opacity: .6; cursor: pointer;
    font-size: 18px; line-height: 1; padding: 0 2px;
}
.profile-nudge button:hover { opacity: 1; }

/* ------------------------------------------------------------
   Log Proses (halaman detail transkrip)
   ------------------------------------------------------------ */
.log-timeline { display: flex; flex-direction: column; gap: 12px; }
.log-entry { padding: 10px 12px; border-left: 2px solid var(--line); background: var(--bg-soft, #F7F8FB); border-radius: 0 8px 8px 0; }
.log-entry-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------
   Chat
   ------------------------------------------------------------ */
.chat-layout {
    display: grid; grid-template-columns: 270px 1fr; gap: 22px;
    height: calc(100vh - var(--app-topbar-h) - 120px); height: calc(100dvh - var(--app-topbar-h) - 120px);
    min-height: 420px; position: relative;
}
.chat-sidebar-backdrop { display: none; }
.chat-sidebar-toggle { display: none; }

.chat-sidebar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; overflow-y: auto; }
.chat-sidebar .session-item {
    display: block; padding: 11px 12px; border-radius: var(--radius-s);
    font-size: 13.5px; color: var(--text-dark); margin-bottom: 4px; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-sidebar .session-item:hover { background: var(--paper-2); }
.chat-sidebar .session-item.active { background: rgba(46,111,224,.09); color: var(--blue-deep); font-weight: 600; }

.chat-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.chat-topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.chat-model-select { min-width: 220px; max-width: 320px; }
.chat-model-desc {
    margin: 0 20px 12px;
    padding: 7px 12px;
    background: rgba(46,111,224,.07);
    border: 1px solid rgba(46,111,224,.15);
    border-radius: var(--radius-s);
    color: var(--blue-deep);
    font-size: 12.5px;
    line-height: 1.5;
}
.chat-messages { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 24px; display: flex; flex-direction: column; gap: 16px; min-height: 0; }

.msg { max-width: 78%; padding: 12px 16px; border-radius: 17px; font-size: 14.5px; line-height: 1.65; box-shadow: 0 1px 2px rgba(20,25,40,.04); }
.msg.user { align-self: flex-end; background: var(--grad-blue); color: #fff; border-bottom-right-radius: 5px; }
.msg.assistant { align-self: flex-start; background: var(--paper-2); color: var(--text-dark); border: 1px solid var(--line); border-bottom-left-radius: 5px; box-shadow: none; }
.msg.system-note { align-self: center; font-size: 12.5px; color: var(--text-muted); background: none; box-shadow: none; max-width: 92%; text-align: center; }
.msg-text { white-space: pre-wrap; }
.msg-text > *:first-child { margin-top: 0; }
.msg-text > *:last-child { margin-bottom: 0; }
.msg-text p { margin: 0 0 10px; color: inherit; line-height: inherit; }
.msg-text ul, .msg-text ol { margin: 0 0 10px; padding-left: 20px; }
.msg-text li { margin-bottom: 4px; }
.msg-text h3, .msg-text h4, .msg-text h5, .msg-text h6 { margin: 12px 0 6px; font-size: 1em; font-weight: 700; }
.msg-text code { font-family: var(--font-mono); background: rgba(0,0,0,.08); padding: 2px 6px; border-radius: 5px; font-size: .92em; }
.msg.user .msg-text code { background: rgba(255,255,255,.2); }
.msg-text .code-block { position: relative; margin: 0 0 10px; }
.msg-text .code-block pre { background: #1E2430; color: #E8EBF2; padding: 14px; padding-top: 34px; border-radius: 10px; overflow-x: auto; margin: 0; }
.msg-text .code-block pre code { background: none; padding: 0; color: inherit; font-size: 13.5px; }
.msg-text .code-copy-btn {
    position: absolute; top: 8px; right: 8px;
    background: rgba(255,255,255,.1); color: #C9D1E0; border: 1px solid rgba(255,255,255,.16);
    font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 6px; cursor: pointer;
    font-family: var(--font-sans, inherit);
}
.msg-text .code-copy-btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.msg-attachment-chip {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
    background: rgba(0,0,0,.08); border-radius: 999px; padding: 4px 11px; margin-bottom: 7px;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msg.user .msg-attachment-chip { background: rgba(255,255,255,.22); }

.msg-report-btn {
    display: block; margin-top: 8px; background: none; border: none; cursor: pointer;
    font-size: 11.5px; color: var(--text-muted); opacity: .55; padding: 2px 0;
}
.msg-report-btn:hover { opacity: 1; color: #B23B3B; }
.msg-report-btn:disabled { cursor: default; opacity: .4; }

.chat-empty { margin: auto; text-align: center; color: var(--text-muted); max-width: 320px; }
.chat-attachment-preview {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 16px; background: var(--paper-2); border-top: 1px solid var(--line);
    font-size: 13px; font-weight: 600; color: var(--text-dark);
}
.chat-attachment-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-attachment-preview button {
    background: none; border: none; color: var(--text-muted); font-size: 20px; line-height: 1;
    cursor: pointer; padding: 0 4px; flex-shrink: 0;
}
.chat-input-row { display: flex; align-items: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.chat-input-row textarea { flex: 1; resize: none; }
.btn-icon-round {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line);
    background: var(--paper); color: var(--text-muted); cursor: pointer;
}
.btn-icon-round:hover { background: var(--paper-2); color: var(--text-dark); }
.typing-dots span {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--text-muted); margin-right: 4px; animation: blink 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

@media (max-width: 900px) {
    .chat-layout { grid-template-columns: 1fr; height: calc(100vh - var(--app-topbar-h) - 60px); height: calc(100dvh - var(--app-topbar-h) - 60px); }
    .chat-sidebar-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line);
        background: var(--paper); color: var(--text-dark); cursor: pointer;
    }
    .chat-sidebar {
        position: fixed; top: 0; bottom: 0; left: 0; width: min(84vw, 300px);
        border-radius: 0; z-index: 55; transform: translateX(-100%);
        transition: transform .25s ease; box-shadow: 10px 0 30px rgba(15,20,30,.18);
    }
    .chat-layout.sidebar-open .chat-sidebar { transform: translateX(0); }
    .chat-sidebar-backdrop {
        display: block; position: fixed; inset: 0; background: rgba(15,20,30,.42);
        z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s ease;
    }
    .chat-layout.sidebar-open .chat-sidebar-backdrop { opacity: 1; pointer-events: auto; }
}
@media (max-width: 600px) {
    .chat-layout { height: calc(100vh - var(--app-topbar-h) - 44px); height: calc(100dvh - var(--app-topbar-h) - 44px); }
    .chat-topbar { padding: 10px 14px; }
    .chat-model-select { min-width: 0; max-width: none; flex: 1; }
    .chat-model-desc { margin: 0 14px 10px; }
    .chat-messages { padding: 16px; gap: 12px; }
    .chat-input-row { padding: 10px 12px; }
    .chat-attachment-preview { padding: 8px 12px; }
    .msg { max-width: 88%; font-size: 14px; padding: 11px 14px; }
}

/* ------------------------------------------------------------
   Transkrip Audio
   ------------------------------------------------------------ */
.dropzone {
    border: 2px dashed var(--line);
    border-radius: var(--radius-m);
    padding: 46px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: rgba(46,111,224,.04); }
.dropzone .dz-icon { font-size: 32px; margin-bottom: 12px; }
.dropzone p { margin: 0; }
.file-chip {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--paper-2); border-radius: var(--radius-s); padding: 12px 16px; margin-top: 14px;
    font-size: 14px;
}
.progress-bar { height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin-top: 14px; }
.progress-bar .fill { height: 100%; background: var(--grad-blue); width: 0%; transition: width .3s ease; }
.transcript-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.transcript-tabs button {
    padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line);
    background: var(--paper); font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--text-muted);
}
.transcript-tabs button.active { background: var(--text-dark); color: #fff; border-color: var(--text-dark); }
.transcript-box {
    background: var(--paper-2); border-radius: var(--radius-m); padding: 22px 24px;
    font-size: 14.5px; line-height: 1.75; white-space: pre-wrap; max-height: 480px; overflow-y: auto;
}
.transcript-box p { margin: 0 0 12px; }
.transcript-box p:last-child { margin-bottom: 0; }
.transcript-box ul { margin: 0 0 12px; padding-left: 22px; }
.transcript-box ul:last-child { margin-bottom: 0; }
.transcript-box li { margin-bottom: 6px; }
.btn-copy-whatsapp {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1.5px solid #25D366; color: #128C4A;
    font-weight: 600; font-size: 13.5px; padding: 9px 16px; border-radius: 999px;
    cursor: pointer; margin: 14px 0 18px;
}
.btn-copy-whatsapp:hover { background: #EFFBF3; }
.history-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 14px; }
.history-item:last-child { border-bottom: none; }
.history-item .fname { font-weight: 600; font-size: 14px; }
.history-item .fmeta { font-size: 12.5px; color: var(--text-muted); }

/* Util */
.text-center { text-align: center; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.items-center { align-items: center; }
.mt-0 { margin-top: 0; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }

/* ==================================================================
   NOTES/CATATAN
   ================================================================== */
.notes-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.notes-tabs { display: flex; gap: 8px; }
.notes-tabs button {
    background: none; border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 18px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); cursor: pointer;
}
.notes-tabs button.active { background: var(--text-dark); color: #fff; border-color: var(--text-dark); }
.notes-search { flex: 1; min-width: 180px; max-width: 320px; }

.note-composer {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m);
    padding: 16px 20px; box-shadow: var(--shadow-card); margin-bottom: 26px;
    cursor: pointer; color: var(--text-muted); font-size: 14.5px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.note-composer:hover { border-color: rgba(46,111,224,.35); }
.note-composer a { color: var(--blue-deep); font-weight: 600; flex-shrink: 0; white-space: nowrap; }
.note-composer a:hover { text-decoration: underline; }

.notes-grid { column-count: 4; column-gap: 20px; }
.notes-grid .note-card { break-inside: avoid; margin-bottom: 20px; }
@media (max-width: 980px) { .notes-grid { column-count: 3; } }
@media (max-width: 780px) { .notes-grid { column-count: 2; } }
@media (max-width: 560px) { .notes-grid { column-count: 1; } }

.note-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m);
    padding: 18px 20px; box-shadow: var(--shadow-card); cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    display: block;
}
.note-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,23,60,.12); }
.note-card--yellow { background: #FFF8E1; }
.note-card--green { background: #E6F6EA; }
.note-card--blue { background: #E9F1FE; }
.note-card--pink { background: #FDECF1; }
.note-card .note-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.note-card h4 { font-size: 15px; margin: 0; word-break: break-word; }
.note-card .pin-icon { color: var(--gold-deep); font-size: 15px; flex-shrink: 0; }
.note-card .note-card-body { font-size: 13.5px; color: var(--text-dark); white-space: pre-wrap; word-break: break-word; max-height: 160px; overflow: hidden; margin-bottom: 10px; }
.note-card .note-card-checklist-preview { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.note-card .note-card-checklist-preview .done { text-decoration: line-through; opacity: .6; }
.note-card .note-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--text-muted); }
.note-card .note-card-meta { display: flex; align-items: center; gap: 10px; }

.collab-avatar-stack { display: flex; }
.collab-avatar-stack .mini-avatar {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--grad-blue); color: #fff; font-size: 10.5px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--paper); margin-left: -8px; font-family: var(--font-display);
}
.collab-avatar-stack .mini-avatar:first-child { margin-left: 0; }

/* Komponen modal generik (dipakai pertama kali oleh Notes, reusable) */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(8,12,28,.55);
    display: flex; align-items: center; justify-content: center;
    padding: 24px; z-index: 100;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
    background: var(--paper); border-radius: var(--radius-m); box-shadow: var(--shadow-dark);
    width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto; padding: 26px 28px;
}
.modal-box-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.modal-close { background: none; border: none; font-size: 22px; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 4px; }
.modal-close:hover { color: var(--text-dark); }

.note-editor-title {
    width: 100%; border: none; outline: none; font-family: var(--font-display); font-weight: 600;
    font-size: 22px; background: transparent;
}
.note-color-row { display: flex; gap: 8px; margin: 14px 0; }
.color-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; }
.color-swatch.active { border-color: var(--text-dark); }
.color-swatch[data-color="default"] { background: var(--paper); }
.color-swatch[data-color="yellow"] { background: #FFF8E1; }
.color-swatch[data-color="green"] { background: #E6F6EA; }
.color-swatch[data-color="blue"] { background: #E9F1FE; }
.color-swatch[data-color="pink"] { background: #FDECF1; }

.note-checklist-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.note-checklist-item input[type="checkbox"] { width: 17px; height: 17px; flex-shrink: 0; }
.note-checklist-item input[type="text"] { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; }
.note-checklist-item.checked input[type="text"] { text-decoration: line-through; color: var(--text-muted); }
.note-checklist-item .item-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; padding: 2px 6px; }
.note-checklist-item .item-remove:hover { color: #B23B3B; }
.note-checklist-add { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--text-muted); }
.note-checklist-add input[type="text"] { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; }

.note-attachment-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.note-attachment-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.note-attachment-item .att-name { flex: 1; word-break: break-word; }
.note-attachment-item audio { max-width: 180px; height: 32px; }

.note-collab-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.note-collab-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.note-collab-row .remove-collab { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 13px; }
.note-collab-row .remove-collab:hover { color: #B23B3B; }

.note-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text-dark); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 13.5px; z-index: 200; }
.empty-state .icon { font-size: 34px; margin-bottom: 12px; }

/* ------------------------------------------------------------
   Editor Catatan full-screen (KHUSUS #note-modal -- dialog lain
   seperti #forward-transcribe-modal tetap pakai .modal-box biasa
   yang kecil/di-tengah, tidak terpengaruh aturan di bawah ini).
   ------------------------------------------------------------ */
#note-modal.modal-overlay { align-items: stretch; justify-content: stretch; padding: 0; }
#note-modal .note-editor-box {
    width: 100%; height: 100dvh; max-width: none; max-height: none;
    border-radius: 0; padding: 0; overflow: hidden;
    display: flex; flex-direction: column;
}
.note-editor-header {
    flex-shrink: 0; position: sticky; top: 0; z-index: 2;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px 28px 0;
}
.note-editor-topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.note-editor-scroll { flex: 1; overflow-y: auto; padding: 20px 28px 28px; max-width: 900px; width: 100%; margin: 0 auto; }
.note-editor-actions {
    flex-shrink: 0; position: sticky; bottom: 0; background: var(--paper);
    display: flex; align-items: center; justify-content: flex-start; gap: 6px;
    padding: 12px 28px; border-top: 1px solid var(--line); margin: 0;
}
.note-editor-actions .left-actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 600px) {
    .note-editor-header { padding: 10px 16px 0; }
    .note-editor-scroll { padding: 16px 16px 24px; }
    .note-editor-actions { padding: 10px 16px; }
}

/* Tema Quill (assets/vendor/quill/quill.snow.css) diselaraskan dengan token desain di atas */
.ql-toolbar.ql-snow {
    border: none; border-bottom: 1px solid var(--line); padding: 8px 0; font-family: var(--font-body);
}
.ql-container.ql-snow { border: none; font-family: var(--font-body); font-size: 15px; }
.ql-editor { padding: 14px 0; min-height: 200px; line-height: 1.7; }
/* Override aturan tipografi global "p { color: var(--text-muted) }" (dipakai
   halaman publik/marketing) supaya tidak bocor ke isi editor Notes. */
.ql-editor p { color: inherit; margin-bottom: 0.6em; line-height: inherit; }
.ql-editor.ql-blank::before { color: var(--text-muted); font-style: normal; left: 0; }
.ql-snow .ql-picker { color: var(--text-dark); }
.ql-snow.ql-toolbar button, .ql-snow .ql-toolbar button { border-radius: var(--radius-s); }
.ql-snow.ql-toolbar button:hover, .ql-snow .ql-toolbar button:hover,
.ql-snow.ql-toolbar .ql-picker-label:hover { color: var(--blue-deep); }
.ql-snow.ql-toolbar button:hover .ql-stroke, .ql-snow .ql-toolbar button:hover .ql-stroke { stroke: var(--blue-deep); }
.ql-snow.ql-toolbar button:hover .ql-fill, .ql-snow .ql-toolbar button:hover .ql-fill { fill: var(--blue-deep); }

/* Pilihan font di toolbar Quill -- daftar pendek (bukan puluhan), diambil dari
   font yang sudah dipakai identitas SDN AI Center + beberapa font umum. */
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="spacegrotesk"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="spacegrotesk"]::before { content: 'Space Grotesk'; font-family: var(--font-display); }
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="serif"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="serif"]::before { content: 'Serif'; font-family: Georgia, 'Times New Roman', serif; }
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="monospace"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before { content: 'Monospace'; font-family: var(--font-mono); }
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="arial"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="arial"]::before { content: 'Arial'; font-family: Arial, Helvetica, sans-serif; }
.ql-font-spacegrotesk { font-family: var(--font-display); }
.ql-font-serif { font-family: Georgia, 'Times New Roman', serif; }
.ql-font-monospace { font-family: var(--font-mono); }
.ql-font-arial { font-family: Arial, Helvetica, sans-serif; }

/* ------------------------------------------------------------
   Ekstrak Data Presensi (nama+nomor HP dari foto, di lampiran gambar)
   ------------------------------------------------------------ */
.note-attendance-panel { margin-top: 10px; padding: 12px 14px; background: var(--paper-2); border-radius: var(--radius-s); }
.note-attendance-template {
    width: 100%; border: 1px solid var(--line); border-radius: var(--radius-s);
    padding: 8px 10px; font-size: 13px; font-family: var(--font-body); resize: vertical;
    min-height: 44px; margin-bottom: 10px; background: var(--paper);
}
.note-attendance-hint { font-size: 11.5px; color: var(--text-muted); margin: -6px 0 10px; }
.note-attendance-entry { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.note-attendance-entry input[type="text"] {
    border: 1px solid transparent; border-radius: 6px; padding: 5px 7px; font-size: 13px;
    background: var(--paper); min-width: 0;
}
.note-attendance-entry input[type="text"]:focus { border-color: var(--line); outline: none; }
.note-attendance-entry .att-name { flex: 1.3; }
.note-attendance-entry .att-phone { flex: 1; }
.note-attendance-entry .wa-btn {
    display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
    background: #25D366; color: #fff; border: none; border-radius: 999px;
    padding: 6px 12px; font-size: 12.5px; font-weight: 600; text-decoration: none;
}
.note-attendance-entry .wa-btn:hover { background: #1EBE5A; }
.note-attendance-entry .wa-btn.disabled { background: var(--line); color: var(--text-muted); pointer-events: none; }
.note-attendance-entry .item-remove { flex-shrink: 0; }

/* ==================================================================
   LAPORAN PEMAKAIAN (laporan.php)
   Grafik sengaja dibuat murni CSS/HTML — tanpa pustaka chart eksternal,
   sepola dengan keputusan self-hosting di proyek ini.
   ================================================================== */

.lap-filter { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.lap-preset { display: flex; flex-wrap: wrap; gap: 8px; }
.lap-custom { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lap-custom label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.lap-custom .form-control { width: auto; padding: 8px 10px; font-size: 13.5px; }

/* --- rincian per fitur --- */
.lap-fitur-list { display: flex; flex-direction: column; gap: 18px; }
.lap-fitur-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; }
.lap-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.lap-fitur-count { color: var(--text-muted); font-size: 13px; }
.lap-fitur-total { margin-left: auto; font-weight: 500; }
.lap-fitur-persen { color: var(--text-muted); font-size: 13px; min-width: 52px; text-align: right; }
.lap-bar { height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.lap-bar-fill { height: 100%; border-radius: 999px; transition: width .4s ease; }

/* --- grafik tren --- */
.lap-chart-wrap { overflow-x: auto; padding-bottom: 4px; }
.lap-chart {
    display: grid;
    grid-template-columns: repeat(var(--kolom), minmax(22px, 1fr));
    gap: 4px;
    align-items: end;
    height: 220px;
    min-width: 100%;
}
.lap-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.lap-col-bar {
    width: 100%;
    min-height: 2px;
    background: var(--grad-blue);
    border-radius: 4px 4px 0 0;
    transition: opacity .2s ease;
}
.lap-col:hover .lap-col-bar { opacity: .75; }
.lap-col-label {
    font-size: 10.5px; color: var(--text-muted); white-space: nowrap;
    transform: rotate(-45deg); transform-origin: center; height: 26px; line-height: 26px;
}

/* --- tabel & paginasi --- */
.lap-plus  { color: #1E7A3E; }
.lap-minus { color: var(--text-dark); }
.lap-kosong { color: var(--text-muted); }
.lap-paginasi { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.lap-hal-info { font-size: 13px; color: var(--text-muted); }

@media (max-width: 640px) {
    .lap-filter { flex-direction: column; align-items: stretch; }
    .lap-custom { justify-content: space-between; }
    .lap-fitur-total { margin-left: 0; }
    .lap-chart { height: 170px; }
    .lap-col-label { font-size: 9px; }
}

/* ===== Notulensi terstruktur (transcript_detail.php) ===== */
.notulen-doc { font-size: 14px; line-height: 1.65; }
.notulen-doc h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--blue-deep); margin: 20px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--border, #e6e8ef); }
.notulen-doc h4:first-child { margin-top: 4px; }
.notulen-doc .notulen-head h3 { margin: 0 0 2px; font-size: 17px; }
.notulen-doc ol.notulen-list, .notulen-doc ul.notulen-list { margin: 4px 0 10px; padding-left: 22px; }
.notulen-doc .notulen-list li { margin: 3px 0; }
.notulen-doc .notulen-item { border-left: 3px solid var(--blue-light, #7db4f0); background: rgba(46,111,224,.03); padding: 8px 12px; border-radius: 0 8px 8px 0; margin: 10px 0; }
.notulen-doc .notulen-item-h { font-size: 14px; }
.notulen-doc .notulen-sub { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-top: 6px; }
.notulen-doc .notulen-item ul.notulen-list { margin-top: 2px; }
.notulen-export .btn-sm { padding: 6px 12px; font-size: 12.5px; }
@media (max-width: 640px) { .notulen-export { width: 100%; } }
