/* Tema panel XII TKJ 3 (Filament). Tanpa build: dimuat lewat render hook HEAD_END.
   CSS ini tidak berada di dalam @layer, jadi otomatis menang atas gaya bawaan Filament. */
:root {
    --px-blue: #0369a1;
    --px-blue-2: #0284c7;
    --px-sky: #e0f2fe;
    --px-sky-2: #f0f9ff;
    --px-ink: #0f172a;
    --px-mut: #64748b;
    --px-soft: #94a3b8;
    --px-line: #e2e8f0;
    --px-bg: #f4f8fc;
    --px-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
    --px-radius: 18px;
}

html, body, .fi-body, .fi-body * { font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; }
.fi-body { background: var(--px-bg); color: var(--px-ink); -webkit-font-smoothing: antialiased; }

/* ---------- Sidebar ---------- */
.fi-sidebar, .fi-sidebar-nav { background: #fff; }
.fi-sidebar { border-right: 1px solid var(--px-line); box-shadow: none; }
.fi-sidebar-header { background: #fff; box-shadow: none; border-bottom: 0; height: auto; min-height: 76px; padding: 14px 20px; }
.fi-sidebar-nav { padding: 6px 14px 20px; }

.px-brand { display: inline-flex; align-items: center; gap: 12px; height: 100%; text-decoration: none; }
.px-brand img { height: 100%; width: auto; max-height: 44px; object-fit: contain; }
.px-brand span { font-size: 20px; font-weight: 800; letter-spacing: -0.2px; color: var(--px-blue); white-space: nowrap; }

.fi-sidebar-group-label { font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--px-soft); }
.fi-sidebar-group-btn { padding: 6px 12px; }

[class*="fi-sidebar-item-btn"], [class*="fi-sidebar-item-button"] {
    border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--px-mut); gap: 12px;
    transition: background 0.15s, color 0.15s;
}
[class*="fi-sidebar-item-btn"]:hover, [class*="fi-sidebar-item-button"]:hover { background: var(--px-sky-2); color: var(--px-blue); }
[class*="fi-sidebar-item-btn"] svg, [class*="fi-sidebar-item-button"] svg { color: currentColor; }

.fi-sidebar-item.fi-active > [class*="fi-sidebar-item-btn"],
.fi-sidebar-item.fi-active > [class*="fi-sidebar-item-button"],
.fi-sidebar-item-active > [class*="fi-sidebar-item-button"] {
    background: var(--px-sky); color: var(--px-blue); font-weight: 700;
}
.fi-sidebar-item.fi-active > [class*="fi-sidebar-item-btn"] *,
.fi-sidebar-item.fi-active > [class*="fi-sidebar-item-button"] * { color: var(--px-blue); }

/* ---------- Topbar & isi ---------- */
.fi-topbar { background: transparent; }
.fi-topbar > nav, .fi-topbar nav { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); box-shadow: none; border-bottom: 1px solid var(--px-line); }
.fi-main-ctn { background: var(--px-bg); }
.fi-main { padding-inline: 16px; padding-block: 20px; }
@media (min-width: 1024px) { .fi-main { padding-inline: 32px; padding-block: 28px; } }
.fi-header-heading { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; color: var(--px-ink); }

