/* ==========================================================================
   🏛️ MODERN PREMIUM STYLE Kanti Magang - BALAI BAHASA PROVINSI JAMBI
   File CSS GLOBAL — gabungan dari seluruh style yang sebelumnya tersebar
   di masing-masing file blade. Cukup di-link sekali di layout utama,
   otomatis berlaku ke semua halaman yang extend layout tersebut.
   ========================================================================== */

/* 1. RESET, FONT BASE, & GLOBAL TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Space+Mono:wght@400;700&display=swap');

* {
    font-family: 'Poppins', sans-serif !important;
    font-style: normal !important; /* 🛠️ TEGAK TOTAL: Menolak semua tulisan miring */
}

/* 🛠️ FIX PENTING: JANGAN TIMPA FONT ICON FONTAWESOME, KARENA BIKIN IKON JADI KOTAK KOSONG */
i.fa-solid, i.fa-regular, i.fa-brands, i.fa-light, i.fa-thin,
i[class*="fa-"], span[class*="fa-"] {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
}
i.fa-brands {
    font-family: 'Font Awesome 6 Brands' !important;
}

body {
    background-color: #f4f7fa;
    color: #1e293b;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    image-rendering: -webkit-optimize-contrast;
}

:root {
    --sky: #2563eb;
    --green: #059669;
    --amber: #d97706;
    --rose: #e11d48;
}

/* ==========================================================================
   2. FIX STRUKTUR LAYOUT: SIDEBAR TETAP NAVY GELAP & KONTEN KANAN PUTIH-BIRU
   ========================================================================== */

header.hidden.md\:flex {
    background: #0f172a !important;
    color: #ffffff !important;
    border-bottom: 1px solid #1e293b;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.bg-slate-900 {
    background-color: #0f172a !important;
    border-right: 1px solid #1e293b;
}

.bg-slate-900 .tracking-wider {
    color: #ffffff !important;
    font-weight: 900 !important;
}

.bg-slate-900 nav a,
.bg-slate-900 a {
    color: #94a3b8 !important;
    font-weight: 600 !important;
    border-radius: 14px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 6px;
}

.bg-slate-900 nav a:hover,
.bg-slate-900 a:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    padding-left: 1.25rem !important;
}

.bg-slate-900 .bg-blue-600,
.bg-slate-900 nav a.active,
.bg-slate-900 a[class*="active"],
.bg-slate-900 [class*="Halaman Utama"] {
    background-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.4) !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   3. MODERN GLASS CARD (Efek Putih Bulat Cantik di Sisi Kanan)
   ========================================================================== */
.glass-card {
    background: #ffffff;
    border-radius: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 16px -4px rgba(59, 130, 246, 0.02);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: #bfdbfe;
    box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.08);
}

/* ==========================================================================
   4. TOMBOL INDIKATOR PILIHAN (FORM PENILAIAN)
   ========================================================================== */
.btn-indicator {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-indicator:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(59, 130, 246, 0.15);
}

.active-indicator {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.1), 0 8px 20px -4px rgba(37, 99, 235, 0.15) !important;
}

/* ==========================================================================
   5. BARIS TABEL REKAPITULASI IKU
   ========================================================================== */
.iku-row {
    background-color: #ffffff;
    transition: all 0.25s ease;
}

.iku-row:hover {
    background-color: #f8fafc !important;
    transform: scale(1.002);
    box-shadow: inset 4px 0 0 0 #2563eb;
}

/* ==========================================================================
   6. PREMIUM SCROLLBAR ACCENT
   ========================================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================================================
   7. UTILITY & ANIMASI GLOBAL
   ========================================================================== */
.font-black {
    font-weight: 800 !important;
}

.animate-fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mono {
    font-family: 'Space Mono', monospace !important;
}

