/* ============================================================
   SIMASET Premium Theme — Blue Accent (Flat Minimalist Style)
   Custom Styles (Adapted from SIAPBM design framework)
   ============================================================ */

/* ============================================================
   GLOBAL OVERRIDES
   ============================================================ */

/* Body font & smooth rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sembunyikan global search bar */
.fi-global-search {
    display: none !important;
}

/* ============================================================
   SIDEBAR STYLING (Blue Theme)
   ============================================================ */

/* Sidebar container — Premium deep slate/navy background */
.fi-sidebar {
    background-color: #1e293b !important; /* Premium Slate 800 */
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Dark mode sidebar */
.dark .fi-sidebar {
    background-color: #0f172a !important; /* Deep black-slate 900 */
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Header sidebar layout adjustment */
.fi-sidebar-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-inline: 1rem !important;
    height: 4rem !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.dark .fi-sidebar-header {
    border-bottom-color: rgba(255, 255, 255, 0.04) !important;
}

/* Memperjelas dan merapikan tombol collapse di header sidebar */
.fi-sidebar-header button,
.fi-sidebar-header .fi-icon-btn,
.fi-sidebar-header [role="button"] {
    color: #94a3b8 !important;
    background-color: #334155 !important;
    border: 1px solid #475569 !important;
    border-radius: 0.375rem !important;
    padding: 0.375rem !important;
    transition: all 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fi-sidebar-header button:hover,
.fi-sidebar-header .fi-icon-btn:hover {
    color: #0076c0 !important;
    background-color: #f0f9ff !important;
    border-color: #bae6fd !important;
}

.dark .fi-sidebar-header button,
.dark .fi-sidebar-header .fi-icon-btn {
    background-color: #1e293b !important;
    border-color: #374151 !important;
}

.dark .fi-sidebar-header button:hover,
.dark .fi-sidebar-header .fi-icon-btn:hover {
    color: #60a5fa !important;
    background-color: rgba(59, 130, 246, 0.15) !important;
    border-color: #60a5fa !important;
}

/* ── Sidebar nav: semua item & child elemennya putih (color saja, tanpa bg) ── */
.fi-sidebar-item-btn,
.fi-sidebar-item-btn > *,
.fi-sidebar-item-btn span,
.fi-sidebar-item-label,
.fi-sidebar-nav a,
.fi-sidebar-nav button {
    color: rgba(255, 255, 255, 0.85) !important;
    background-color: transparent !important;
}

/* Bullet/dot indicator (item tanpa ikon) */
.fi-sidebar-item-btn::before,
.fi-sidebar-item-button::before {
    background-color: rgba(255, 255, 255, 0.5) !important;
}

/* Sidebar navigation item buttons */
.fi-sidebar-item-btn {
    border-radius: 0.5rem !important;
    margin-inline: 0.75rem !important;
    padding-inline: 0.75rem !important;
    transition: all 0.15s ease !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
}

/* Hover — background hanya ke button, teks putih via inherit */
.fi-sidebar-item-btn:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

/* Icons */
.fi-sidebar-item-btn .fi-sidebar-item-icon,
.fi-sidebar-item-btn .fi-sidebar-item-icon svg {
    color: rgba(203, 213, 225, 0.9) !important;
    transition: color 0.15s ease !important;
}

.fi-sidebar-item-btn:hover .fi-sidebar-item-icon,
.fi-sidebar-item-btn:hover .fi-sidebar-item-icon svg {
    color: #ffffff !important;
}

/* Active item — hanya ke button-nya, bukan child elements */
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background-color: rgba(59, 130, 246, 0.15) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-icon,
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-icon svg {
    color: #60a5fa !important;
}

/* Group header button — same margin/padding as nav items for consistent alignment */
.fi-sidebar-group-btn {
    margin-inline: 0.75rem !important;
    padding-inline: 0.75rem !important;
    padding-block: 0.5rem !important;
    border-radius: 0.5rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.15s ease !important;
}

.fi-sidebar-group-btn:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.fi-sidebar-group-btn .fi-icon,
.fi-sidebar-group-btn .fi-icon svg {
    color: rgba(203, 213, 225, 0.9) !important;
    transition: color 0.15s ease !important;
}

.fi-sidebar-group-btn:hover .fi-icon,
.fi-sidebar-group-btn:hover .fi-icon svg {
    color: #ffffff !important;
}

/* Group label text — inside the group-btn in Filament 5 */
.fi-sidebar-group-label {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    letter-spacing: 0 !important;
    flex: 1 !important;
}

/* ============================================================
   TOPBAR / HEADER
   ============================================================ */

.fi-topbar {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(8px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(150%) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
}

.dark .fi-topbar {
    background-color: rgba(15, 23, 42, 0.8) !important;
    border-bottom: 1px solid #1e293b !important;
    box-shadow: none !important;
}

/* Safari fix: dropdown panel z-index (tanpa teleport, panel berada di dalam
   DOM tree topbar sehingga perlu z-index eksplisit agar tampil di atas
   semua konten halaman) */
.fi-user-menu .fi-dropdown-panel {
    z-index: 200 !important;
}

/* Custom User Menu Trigger in Topbar (Nama + Role + Avatar) */
.fi-user-menu-trigger {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    text-align: right !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    border-radius: 0.75rem !important;
    padding: 0.375rem 0.75rem !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    outline: none !important;
}

.fi-user-menu-trigger:hover {
    border-color: rgba(37, 99, 235, 0.3) !important;
    background-color: #eff6ff !important;
}

.dark .fi-user-menu-trigger {
    border-color: #1e293b !important;
    background-color: #0f172a !important;
}

.dark .fi-user-menu-trigger:hover {
    border-color: rgba(37, 99, 235, 0.4) !important;
    background-color: rgba(37, 99, 235, 0.05) !important;
}

.fi-user-menu-info {
    display: none !important; /* Sembunyikan di mobile secara default */
}

@media (min-width: 1024px) {
    .fi-user-menu-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        line-height: 1.25 !important;
    }
}

.fi-user-menu-name {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.dark .fi-user-menu-name {
    color: #f1f5f9 !important;
}

.fi-user-menu-role {
    font-size: 0.675rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.dark .fi-user-menu-role {
    color: #94a3b8 !important;
}

/* Avatar layout & sizing restriction */
.fi-user-avatar {
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 9999px !important;
    background-color: #f0f9ff !important;
    color: #0067b1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.dark .fi-user-avatar {
    background-color: rgba(0, 118, 192, 0.15) !important;
    color: #38bdf8 !important;
}

.fi-user-avatar svg {
    width: 1.1rem !important;
    height: 1.1rem !important;
}

.fi-avatar,
.fi-user-avatar-img,
.fi-user-menu-trigger .fi-avatar,
.fi-user-menu-trigger img,
.fi-user-menu-trigger svg.fi-avatar {
    width: 2rem !important;
    height: 2rem !important;
    max-width: 2rem !important;
    max-height: 2rem !important;
    border-radius: 9999px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

/* Memperjelas tombol collapse di topbar (Gaya Minimalis & Borderless) */
.fi-topbar-open-collapse-sidebar-btn,
.fi-topbar-close-collapse-sidebar-btn,
.fi-topbar button:has(svg[class*="sidebar"]),
.fi-topbar .fi-icon-btn {
    background-color: transparent !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 0.5rem !important;
    transition: all 0.15s ease !important;
}

/* Explicitly style the SVG icon inside topbar collapse buttons */
.fi-topbar-open-collapse-sidebar-btn svg,
.fi-topbar-close-collapse-sidebar-btn svg,
.fi-topbar button:has(svg[class*="sidebar"]) svg,
.fi-topbar .fi-icon-btn svg {
    color: #64748b !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    transition: color 0.15s ease !important;
}

.fi-topbar-open-collapse-sidebar-btn:hover,
.fi-topbar-close-collapse-sidebar-btn:hover,
.fi-topbar button:has(svg[class*="sidebar"]):hover,
.fi-topbar .fi-icon-btn:hover {
    background-color: rgba(37, 99, 235, 0.08) !important;
}

.fi-topbar-open-collapse-sidebar-btn:hover svg,
.fi-topbar-close-collapse-sidebar-btn:hover svg,
.fi-topbar button:has(svg[class*="sidebar"]):hover svg,
.fi-topbar .fi-icon-btn:hover svg {
    color: #0067b1 !important;
}

/* Dark mode overrides */
.dark .fi-topbar-open-collapse-sidebar-btn,
.dark .fi-topbar-close-collapse-sidebar-btn,
.dark .fi-topbar button:has(svg[class*="sidebar"]),
.dark .fi-topbar .fi-icon-btn {
    background-color: transparent !important;
}

.dark .fi-topbar-open-collapse-sidebar-btn svg,
.dark .fi-topbar-close-collapse-sidebar-btn svg,
.dark .fi-topbar button:has(svg[class*="sidebar"]) svg,
.dark .fi-topbar .fi-icon-btn svg {
    color: #94a3b8 !important;
}

.dark .fi-topbar-open-collapse-sidebar-btn:hover,
.dark .fi-topbar-close-collapse-sidebar-btn:hover,
.dark .fi-topbar button:has(svg[class*="sidebar"]):hover,
.dark .fi-topbar .fi-icon-btn:hover {
    background-color: rgba(37, 99, 235, 0.15) !important;
}

.dark .fi-topbar-open-collapse-sidebar-btn:hover svg,
.dark .fi-topbar-close-collapse-sidebar-btn:hover svg,
.dark .fi-topbar button:has(svg[class*="sidebar"]):hover svg,
.dark .fi-topbar .fi-icon-btn:hover svg {
    color: #60a5fa !important;
}

/* ============================================================
   BRAND LOGO (Sidebar & Topbar)
   ============================================================ */

.simaset-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem;
}

.simaset-brand-logo-icon {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.simaset-brand-logo-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.simaset-brand-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.simaset-brand-logo-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff !important; /* Always white on dark sidebar */
    letter-spacing: -0.02em;
}

.simaset-brand-logo-desc {
    font-size: 0.65rem;
    font-weight: 500;
    color: #94a3b8 !important; /* Soft light slate-gray for dark background */
    letter-spacing: 0.02em;
}

/* ============================================================
   SIDEBAR FOOTER
   ============================================================ */

.simaset-sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.simaset-sidebar-footer-text {
    font-size: 0.675rem;
    color: #64748b !important;
    line-height: 1.5;
}

.simaset-sidebar-footer-version {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    margin-top: 0.375rem;
}

.simaset-sidebar-footer-version svg {
    fill: #60a5fa !important;
}

/* ============================================================
   CARDS, SECTIONS & WIDGETS
   ============================================================ */

/* Hanya contained section (card biasa) yang dapat border — uncontained (wrapper stats) dilewati */
.fi-section:not(.fi-section-not-contained) {
    border-radius: 1rem !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease !important;
}

.fi-section:not(.fi-section-not-contained):hover {
    border-color: rgba(37, 99, 235, 0.4) !important;
}

.dark .fi-section:not(.fi-section-not-contained) {
    border-color: #1e293b !important;
}

/* Uncontained section (pembungkus stats widget) — tanpa border dan shadow */
.fi-section.fi-section-not-contained {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.fi-wi {
    border-radius: 1rem !important;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
}

.dark .fi-wi {
    border-color: #1e293b !important;
}

.fi-wi-stats-overview-stat {
    border-radius: 1rem !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.dark .fi-wi-stats-overview-stat {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
}

/* ============================================================
   TABLES
   ============================================================ */

.fi-ta {
    border-radius: 1rem !important;
    overflow: hidden !important;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
}

.dark .fi-ta {
    border-color: #1e293b !important;
}

.fi-ta-header-cell {
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #64748b !important;
    background-color: #f8fafc !important;
}

.dark .fi-ta-header-cell {
    background-color: rgba(30, 41, 59, 0.5) !important;
    color: #94a3b8 !important;
}

.fi-ta-row:hover {
    background-color: rgba(59, 130, 246, 0.03) !important;
}

/* ============================================================
   BUTTONS & INPUTS
   ============================================================ */

/* Primary button — gradient blue styling */
.fi-btn.fi-color-primary:not(.fi-outlined) {
    background: linear-gradient(135deg, #0076c0 0%, #0067b1 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 118, 192, 0.3) !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Memaksa warna ikon di dalam tombol primary menjadi putih */
.fi-btn.fi-color-primary:not(.fi-outlined) svg {
    color: #ffffff !important;
}

.fi-btn.fi-color-primary:not(.fi-outlined):hover {
    background: linear-gradient(135deg, #0067b1 0%, #00508f 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 118, 192, 0.4) !important;
    transform: translateY(-1px) !important;
}

.fi-btn.fi-color-primary:not(.fi-outlined):active {
    transform: translateY(0) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 118, 192, 0.3) !important;
}

/* Input focus state with blue ring */
.fi-input:focus-within {
    border-color: #0076c0 !important;
    box-shadow: 0 0 0 3px rgba(0, 118, 192, 0.15) !important;
}

.fi-input {
    border-radius: 0.625rem !important;
    transition: all 0.2s ease !important;
}

.fi-select-input {
    border-radius: 0.625rem !important;
}

/* ============================================================
   NOTIFICATIONS & MODALS
   ============================================================ */

.fi-no-notification {
    border-radius: 0.875rem !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.fi-modal-panel {
    border-radius: 1.25rem !important;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
}

.dark .fi-modal-panel {
    border-color: #1e293b !important;
}

/* ============================================================
   CUSTOM LOGIN PAGE STYLES (Split Screen - Full Cartoon Illustration)
   ============================================================ */

/* Mengunci tinggi html dan body hanya saat halaman login aktif */
html:has(.simaset-login-wrapper),
body:has(.simaset-login-wrapper) {
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Mengunci tinggi seluruh pembungkus tata letak login Filament */
body:has(.simaset-login-wrapper) .fi-simple-layout,
body:has(.simaset-login-wrapper) .fi-simple-main-ctn,
body:has(.simaset-login-wrapper) .fi-simple-main {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    width: 100% !important;
}

/* Mengatasi Livewire wrapper div bawaan Filament yang berada di antara .fi-simple-main dan .simaset-login-wrapper */
body:has(.simaset-login-wrapper) .fi-simple-main > div {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

@media (min-width: 1024px) {
    body:has(.simaset-login-wrapper) .fi-simple-main > div {
        flex-direction: row !important; /* Mode Split Screen horizontal pada Desktop */
    }
}

.simaset-login-wrapper {
    display: flex;
    flex-direction: column;
    height: 100% !important;
    width: 100% !important;
    background-color: #ffffff;
    overflow: hidden !important;
}

@media (min-width: 1024px) {
    .simaset-login-wrapper {
        flex-direction: row;
    }
}

/* ─── LEFT PANEL (Full Cartoon Illustration Only) ─── */
.simaset-login-left {
    display: none;
    width: 55%;
    min-width: 55%;
    max-width: 55%;
    height: 100% !important;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    background-color: #092421 !important; /* Teal gelap bawaan gambar sebagai fallback */
}

@media (min-width: 1024px) {
    .simaset-login-left {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

/* Sembunyikan dekorasi tambahan agar gambar kartun asli tampil penuh tanpa distorsi */
.simaset-login-left::before,
.simaset-login-left::after,
.simaset-login-decor-circle {
    display: none !important;
}

.simaset-login-left-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container Gambar Kartun Aset - Tampil Full Cover */
.simaset-login-image-container {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.simaset-login-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Gambar terpotong & memenuhi panel kiri nempel ujung */
    filter: none !important;
    animation: none !important;
}

/* ─── RIGHT PANEL (Form Login) ─── */
.simaset-login-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1.5rem;
    background-color: #f8fafc;
    position: relative;
    height: 100% !important;
    overflow-y: auto !important; /* Scroll internal hanya jika konten meluber pada layar sangat pendek */
}

/* Dot pattern background untuk panel kanan */
.simaset-login-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #cbd5e1 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    opacity: 0.4;
    pointer-events: none;
}

.simaset-login-form-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 1.25rem;
    padding: 2.5rem 2.25rem;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 8px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.simaset-login-form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.simaset-login-logo-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

@media (min-width: 1024px) {
    .simaset-login-logo-mobile {
        display: none;
    }
}

.simaset-login-logo-mobile-icon {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.simaset-login-logo-mobile-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.simaset-login-form-icon-box {
    width: 68px;
    height: 68px;
    background: #ffffff;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.simaset-login-form-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Custom override untuk tombol Masuk di form login */
.simaset-login-form-card button[type="submit"],
.simaset-login-form-card .fi-btn-color-primary,
.simaset-login-form-card button.fi-btn {
    background: linear-gradient(135deg, #0076c0 0%, #0067b1 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 118, 192, 0.3) !important;
    border-radius: 0.625rem !important;
    font-weight: 700 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.simaset-login-form-card button[type="submit"]:hover,
.simaset-login-form-card .fi-btn-color-primary:hover,
.simaset-login-form-card button.fi-btn:hover {
    background: linear-gradient(135deg, #0067b1 0%, #00508f 100%) !important;
    box-shadow: 0 6px 16px rgba(0, 118, 192, 0.4) !important;
    transform: translateY(-1px) !important;
}

.simaset-login-form-card button[type="submit"]:active,
.simaset-login-form-card .fi-btn-color-primary:active,
.simaset-login-form-card button.fi-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 3px 8px rgba(0, 118, 192, 0.2) !important;
}

.simaset-login-form-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.simaset-login-form-subtitle {
    font-size: 0.85rem;
    color: #64748b;
}

.simaset-login-version-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    margin-top: 1.75rem;
    font-size: 0.725rem;
    color: #94a3b8;
}

/* --- DARK MODE LOGIN OVERRIDES --- */
.dark body:has(.simaset-login-wrapper) .fi-simple-layout,
.dark body:has(.simaset-login-wrapper) .fi-simple-main-ctn,
.dark body:has(.simaset-login-wrapper) .fi-simple-main {
    background-color: #0f172a !important;
}

.dark .simaset-login-wrapper {
    background-color: #0f172a;
}

.dark .simaset-login-right {
    background-color: #0f172a;
}

.dark .simaset-login-right::before {
    background-image: radial-gradient(circle, #334155 1.2px, transparent 1.2px);
}

.dark .simaset-login-form-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dark .simaset-login-form-title {
    color: #f1f5f9;
}

.dark .simaset-login-form-subtitle {
    color: #94a3b8;
}

.dark .simaset-login-logo-mobile-text {
    color: #f1f5f9;
}

.dark .simaset-login-logo-mobile-icon,
.dark .simaset-login-form-icon-box {
    background: #0f172a;
    border: 1px solid #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   RESPONSIVE & COLLAPSE ADJUSTMENTS
   ============================================================ */

/* Sembunyikan footer sidebar ketika sidebar dalam keadaan kolaps (penciutan) */
.fi-sidebar.fi-collapsed .simaset-sidebar-footer {
    display: none !important;
}

/* Penyesuaian logo kustom di sidebar saat sidebar kolaps (penciutan) di desktop */
@media (min-width: 1024px) {
    /* 1. Sidebar goes all the way to the top */
    .fi-body-has-topbar .fi-sidebar {
        top: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        position: fixed !important;
        z-index: 30 !important;
    }

    /* 2. Topbar shifts to the right based on sidebar state */
    body:has(.fi-sidebar-open) .fi-topbar {
        margin-left: var(--sidebar-width) !important;
        width: calc(100% - var(--sidebar-width)) !important;
    }

    body:not(:has(.fi-sidebar-open)) .fi-topbar {
        margin-left: var(--collapsed-sidebar-width) !important;
        width: calc(100% - var(--collapsed-sidebar-width)) !important;
    }

    /* 3. Main container shifts to the right based on sidebar state */
    body:has(.fi-sidebar-open) .fi-main-ctn {
        margin-left: var(--sidebar-width) !important;
    }

    body:not(:has(.fi-sidebar-open)) .fi-main-ctn {
        margin-left: var(--collapsed-sidebar-width) !important;
    }

    /* Smooth transitions for sidebar toggle sliding */
    .fi-topbar,
    .fi-main-ctn {
        transition: margin-left 0.2s cubic-bezier(0.4, 0, 0.2, 1), width 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* 4. Sidebar width transition on desktop (Filament disables it by default with lg:transition-none) */
    .fi-body-has-topbar .fi-sidebar {
        transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* 5. Collapsed sidebar: set explicit width so it matches --collapsed-sidebar-width. */
    .fi-body-has-topbar .fi-sidebar:not(.fi-sidebar-open) {
        width: var(--collapsed-sidebar-width) !important;
        overflow-x: hidden !important;
    }

    /* Remove nav horizontal padding when collapsed so icon buttons fit within 4.5rem width. */
    .fi-body-has-topbar .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-nav {
        padding-inline: 0 !important;
        align-items: center !important;
    }

    /* Center header area in collapsed state */
    .fi-body-has-topbar .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-header {
        padding-inline: 0 !important;
        justify-content: center !important;
    }

    /* Paksa seluruh rantai kontainer logo di sidebar agar tetap tampil saat dikolaps */
    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-header-logo-ctn,
    .fi-sidebar.fi-collapsed .fi-sidebar-header-logo-ctn,
    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-header-logo-ctn a,
    .fi-sidebar.fi-collapsed .fi-sidebar-header-logo-ctn a,
    .fi-sidebar:not(.fi-sidebar-open) .fi-logo,
    .fi-sidebar.fi-collapsed .fi-logo,
    .fi-sidebar:not(.fi-sidebar-open) .simaset-brand-logo,
    .fi-sidebar.fi-collapsed .simaset-brand-logo {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-header-logo-ctn,
    .fi-sidebar.fi-collapsed .fi-sidebar-header-logo-ctn {
        width: 100% !important;
    }

    /* Pusatkan logo di sidebar yang menyempit */
    .fi-sidebar.fi-collapsed .simaset-brand-logo,
    .fi-sidebar:not(.fi-sidebar-open) .simaset-brand-logo {
        padding-inline: 0 !important;
        margin: 0 auto !important;
    }

    /* Sembunyikan teks nama brand agar tidak meluber */
    .fi-sidebar.fi-collapsed .simaset-brand-logo-text,
    .fi-sidebar:not(.fi-sidebar-open) .simaset-brand-logo-text {
        display: none !important;
    }

    /* Pusatkan ikon logo box gradien */
    .fi-sidebar.fi-collapsed .simaset-brand-logo-icon,
    .fi-sidebar:not(.fi-sidebar-open) .simaset-brand-logo-icon {
        margin: 0 !important;
    }
}

/* ============================================================
   SCROLLBAR & TRANSITIONS
   ============================================================ */

.fi-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.fi-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.fi-sidebar-nav::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.3);
    border-radius: 999px;
}

.fi-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background-color: rgba(148, 163, 184, 0.5);
}

.fi-page {
    animation: fadeInUp 0.35s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fi-btn,
.fi-sidebar-item-btn,
.fi-ta-row,
.fi-section {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Memperbaiki background merah solid pada bubble count (badge) sidebar */
.fi-sidebar-nav .fi-badge,
.fi-sidebar-nav .fi-sidebar-item-badge,
.fi-sidebar-nav span.fi-badge {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
}

/* Custom Panduan Topbar Button */
.fi-panduan-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
    border-radius: 0.75rem !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    color: #64748b !important;
    transition: all 0.2s ease !important;
    margin-right: 0.5rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.fi-panduan-btn:hover, .fi-panduan-btn.fi-active {
    border-color: rgba(0, 118, 192, 0.3) !important;
    background-color: #f0f9ff !important;
    color: #0067b1 !important;
}

.dark .fi-panduan-btn {
    border-color: #1e293b !important;
    background-color: #0f172a !important;
    color: #94a3b8 !important;
}

.dark .fi-panduan-btn:hover, .dark .fi-panduan-btn.fi-active {
    border-color: rgba(0, 118, 192, 0.4) !important;
    background-color: rgba(0, 118, 192, 0.05) !important;
    color: #38bdf8 !important;
}

.fi-panduan-btn svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
}