/* ---------- Kartu, tabel, form ---------- */
.fi-section, .fi-ta-ctn, .fi-wi-widget, .fi-in-section {
    border-radius: var(--px-radius); border: 1px solid var(--px-line); background: #fff; box-shadow: var(--px-shadow); --tw-ring-shadow: 0 0 #0000;
}
.fi-ta-ctn { overflow: hidden; }
.fi-ta-header-cell, .fi-ta thead th { background: #f8fafc; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; color: var(--px-mut); text-transform: uppercase; }
.fi-ta-row:hover { background: var(--px-sky-2); }
.fi-ta-cell, .fi-ta-text { font-size: 13px; }
.fi-ta-group-header, .fi-ta-header-group-cell { background: var(--px-sky-2); color: var(--px-blue); font-weight: 800; font-size: 12px; }

[class*="fi-btn"] { border-radius: 12px; font-weight: 700; }
.fi-btn.fi-color-primary:not(.fi-outlined) { background: var(--px-blue); }
.fi-btn.fi-color-primary:not(.fi-outlined):hover { background: var(--px-blue-2); }
.fi-input-wrp, .fi-fo-select, .fi-fo-field-wrp .fi-input-wrp { border-radius: 12px; }
.fi-input-wrp:focus-within { box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18); border-color: var(--px-blue-2); }
.fi-fo-field-wrp label span, .fi-fo-field-label-content { font-size: 13px; font-weight: 700; color: var(--px-ink); }
.fi-fo-field-wrp-error-message, [class*="fi-fo-field-wrp-error-message"] { font-size: 12px; font-weight: 600; }
.fi-modal-window { border-radius: 22px; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18); }
.fi-no-notification, .fi-notification { border-radius: 14px; }