.rich-text-content p { margin-bottom: 0.5em; }
.rich-text-content p:last-child { margin-bottom: 0; }
.rich-text-content ul, .rich-text-content ol { margin-left: 1.2em; margin-bottom: 0.5em; }
.rich-text-content strong, .rich-text-content b { font-weight: 800; color: #334155; }
.rich-text-content a { color: #2563eb; text-decoration: underline; }

/* ==========================================================================
   8. HALAMAN DETAIL & HISTORI PERIZINAN MAHASISWA (detail_izin.blade.php)
   ========================================================================== */
.detail-izin-page,
.detail-izin-page p,
.detail-izin-page h1, .detail-izin-page h2, .detail-izin-page h3,
.detail-izin-page span, .detail-izin-page div,
.detail-izin-page a, .detail-izin-page td, .detail-izin-page th,
.detail-izin-page button, .detail-izin-page input, .detail-izin-page select,
.detail-izin-page label {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.deck-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 16px -4px rgba(59, 130, 246, 0.02);
    color: #1e293b !important;
}
.deck-header h2,
.deck-header p,
.deck-header span {
    color: #1e293b;
}
.deck-header .text-sky-400,
.deck-header .text-sky-400\/80 {
    color: #2563eb !important;
}
.deck-header span.bg-white\/10 {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
}

.card-putih {
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 22px;
    box-shadow: 0 1px 3px rgba(16,24,40,0.02);
}

.frame-avatar-new {
    width: 48px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #eff6ff;
    flex-shrink: 0;
}
.frame-avatar-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.frame-avatar-new i {
    color: #2563eb;
    font-size: 16px;
}

.btn-drive-logbook {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-drive-logbook:hover {
    background-color: #059669;
    color: #ffffff;
    border-color: #059669;
}

/* ==========================================================================
   9. HALAMAN DETAIL LOGBOOK AKTIVITAS MAHASISWA (detail-logbook.blade.php)
   ========================================================================== */
.pamong-page,
.pamong-page p, .pamong-page h1, .pamong-page h2,
.pamong-page span, .pamong-page div,
.pamong-page a, .pamong-page td, .pamong-page th,
.pamong-page button, .pamong-page input, .pamong-page select,
.pamong-page label {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.deck {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 16px -4px rgba(59, 130, 246, 0.02);
    color: #1e293b;
}
.deck .text-white { color: #1e293b !important; }
.deck .text-sky-400 { color: #2563eb !important; }
.deck .text-slate-400 { color: #94a3b8 !important; }
.deck .text-slate-300 { color: #475569 !important; }
.deck .text-emerald-400 { color: #059669 !important; }
.deck .text-amber-400 { color: #d97706 !important; }
.deck .bg-slate-900\/40 {
    background-color: #eff6ff !important;
    border: 1px solid #dbeafe !important;
}
.deck .border-white\/5,
.deck .border-white\/10 {
    border-color: #dbeafe !important;
}

/* Titik LIVE berdenyut (dashboard pamong) */
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #2563eb;
    box-shadow: 0 0 0 0 rgba(37,99,235,0.7);
    animation: pingBlue 1.6s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes pingBlue {
    0% { box-shadow: 0 0 0 0 rgba(37,99,235,0.5); }
    70% { box-shadow: 0 0 0 9px rgba(37,99,235,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

/* KARTU STATISTIK dashboard pamong: card putih jelas dengan border tegas + shadow + aksen warna kiri */
.stat {
    position: relative;
    display: block;
    padding: 20px 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 6px -2px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all .25s ease;
    text-decoration: none;
}
.stat:hover {
    border-color: #bfdbfe;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -6px rgba(37,99,235,0.12);
}
.stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
}
.s-sky::before    { background: #2563eb; }
.s-green::before  { background: #059669; }
.s-amber::before  { background: #d97706; }
.s-indigo::before { background: #4f46e5; }
.s-rose::before   { background: #e11d48; }

.stat .num {
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1px;
}
.stat .lbl {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #64748b;
    margin-top: 8px;
    text-transform: uppercase;
}
.stat .ic {
    position: absolute;
    right: 14px;
    top: 14px;
    font-size: 20px;
    opacity: .35;
}

/* PANEL putih (tabel presensi & sidebar validasi dashboard pamong) */
.panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 4px 12px -4px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.03);
}
.panel.border-t-4 {
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
}

/* Badge "Live" versi soft konsisten */
.pill-live {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.panel-putih {
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 22px;
    box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}

.field {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    outline: none;
    transition: all .2s;
    background: #fff;
}
.field:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 9999px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.b-green { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.b-amber { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.b-rose  { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.b-slate { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

.avatar-detail {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    background: #2563eb;
}

/* ==========================================================================
   10. HALAMAN PENGATURAN SISTEM / GEOFENCING (admin/settings.blade.php)
   ========================================================================== */

.switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; border-radius: 28px; }
.slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #4f46e5; }
input:checked + .slider:before { transform: translateX(22px); }

#map { height: 380px; width: 100%; border-radius: 1.5rem; border: 2px solid #e2e8f0; z-index: 10; box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); }

.leaflet-control-geocoder { border: 1px solid #cbd5e1 !important; box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important; border-radius: 8px !important; }
.leaflet-control-geocoder-icon { width: 30px !important; height: 30px !important; border-radius: 6px !important; }
.leaflet-control-geocoder-form input { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 600; color: #334155; }

/* ==========================================================================
   11. HALAMAN DASHBOARD UTAMA (dashboard-custom.css — by Daffa)
   ========================================================================== */
.card-dashboard {
    background: #ffffff;
    border-radius: 2.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.card-dashboard:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.avatar-container {
    width: 6rem;
    height: 6rem;
    border-radius: 2rem;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.chart-container {
    position: relative;
    height: 20rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-mini {
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.5625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.2s ease;
}

.badge-role {
    padding: 0.25rem 0.75rem;
    background-color: #2563eb;
    color: #ffffff;
    border-radius: 0.5rem;
    font-size: 0.5625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   12. HALAMAN LANDING PAGE HD (landing-hd.css)
   ========================================================================== */

.navbar-blur {
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.85);
}

.logo-box-perusahaan {
    background: white;
    border-radius: 3rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    transition: all 0.5s ease;
}

.img-perusahaan-hd {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.text-gradient {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-hd {
    transition: all 0.3s ease;
}

.btn-hd:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.step-card:hover {
    border-color: #2563eb;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* ==========================================================================
   13. HALAMAN PEMANTAUAN PRESENSI / MONITORING PAMONG (monitoring.blade.php)
   ⚠️ Semua selector di-scope di bawah .deck-page karena nama class .deck
   dan .field di halaman ini SENGAJA beda tampilan dari section 9
   (di sini gelap/navy, di section 9 putih). Scoping ini WAJIB dipertahankan
   biar gak saling tabrak antar halaman pamong.
   ========================================================================== */
.deck-page {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
.deck-page .mono {
    font-family: 'Space Mono', monospace !important;
}

.deck-page .deck {
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(6,182,212,0.10), transparent 45%),
        linear-gradient(135deg, #0b1120 0%, #131c31 100%);
    border: 1px solid #1e293b;
    border-radius: 26px;
    box-shadow: 0 24px 50px -24px rgba(11,17,32,0.55);
    color: #fff;
}

.deck-page .live-dot {
    width: 8px; height: 8px; border-radius: 9999px; background: #06b6d4;
    box-shadow: 0 0 0 0 rgba(6,182,212,0.7);
    animation: pingCyan 1.6s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes pingCyan {
    0% { box-shadow: 0 0 0 0 rgba(6,182,212,0.55); }
    70% { box-shadow: 0 0 0 9px rgba(6,182,212,0); }
    100% { box-shadow: 0 0 0 0 rgba(6,182,212,0); }
}

.deck-page .stat {
    position: relative; padding: 22px 20px 20px; border-radius: 18px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden; transition: all .25s ease;
}
.deck-page .stat:hover { background: rgba(255,255,255,0.06); transform: translateY(-3px); }
.deck-page .stat::before { content:''; position:absolute; left:0; top:0; height:100%; width:4px; background: #06b6d4; }
.deck-page .stat .num { font-size: 40px; line-height: 1; font-weight: 700; color: #fff; letter-spacing: -1px; }
.deck-page .stat .lbl { font-size: 10px; font-weight: 800; letter-spacing: 2px; color: #94a3b8; margin-top: 8px; }
.deck-page .stat .ic { position:absolute; right:16px; top:16px; font-size:22px; opacity:.25; }

.deck-page .panel { background:#fff; border:1px solid #e9edf3; border-radius: 22px; box-shadow: 0 1px 2px rgba(16,24,40,0.04); }

.deck-page .field {
    border:1px solid #e2e8f0; border-radius: 12px; padding: 10px 16px;
    font-size: 12px; font-weight: 600; width: 100%; outline: none; transition: all .2s;
}
.deck-page .field:focus { border-color: #06b6d4; box-shadow: 0 0 0 4px rgba(6,182,212,0.12); }

.deck-page .pill { display:inline-flex; align-items:center; gap:6px; padding: 5px 11px; border-radius: 9999px; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.deck-page .pill-cyan { background: #e0f7fa; color: #0891b2; border: 1px solid #a5f3fc; }
.deck-page .pill-alpa { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

.deck-page .avatar { width:38px; height:38px; border-radius: 12px; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; color:#fff; flex-shrink:0; overflow: hidden; }

.deck-page .loc-btn { width:34px; height:34px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; border:1px solid #e2e8f0; color:#0ea5b7; background:#fff; transition: all .2s; }
.deck-page .loc-btn:hover { background: #0b1120; color:#fff; border-color: #0b1120; }

.deck-page .row-hover:hover { background: #f8fafc; }