/* ---------- Halaman login ---------- */
.fi-simple-layout {
    background:
        radial-gradient(900px 420px at 50% -120px, rgba(2, 132, 199, 0.22), transparent 70%),
        linear-gradient(180deg, #f0f9ff 0%, var(--px-bg) 55%);
}
.fi-simple-main-ctn { padding: 24px 16px; }
.fi-simple-main {
    max-width: 440px; width: 100%; border-radius: 26px; background: #fff; border: 1px solid var(--px-line);
    padding: 36px 28px 30px; box-shadow: 0 24px 60px rgba(3, 105, 161, 0.12);
}
@media (min-width: 640px) { .fi-simple-main { padding: 44px 40px 38px; } }
.fi-simple-header { text-align: center; }
.fi-simple-header .fi-logo, .fi-simple-header .px-brand { justify-content: center; }
.fi-simple-header .px-brand { margin-bottom: 4px; }
.fi-simple-header-heading { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; color: var(--px-ink); }
.fi-simple-header-subheading { font-size: 13px; color: var(--px-mut); }
.fi-simple-main .fi-btn, .fi-simple-main .fi-btn * { color: #fff; }
.fi-simple-main .fi-btn { width: 100%; justify-content: center; padding-block: 11px; font-size: 14px; }

/* ---------- Dashboard ---------- */
.fi-main:has(.dx) .fi-header { display: none; }
.dx { color: var(--px-ink); }
.dx a { text-decoration: none; }
.dx-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.dx-main, .dx-side { display: grid; gap: 24px; align-content: start; min-width: 0; }
@media (min-width: 1180px) { .dx-grid { grid-template-columns: minmax(0, 1fr) 310px; } }

.dx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dx-head h2 { font-size: 14px; font-weight: 800; letter-spacing: -0.1px; margin: 0; }
.dx-head a { font-size: 11.5px; font-weight: 700; color: var(--px-blue-2); }
.dx-head a:hover { text-decoration: underline; }
.dx-chip { font-size: 11px; font-weight: 700; color: var(--px-mut); background: #eef2f7; padding: 4px 10px; border-radius: 8px; }

/* Banner: gradien sama dengan hero situs */
.dx-banner {
    position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: 26px 22px;
    background: linear-gradient(120deg, #0369a1 0%, #0284c7 58%, #0ea5e9 100%);
    box-shadow: 0 14px 34px rgba(3, 105, 161, 0.25);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.dx-banner::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.dx-banner-text { position: relative; z-index: 1; max-width: 520px; }
.dx-date { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #bae6fd; margin: 0 0 8px; }
.dx-banner h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; margin: 0 0 8px; color: #fff; }
.dx-lead { font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, 0.88); margin: 0 0 18px; }
.dx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dx-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 11px; font-size: 12.5px; font-weight: 800; transition: background 0.15s, transform 0.15s; }
.dx-btn-white { background: #fff; color: var(--px-blue); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12); }
.dx-btn-white:hover { background: var(--px-sky-2); }
.dx-btn-ghost { background: rgba(255, 255, 255, 0.16); color: #fff; }
.dx-btn-ghost:hover { background: rgba(255, 255, 255, 0.26); }
.dx-banner-logo { position: relative; z-index: 1; display: none; flex-shrink: 0; width: 132px; height: 132px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); align-items: center; justify-content: center; }
.dx-banner-logo img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18)); }
@media (min-width: 640px) { .dx-banner { padding: 30px 32px; } .dx-banner h1 { font-size: 28px; } .dx-banner-logo { display: flex; } }

/* Kartu kelola konten */
.dx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; }
.dx-card {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 16px 10px;
    background: #fff; border: 1px solid var(--px-line); border-radius: 16px; box-shadow: var(--px-shadow); color: var(--px-ink);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.dx-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(3, 105, 161, 0.12); border-color: #bae6fd; }
.dx-card b { font-size: 12.5px; font-weight: 800; line-height: 1.25; }
.dx-card small { font-size: 11px; font-weight: 600; color: var(--px-soft); }
.dx-ico { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; color: #fff; box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12); }
.dx-ico svg { width: 21px; height: 21px; }
.dx-sky { background: #0284c7; } .dx-indigo { background: #4f46e5; } .dx-emerald { background: #059669; } .dx-amber { background: #d97706; } .dx-rose { background: #e11d48; }

/* Kotak daftar */
.dx-box, .dx-side section { background: #fff; border: 1px solid var(--px-line); border-radius: var(--px-radius); box-shadow: var(--px-shadow); padding: 18px; }
.dx-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #f1f5f9; }
.dx-row:first-of-type { border-top: 0; }
.dx-row b { display: block; font-size: 13px; font-weight: 700; }
.dx-row small { font-size: 11.5px; color: var(--px-soft); font-weight: 600; }
.dx-time { font-size: 11.5px; font-weight: 600; color: var(--px-mut); white-space: nowrap; }
.dx-empty { font-size: 12.5px; color: var(--px-soft); margin: 4px 0 0; }

/* Minggu ini */
.dx-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.dx-day { display: flex; flex-direction: column; align-items: center; padding: 9px 0 8px; border-radius: 13px; background: #f8fafc; }
.dx-day span { font-size: 10px; font-weight: 600; color: var(--px-soft); }
.dx-day b { font-size: 14px; font-weight: 800; margin-top: 2px; color: var(--px-ink); }
.dx-day i { width: 4px; height: 4px; border-radius: 50%; margin-top: 5px; background: transparent; }
.dx-day.is-today { background: var(--px-blue-2); box-shadow: 0 8px 18px rgba(2, 132, 199, 0.35); }
.dx-day.is-today span { color: #bae6fd; } .dx-day.is-today b { color: #fff; } .dx-day.is-today i { background: #fff; }
.dx-note { font-size: 12px; line-height: 1.55; color: var(--px-mut); margin: 12px 0 0; }
.dx-note b { color: var(--px-ink); }

/* Piket */
.dx-person { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; font-weight: 600; }
.dx-av { width: 30px; height: 30px; border-radius: 50%; background: var(--px-sky); color: var(--px-blue); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }

/* Hitung mundur */
.dx-agenda { display: grid; gap: 10px; }
.dx-ag { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--px-sky-2); border: 1px solid #e0f2fe; }
.dx-ag-n { min-width: 46px; text-align: center; font-size: 22px; font-weight: 800; color: var(--px-blue); line-height: 1; }
.dx-ag b { display: block; font-size: 12.5px; font-weight: 800; line-height: 1.3; }
.dx-ag small { font-size: 11px; color: var(--px-mut); font-weight: 600; }
