/* ==========================================================================
   AN-NAZDIR CENTRAL SYSTEM — MODERN SAAS PREMIUM EDUCATION MANAGEMENT CSS
   Version 2.1.5 — Modern SaaS + Bento Grid + Islamic Education Identity
   Official Brand Palette:
   - Primary: #0C6A7B (Stormy Teal)
   - Secondary: #5A939F (Pacific Cyan)
   - Accent: #F8B133 (Sunflower Gold)
   - Base White: #FEFEFE
   - Background: #F0F5F6
   - Main Text: #1A2F33
   - Secondary Text: #5D7B82
   - Border: #DDE8EA
   - Mint: #DDF1ED
   - Soft Blue: #E8F1F8
   - Warm Cream: #F5EFE4
   ========================================================================== */

/* ═══════════════════════════════════════════════════════
   0. GLOBAL RESET & BODY FOUNDATION
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
}

/* SVG / Icon Size Protection — Prevents any icon explosion */
svg {
    max-width: 100%;
}

svg.annadzir-icon,
svg.annadzir-icon-sm,
svg.annadzir-icon-md,
svg.annadzir-icon-lg,
.annadzir-emblem svg,
.sz-icon svg {
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    overflow: visible;
}

.annadzir-icon    { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; }
.annadzir-icon-sm { width: 14px !important; height: 14px !important; max-width: 14px !important; max-height: 14px !important; }
.annadzir-icon-md { width: 18px !important; height: 18px !important; max-width: 18px !important; max-height: 18px !important; }
.annadzir-icon-lg { width: 24px !important; height: 24px !important; max-width: 24px !important; max-height: 24px !important; }

/* sz-* utility icon sizing system */
.sz-14 { width: 14px !important; height: 14px !important; min-width: 14px; min-height: 14px; max-width: 14px !important; max-height: 14px !important; }
.sz-16 { width: 16px !important; height: 16px !important; min-width: 16px; min-height: 16px; max-width: 16px !important; max-height: 16px !important; }
.sz-18 { width: 18px !important; height: 18px !important; min-width: 18px; min-height: 18px; max-width: 18px !important; max-height: 18px !important; }
.sz-20 { width: 20px !important; height: 20px !important; min-width: 20px; min-height: 20px; max-width: 20px !important; max-height: 20px !important; }
.sz-22 { width: 22px !important; height: 22px !important; min-width: 22px; min-height: 22px; max-width: 22px !important; max-height: 22px !important; }
.sz-24 { width: 24px !important; height: 24px !important; min-width: 24px; min-height: 24px; max-width: 24px !important; max-height: 24px !important; }
.sz-28 { width: 28px !important; height: 28px !important; min-width: 28px; min-height: 28px; max-width: 28px !important; max-height: 28px !important; }
.sz-32 { width: 32px !important; height: 32px !important; min-width: 32px; min-height: 32px; max-width: 32px !important; max-height: 32px !important; }
.sz-36 { width: 36px !important; height: 36px !important; min-width: 36px; min-height: 36px; max-width: 36px !important; max-height: 36px !important; }
.sz-40 { width: 40px !important; height: 40px !important; min-width: 40px; min-height: 40px; max-width: 40px !important; max-height: 40px !important; }
.sz-48 { width: 48px !important; height: 48px !important; min-width: 48px; min-height: 48px; max-width: 48px !important; max-height: 48px !important; }

/* ═══════════════════════════════════════════════════════
   1. TYPOGRAPHY SYSTEM
   ═══════════════════════════════════════════════════════ */

.f-jakarta,
.annadzir-heading {
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif !important;
}

.f-inter,
.annadzir-body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif !important;
}

/* ═══════════════════════════════════════════════════════
   2. FILAMENT ADMIN PANEL — GLOBAL OVERRIDES & FULL-WIDTH EXPANSION
   ═══════════════════════════════════════════════════════ */

/* Page background: Soft, soothing brand pastel canvas */
.fi-main,
.fi-body {
    background-color: #F2F7F8 !important;
}

/* Eliminate empty sides on large monitors ("kiri kanan kosong melongpong") */
.fi-main-ctn {
    width: 100% !important;
}

.fi-main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 1.25rem 2rem 2.5rem 2rem !important;
}

@media (min-width: 1536px) {
    .fi-main {
        padding: 1.5rem 3rem 3rem 3rem !important;
    }
}

/* Page content area */
.fi-page,
.fi-page-content,
.fi-page-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Remove default widget chrome */
.fi-wi-widget {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ═══════════════════════════════════════════════════════
   3. SIDEBAR — CLEAN WHITE MODERN SAAS (MATCHING PROTOTYPE)
   ═══════════════════════════════════════════════════════ */

.fi-sidebar {
    background-color: #FEFEFE !important;
    border-right: 1px solid #E1EAEB !important;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.03) !important;
}

/* Force sidebar header to always be visible even on desktop with topbar */
.fi-sidebar-header,
.fi-body-has-topbar .fi-sidebar-header {
    display: flex !important;
    align-items: center !important;
    height: 4rem !important;
    padding: 0.75rem 1.15rem !important;
    border-bottom: 1px solid #E1EAEB !important;
    background-color: #FEFEFE !important;
}

.fi-sidebar-header-logo-ctn {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.fi-sidebar-header .annadzir-brand-title {
    color: #0C6A7B !important;
    font-weight: 800 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.fi-sidebar-header .annadzir-brand-subtitle {
    color: #71858A !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Nav group labels */
.fi-sidebar-group[data-group-label=""]::before {
    content: "MAIN";
    display: block;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #71858A;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.fi-sidebar-group-label {
    font-size: 0.6875rem !important;
    letter-spacing: 0.08em !important;
    font-weight: 700 !important;
    color: #71858A !important;
    text-transform: uppercase !important;
    padding: 0.75rem 0.5rem 0.25rem !important;
}

/* ═══════════════════════════════════════════════════════
   3. SIDEBAR NAVIGATION ITEMS (EXPANDED & COLLAPSED)
   ═══════════════════════════════════════════════════════ */

/* Nav items — Base link/button */
.fi-sidebar-item a,
.fi-sidebar-item .fi-sidebar-item-btn,
aside .fi-sidebar-item a,
aside .fi-sidebar-item .fi-sidebar-item-btn {
    color: #263B40 !important;
    border-radius: 0.625rem !important;
    margin: 0.15rem 0.65rem !important;
    padding: 0.6rem 0.85rem !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
}

/* Nav items — Inactive icons: CRISP, PROFESSIONAL PACIFIC TEAL (#4A6B72), NEVER REDUP */
.fi-sidebar-item a svg,
.fi-sidebar-item .fi-sidebar-item-btn svg,
.fi-sidebar-item .fi-sidebar-item-icon,
aside .fi-sidebar-item a svg,
aside .fi-sidebar-item .fi-sidebar-item-btn svg,
aside .fi-sidebar-item .fi-sidebar-item-icon {
    color: #4A6B72 !important;
    opacity: 1 !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    stroke-width: 2.2 !important;
    fill: none !important;
    transition: color 0.15s ease, transform 0.15s ease !important;
}

/* Nav items — Inactive label */
.fi-sidebar-item-label,
aside .fi-sidebar-item a span {
    color: #263B40 !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
}

/* Nav items — Hover state */
.fi-sidebar-item a:hover,
.fi-sidebar-item .fi-sidebar-item-btn:hover,
aside .fi-sidebar-item a:hover,
aside .fi-sidebar-item .fi-sidebar-item-btn:hover {
    background-color: #F0F6F7 !important;
    color: #0C6A7B !important;
    transform: translateX(2px) !important;
}

.fi-sidebar-item a:hover svg,
.fi-sidebar-item .fi-sidebar-item-btn:hover svg,
aside .fi-sidebar-item a:hover svg,
aside .fi-sidebar-item .fi-sidebar-item-btn:hover svg {
    color: #0C6A7B !important;
    transform: scale(1.08) !important;
}

.fi-sidebar-item a:hover .fi-sidebar-item-label,
aside .fi-sidebar-item a:hover span {
    color: #0C6A7B !important;
}

/* Nav items — Active state: SOLID STORMY TEAL (#0C6A7B) PILL WITH WHITE ICON */
.fi-sidebar-item.fi-sidebar-item-active a,
.fi-sidebar-item.fi-active a,
.fi-sidebar-item-active a,
.fi-sidebar-item-active .fi-sidebar-item-btn,
.fi-sidebar-item.fi-active .fi-sidebar-item-btn,
aside .fi-sidebar-item.fi-sidebar-item-active a,
aside .fi-sidebar-item.fi-active a,
aside .fi-sidebar-item.fi-sidebar-item-active .fi-sidebar-item-btn,
aside .fi-sidebar-item.fi-active .fi-sidebar-item-btn {
    background: #0C6A7B !important;
    color: #FEFEFE !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(12, 106, 123, 0.32) !important;
    border: none !important;
    transform: none !important;
}

.fi-sidebar-item.fi-sidebar-item-active a svg,
.fi-sidebar-item.fi-active a svg,
.fi-sidebar-item-active a svg,
.fi-sidebar-item-active .fi-sidebar-item-btn svg,
.fi-sidebar-item.fi-active .fi-sidebar-item-btn svg,
aside .fi-sidebar-item.fi-sidebar-item-active a svg,
aside .fi-sidebar-item.fi-active a svg,
aside .fi-sidebar-item.fi-sidebar-item-active .fi-sidebar-item-btn svg,
aside .fi-sidebar-item.fi-active .fi-sidebar-item-btn svg {
    color: #FEFEFE !important;
    opacity: 1 !important;
    stroke-width: 2.2 !important;
    fill: none !important;
    transform: none !important;
}

.fi-sidebar-item.fi-sidebar-item-active a span,
.fi-sidebar-item.fi-active a span,
.fi-sidebar-item-active a span,
.fi-sidebar-item-active .fi-sidebar-item-btn span,
.fi-sidebar-item.fi-active .fi-sidebar-item-btn span {
    color: #FEFEFE !important;
    font-weight: 700 !important;
}

/* Nav items — Active hover state */
.fi-sidebar-item.fi-sidebar-item-active a:hover,
.fi-sidebar-item.fi-active a:hover,
.fi-sidebar-item-active a:hover,
aside .fi-sidebar-item.fi-sidebar-item-active a:hover {
    background: #095360 !important;
    color: #FEFEFE !important;
}

/* ═══════════════════════════════════════════════════════
   3.0.1 COLLAPSED SIDEBAR ADAPTATION (MINI BAR MODE)
   ═══════════════════════════════════════════════════════ */

/* Center items and icons in collapsed mini sidebar */
.fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item a,
.fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item .fi-sidebar-item-btn {
    margin: 0.25rem auto !important;
    padding: 0.65rem !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
}

.fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item a svg,
.fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item .fi-sidebar-item-btn svg {
    margin: 0 !important;
    width: 20px !important;
    height: 20px !important;
}

/* Group labels in collapsed mini sidebar */
.fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group-label,
.fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group[data-group-label=""]::before {
    text-align: center !important;
    padding: 0.5rem 0.2rem 0.25rem !important;
    font-size: 9px !important;
    letter-spacing: 0.05em !important;
}

/* Mosque footer in collapsed mini sidebar */
.fi-sidebar:not(.fi-sidebar-open) .az-sidebar-footer {
    padding: 0.25rem 0.25rem 0.4rem !important;
}

.fi-sidebar:not(.fi-sidebar-open) .az-sidebar-footer-inner {
    padding: 0.2rem !important;
}

.fi-sidebar:not(.fi-sidebar-open) .az-sidebar-mosque-svg {
    height: 60px !important;
}

/* Sidebar scroll */
.fi-sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* ═══════════════════════════════════════════════════════
   3.1 SIDEBAR FOOTER — ISLAMIC MOSQUE SKYLINE SILHOUETTE
   ═══════════════════════════════════════════════════════ */

.az-sidebar-footer {
    position: relative;
    width: 100%;
    margin-top: auto;
    padding: 0.5rem 0.65rem 0.35rem;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.az-sidebar-footer-inner {
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(254, 254, 254, 0) 0%, rgba(221, 241, 237, 0.45) 100%);
    border-top: 1px dashed rgba(90, 147, 159, 0.28);
    padding-top: 0.25rem;
}

.az-sidebar-mosque-svg {
    width: 100%;
    height: 85px;
    display: block;
}

/* ═══════════════════════════════════════════════════════
   4. TOPBAR / HEADER
   ═══════════════════════════════════════════════════════ */

.fi-topbar {
    background-color: #FEFEFE !important;
    border-bottom: 1px solid #DDE8EA !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
    min-height: 52px !important;
    padding-left: 0.75rem !important;
    padding-right: 1.15rem !important;
    display: flex !important;
    align-items: center !important;
}

/* Move Sidebar Collapse/Expand Button to the FAR LEFT */
.fi-topbar-start {
    order: -1 !important;
    display: flex !important;
    align-items: center !important;
    margin-right: 0.75rem !important;
}

.fi-topbar-collapse-sidebar-btn-ctn {
    display: flex !important;
    align-items: center !important;
}

/* PERMANENTLY HIDE Hamburger (=) and Close (X) buttons — only arrow (< / >) is used */
.fi-topbar-open-sidebar-btn,
.fi-topbar-close-sidebar-btn {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Always show collapse button container (contains the single arrow < or >) */
.fi-topbar-collapse-sidebar-btn-ctn {
    display: flex !important;
    align-items: center !important;
}

/* Ensure hidden state is strictly respected (never show both arrows together) */
.fi-topbar [style*="display: none"],
.fi-topbar [x-cloak],
.fi-topbar-collapse-sidebar-btn-ctn [style*="display: none"],
.fi-topbar-collapse-sidebar-btn-ctn [x-cloak] {
    display: none !important;
}

/* Only style the visible arrow button (< when open, > when collapsed) */
.fi-topbar-collapse-sidebar-btn-ctn button:not([style*="display: none"]):not([x-cloak]) {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 8px !important;
    background: #F4F8F8 !important;
    border: 1px solid #E1EAEB !important;
    color: #0C6A7B !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.fi-topbar-collapse-sidebar-btn-ctn button:not([style*="display: none"]):not([x-cloak]):hover {
    background: #E8F1F8 !important;
    color: #0C6A7B !important;
    border-color: #5A939F !important;
    transform: scale(1.05) !important;
}

/* Hide duplicate Filament native global search input */
.fi-global-search,
.fi-topbar-end .fi-global-search {
    display: none !important;
}

/* ── Topbar Global Search Pill (⌘K) ─────────────────────────
   NOTE: All visual styling lives here (not inline) because
   Alpine's string :style binding replaces the whole style attribute. */
.az-topbar-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.az-topbar-search {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    box-sizing: border-box;
    width: 340px;
    max-width: 100%;
    height: 38px;
    padding: 0 0.3rem 0 0.9rem;
    background: #FEFEFE;
    border: 1.5px solid #DDE8EA;
    border-radius: 9999px;
    color: #263B40;
    cursor: text;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.az-topbar-search:hover {
    border-color: #B9CDD1;
    box-shadow: 0 2px 8px rgba(12, 106, 123, 0.07);
}

.az-topbar-search:focus-within,
.az-topbar-search.az-topbar-search--active {
    border-color: #0C6A7B;
    box-shadow: 0 0 0 3px rgba(12, 106, 123, 0.12);
}

.az-topbar-search__icon {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    min-width: 15px;
    max-width: 15px;
    color: #5A939F;
}

.az-topbar-search__input {
    flex: 1 1 0%;
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    color: #263B40;
}

.az-topbar-search__input::placeholder {
    color: #71858A;
    opacity: 1;
}

.az-topbar-search__clear {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: #E1EAEB;
    color: #71858A;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.az-topbar-search__clear svg {
    width: 10px;
    height: 10px;
    min-width: 10px;
    max-width: 10px;
    stroke: currentColor;
}

.az-topbar-search__clear:hover {
    background: #CBD8DB;
    color: #263B40;
}

.az-topbar-search__kbd {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 5px;
    border: 1px solid #DDE8EA;
    border-radius: 5px;
    background: #F4F8F8;
    color: #71858A;
    font-family: 'Inter', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.az-topbar-search__divider {
    flex-shrink: 0;
    width: 1px;
    height: 18px;
    background: #E1EAEB;
}

.az-topbar-search__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 9999px;
    background: #0C6A7B;
    color: #FEFEFE;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.az-topbar-search__btn svg {
    width: 14px;
    height: 14px;
    min-width: 14px;
    max-width: 14px;
    color: currentColor;
    stroke: currentColor;
}

.az-topbar-search__btn:hover {
    background: #095360;
    box-shadow: 0 2px 6px rgba(12, 106, 123, 0.3);
}

.az-topbar-search__btn:active {
    transform: scale(0.94);
}

.az-topbar-search__btn:focus-visible,
.az-topbar-search__clear:focus-visible {
    outline: 2px solid #0C6A7B;
    outline-offset: 1px;
}

@media (max-width: 1400px) {
    .az-topbar-search {
        width: 300px;
    }
}

@media (max-width: 1280px) {
    .az-topbar-search {
        width: 250px;
    }

    .az-topbar-search__kbd {
        display: none;
    }
}

@media (max-width: 1024px) {
    .az-topbar-search-wrap {
        flex: 1 1 auto;
    }

    .az-topbar-search {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .az-topbar-search {
        width: 160px;
    }

    .az-topbar-search__icon,
    .az-topbar-search__divider {
        display: none;
    }
}

/* Topbar inner layout */
.fi-topbar-nav {
    display: flex !important;
    align-items: center !important;
    min-height: 52px !important;
}

/* Custom topbar components spacing */
.az-topbar-left,
.az-topbar-right {
    display: flex !important;
    align-items: center !important;
}

.az-topbar-left {
    order: 1 !important;
    flex: 1 !important;
}

.fi-topbar-end {
    order: 2 !important;
}

.az-topbar-right {
    order: 3 !important;
    flex-shrink: 0 !important;
}

/* Brand logo title colors depending on container */
aside.fi-sidebar .annadzir-brand-title {
    color: #0C6A7B !important;
}
aside.fi-sidebar .annadzir-brand-subtitle {
    color: #71858A !important;
}

.fi-topbar .annadzir-brand-title {
    color: #0C6A7B !important;
}
.fi-topbar .annadzir-brand-subtitle {
    color: #5A939F !important;
}

.fi-simple-main .annadzir-brand-title,
.fi-simple-header .annadzir-brand-title {
    color: #0C6A7B !important;
}
.fi-simple-main .annadzir-brand-subtitle,
.fi-simple-header .annadzir-brand-subtitle {
    color: #5A939F !important;
}

/* ═══════════════════════════════════════════════════════
   5. LOGIN PAGE
   ═══════════════════════════════════════════════════════ */

.fi-simple-layout {
    background: linear-gradient(135deg, #0E2D33 0%, #0C6A7B 100%) !important;
}

.fi-simple-main {
    background-color: #FEFEFE !important;
    border: none !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3), 0 8px 25px -8px rgba(12, 106, 123, 0.2) !important;
    padding: 2.5rem !important;
}

.fi-simple-header .fi-logo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: auto !important;
    margin-bottom: 0.5rem !important;
}

.fi-simple-header .annadzir-brand-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 12px !important;
    margin: 0 auto !important;
}

.fi-simple-header .annadzir-emblem {
    width: 104px !important; height: 104px !important;
    min-width: 104px !important; min-height: 104px !important;
    max-width: 104px !important; max-height: 104px !important;
    border-radius: 20px !important;
    padding: 6px !important;
    background: #FEFEFE !important;
    border: 1.5px solid #E1EAEB !important;
    box-shadow: 0 8px 24px rgba(12, 106, 123, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.fi-simple-header .annadzir-emblem img,
.fi-simple-header .annadzir-emblem .annadzir-logo-img,
.fi-simple-header .annadzir-emblem svg {
    width: 100% !important; height: 100% !important;
    max-width: 92px !important; max-height: 92px !important;
    object-fit: contain !important;
    display: block !important;
}

.fi-simple-header .annadzir-brand-title {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #0C6A7B !important;
    letter-spacing: -0.015em !important;
    text-align: center !important;
    line-height: 1.15 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.fi-simple-header .annadzir-brand-subtitle {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #5A939F !important;
    letter-spacing: 0.14em !important;
    text-align: center !important;
    margin-top: 3px !important;
    font-family: 'Inter', sans-serif !important;
}

/* ═══════════════════════════════════════════════════════
   6. SAAS CARD SYSTEM
   ═══════════════════════════════════════════════════════ */

/* Base card */
.az-card {
    background-color: #FEFEFE;
    border: 1px solid #DDE8EA;
    border-radius: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.az-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(12, 106, 123, 0.12);
    border-color: rgba(90, 147, 159, 0.4);
}

@media (prefers-reduced-motion: reduce) {
    .az-card, .az-card:hover, .az-stat-card, .az-stat-card:hover, .az-unit-card, .az-unit-card:hover {
        transform: none !important;
        transition: none !important;
    }
}

/* Stat card */
.az-stat-card {
    background-color: #FEFEFE;
    border: 1px solid #DDE8EA;
    border-radius: 0.875rem;
    padding: 1.25rem 1.4rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.az-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -6px rgba(12, 106, 123, 0.14);
}

/* Unit card */
.az-unit-card {
    border-radius: 1rem;
    padding: 1.4rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.az-unit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -6px rgba(0,0,0,0.12);
}

/* Integration app card */
.az-app-card {
    background-color: #FEFEFE;
    border: 1px solid #DDE8EA;
    border-radius: 0.75rem;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.az-app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -4px rgba(12, 106, 123, 0.1);
    border-color: rgba(90, 147, 159, 0.35);
}

/* ═══════════════════════════════════════════════════════
   7. BENTO GRID SYSTEM
   ═══════════════════════════════════════════════════════ */

.az-bento-grid {
    display: grid;
    gap: 1.1rem;
    width: 100%;
}

.az-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 1024px) {
    .az-stats-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.az-units-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .az-units-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .az-units-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.az-apps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .az-apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .az-apps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Legacy compat */
.annadzir-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
}

@media (min-width: 1024px) {
    .annadzir-stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.annadzir-units-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
}

@media (min-width: 640px) {
    .annadzir-units-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .annadzir-units-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ═══════════════════════════════════════════════════════
   8. SECTION HEADER COMPONENT
   ═══════════════════════════════════════════════════════ */

.az-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

.az-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #1A2F33;
    letter-spacing: -0.015em;
    margin: 0;
}

.az-section-desc {
    font-size: 0.78rem;
    color: #5D7B82;
    margin: 0.2rem 0 0;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   9. BADGE & STATUS CHIPS
   ═══════════════════════════════════════════════════════ */

.az-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.az-badge-teal    { background: rgba(12, 106, 123, 0.1);  color: #0C6A7B; border: 1px solid rgba(12, 106, 123, 0.2); }
.az-badge-cyan    { background: rgba(90, 147, 159, 0.1);  color: #3A7585; border: 1px solid rgba(90, 147, 159, 0.2); }
.az-badge-gold    { background: rgba(248, 177, 51, 0.12); color: #A0710E; border: 1px solid rgba(248, 177, 51, 0.3); }
.az-badge-grey    { background: #F0F5F6;                   color: #5D7B82; border: 1px solid #DDE8EA; }
.az-badge-green   { background: rgba(5, 150, 105, 0.1);   color: #065f46; border: 1px solid rgba(5, 150, 105, 0.2); }
.az-badge-amber   { background: rgba(217, 119, 6, 0.1);   color: #92400e; border: 1px solid rgba(217, 119, 6, 0.2); }
.az-badge-dark    { background: #0E2D33;                   color: #FEFEFE; border: none; }

.az-dot {
    width: 6px; height: 6px;
    border-radius: 9999px;
    display: inline-block;
    flex-shrink: 0;
}

.az-dot-teal  { background-color: #0C6A7B; }
.az-dot-cyan  { background-color: #5A939F; }
.az-dot-gold  { background-color: #F8B133; }
.az-dot-grey  { background-color: #9CA3AF; }
.az-dot-green { background-color: #10b981; }
.az-dot-amber { background-color: #f59e0b; }

/* ═══════════════════════════════════════════════════════
   10. ICON CONTAINER CHIPS
   ═══════════════════════════════════════════════════════ */

.az-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.az-icon-box-sm { width: 32px; height: 32px; border-radius: 8px; }
.az-icon-box-md { width: 40px; height: 40px; border-radius: 10px; }
.az-icon-box-lg { width: 48px; height: 48px; border-radius: 12px; }

.az-icon-teal  { background: rgba(12, 106, 123, 0.1);  color: #0C6A7B; }
.az-icon-cyan  { background: rgba(90, 147, 159, 0.12); color: #3A7585; }
.az-icon-gold  { background: rgba(248, 177, 51, 0.12); color: #B07D10; }
.az-icon-mint  { background: #DDF1ED;                   color: #0C6A7B; }
.az-icon-blue  { background: #E8F1F8;                   color: #2563EB; }
.az-icon-cream { background: #F5EFE4;                   color: #92400E; }
.az-icon-dark  { background: rgba(14, 45, 51, 0.08);   color: #0E2D33; }

/* ═══════════════════════════════════════════════════════
   11. HERO GEOMETRIC DECORATIONS (CSS-only)
   ═══════════════════════════════════════════════════════ */

.az-hero-geo {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    user-select: none;
}

.az-hero-geo-1 {
    width: 220px; height: 220px;
    top: -60px; right: -50px;
    background: radial-gradient(circle, rgba(90, 147, 159, 0.12) 0%, transparent 70%);
}

.az-hero-geo-2 {
    width: 140px; height: 140px;
    bottom: -40px; right: 180px;
    background: radial-gradient(circle, rgba(248, 177, 51, 0.1) 0%, transparent 70%);
}

.az-hero-geo-3 {
    width: 80px; height: 80px;
    top: 30px; right: 140px;
    background: rgba(90, 147, 159, 0.08);
    border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════
   12. HOVER / MICRO INTERACTIONS
   ═══════════════════════════════════════════════════════ */

.az-hover-lift {
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.az-hover-lift:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px -4px rgba(12, 106, 123, 0.14) !important;
}

@media (prefers-reduced-motion: reduce) {
    .az-hover-lift,
    .az-hover-lift:hover {
        transform: none !important;
        transition: none !important;
    }
}

/* ═══════════════════════════════════════════════════════
   13. TIMELINE / ACTIVITY LOG
   ═══════════════════════════════════════════════════════ */

.az-timeline-item {
    display: flex;
    gap: 0.9rem;
    padding: 0.85rem 0;
    position: relative;
}

.az-timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 50px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, #DDE8EA, transparent);
}

.az-timeline-dot {
    width: 32px; height: 32px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════
   14. MISCELLANEOUS UTILITY CLASSES
   ═══════════════════════════════════════════════════════ */

.az-divider {
    border: none;
    height: 1px;
    background: #DDE8EA;
    margin: 0;
}

.az-text-primary  { color: #1A2F33 !important; }
.az-text-muted    { color: #5D7B82 !important; }
.az-text-teal     { color: #0C6A7B !important; }
.az-text-cyan     { color: #5A939F !important; }
.az-text-gold     { color: #A0710E !important; }
.az-text-white    { color: #FEFEFE !important; }

.az-fw-5  { font-weight: 500 !important; }
.az-fw-6  { font-weight: 600 !important; }
.az-fw-7  { font-weight: 700 !important; }
.az-fw-8  { font-weight: 800 !important; }

/* ═══════════════════════════════════════════════════════
   15. TABLE HOVER
   ═══════════════════════════════════════════════════════ */

.annadzir-table-row:hover,
.az-table-row:hover {
    background-color: #F7FAFB !important;
}

/* Legacy card compat */
.annadzir-card {
    background-color: #FEFEFE !important;
    border: 1px solid #DDE8EA !important;
    border-radius: 1rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04) !important;
}

.annadzir-card:hover {
    border-color: #5A939F !important;
}

.annadzir-heading {
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif !important;
}

.annadzir-body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
}


/* ═══════════════════════════════════════════════════════════════
   16. APPROVED VISUAL PROTOTYPE SYSTEM (PHASE 2.1.6 IMPLEMENTATION)
   Matches design-preview/central-dashboard/ exactly down to the pixel
   ═══════════════════════════════════════════════════════════════ */

:root {
  --primary: #0C6A7B;
  --primary-hover: #095360;
  --primary-light: rgba(12, 106, 123, 0.08);
  --primary-border: rgba(12, 106, 123, 0.2);
  --secondary: #5A939F;
  --secondary-light: rgba(90, 147, 159, 0.1);
  --gold: #F8B133;
  --gold-hover: #e09b1f;
  --gold-light: rgba(248, 177, 51, 0.15);
  
  --mint: #DDF1ED;
  --mint-text: #0C6A7B;
  --soft-blue: #E8F1F8;
  --soft-blue-text: #2A6E9E;
  --warm-cream: #F5EFE4;
  --warm-cream-text: #925C18;
  --soft-lilac: #EFEAF8;
  --soft-lilac-text: #6A4DB3;

  --bg-canvas: #F4F8F8;
  --bg-card: #FEFEFE;
  --bg-sidebar: #F9FBFC;
  --border-color: #E1EAEB;
  --border-subtle: #EDF3F4;
  
  --text-main: #263B40;
  --text-muted: #71858A;
  --text-light: #9BB0B5;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(12, 106, 123, 0.04);
  --shadow-hover: 0 8px 24px rgba(12, 106, 123, 0.1);
}

/* Sidebar Custom Styling */
.fi-sidebar {
  background-color: var(--bg-sidebar) !important;
  border-right-color: var(--border-color) !important;
}

/* Active navigation item: Solid Stormy Teal pill */
.fi-sidebar-item-active .fi-sidebar-item-btn,
.fi-sidebar-item-active a {
  background-color: var(--primary) !important;
  color: #FEFEFE !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 14px rgba(12, 106, 123, 0.28) !important;
}

.fi-sidebar-item-active .fi-sidebar-item-btn svg,
.fi-sidebar-item-active .fi-sidebar-item-btn span,
.fi-sidebar-item-active a svg,
.fi-sidebar-item-active a span {
  color: #FEFEFE !important;
  font-weight: 700 !important;
}

.fi-sidebar-group-label {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--text-muted) !important;
}

/* Topbar Sticky and Clean */
.fi-topbar {
  background-color: #FEFEFE !important;
  border-bottom: 1px solid var(--border-color) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

/* Page Title & Main View Styling */
.fi-page-header-heading {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  letter-spacing: -0.02em !important;
}

/* ==========================================================================
   SECTION 1: WELCOME HERO CARD
   ========================================================================== */
.welcome-hero-card {
  position: relative;
  background: linear-gradient(135deg, #0C6A7B 0%, #084955 100%);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px -4px rgba(12, 106, 123, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.hero-gold-wave {
  position: absolute;
  top: 0;
  right: 180px;
  bottom: 0;
  width: 260px;
  pointer-events: none;
  opacity: 0.22;
}

.hero-school-silhouette {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 580px;
  pointer-events: none;
  opacity: 0.88;
  overflow: hidden;
  z-index: 1;
}

.hero-school-silhouette svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
}

.hero-left-col {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  max-width: 780px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(248, 177, 51, 0.2);
  border: 1px solid rgba(248, 177, 51, 0.45);
  color: #F8B133;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  width: fit-content;
}

.hero-hub-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--gold);
  box-shadow: 0 0 8px rgba(248, 177, 51, 0.7);
}

.hero-date-text {
  font-size: 12px;
  font-weight: 500;
  color: rgba(221, 241, 237, 0.85);
  letter-spacing: 0.02em;
}

.hero-salam {
  font-size: 14px;
  font-weight: 600;
  color: rgba(221, 241, 237, 0.9);
  letter-spacing: 0.01em;
}

.hero-title {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 800;
  color: #FEFEFE;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.hero-desc {
  font-size: 13.5px;
  color: rgba(221, 241, 237, 0.82);
  line-height: 1.55;
  margin: 0;
}

.smile-pills-strip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  margin-top: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
}

.smile-pills-strip::-webkit-scrollbar {
  display: none;
}

.smile-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(221, 241, 237, 0.8);
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-right: 0.2rem;
  flex-shrink: 0;
}

.smile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11px;
  backdrop-filter: blur(4px);
  color: #FEFEFE;
  white-space: nowrap;
  flex-shrink: 0;
}

.smile-chip .chip-letter {
  font-weight: 800;
  color: var(--gold);
}

.smile-chip .chip-word {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.hero-right-col {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.hero-glass-card {
  background: rgba(254, 254, 254, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  width: 275px;
  box-shadow: 0 12px 36px -4px rgba(12, 106, 123, 0.2), 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-sizing: border-box;
}

.glass-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.glass-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #DDF1ED;
  color: #0C6A7B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(12, 106, 123, 0.1);
}

.glass-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.glass-period-sub {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71858A;
}

.glass-period-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #0C6A7B;
  margin: 2px 0 0;
  line-height: 1.2;
}

.glass-term-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: #F4F8F8;
  border: 1px solid #E1EAEB;
  color: #263B40;
  font-size: 11px;
  font-weight: 600;
  width: fit-content;
}

.glass-term-badge .term-dot {
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: #10B981;
}

.glass-card-motto {
  margin-top: 0.25rem;
  padding: 0.65rem 0.75rem;
  background: #F4F8F8;
  border-left: 3px solid #F8B133;
  border-radius: 0 8px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.motto-header {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.motto-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5A939F;
}

.motto-text {
  font-size: 11.5px;
  font-style: italic;
  font-weight: 600;
  color: #263B40;
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   SECTION 2: BENTO STATISTICS GRID
   ========================================================================== */
.bento-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary);
}

.stat-card-splash {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 110px;
  height: 110px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  opacity: 0.45;
  pointer-events: none;
}

.splash-mint { background: var(--mint); }
.splash-blue { background: var(--soft-blue); }
.splash-lilac { background: var(--soft-lilac); }
.splash-gold { background: var(--warm-cream); }

.stat-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-number.stat-empty {
  color: var(--text-light);
  font-weight: 600;
}

.stat-icon-container {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box-mint { background: var(--mint); color: var(--primary); }
.icon-box-blue { background: var(--soft-blue); color: var(--soft-blue-text); }
.icon-box-lilac { background: var(--soft-lilac); color: var(--soft-lilac-text); }
.icon-box-gold { background: var(--warm-cream); color: var(--warm-cream-text); }

.stat-bottom-row {
  margin-top: 0.85rem;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.35rem;
}

.stat-subnote {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION 3: UNIT PENDIDIKAN (4 CARDS)
   ========================================================================== */
.section-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.section-action-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.section-action-link:hover {
  color: var(--primary-hover);
  transform: translateX(2px);
}

.units-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.unit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.45rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.unit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary);
}

.unit-wave-corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 140px;
  height: 95px;
  pointer-events: none;
  overflow: hidden;
  border-bottom-right-radius: var(--radius-lg);
  z-index: 0;
}

.unit-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.unit-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.card-sdit .unit-icon-box { background: var(--mint); color: var(--primary); }
.card-smp .unit-icon-box { background: var(--soft-blue); color: var(--soft-blue-text); }
.card-preschool .unit-icon-box { background: var(--soft-lilac); color: var(--soft-lilac-text); }
.card-pesantren .unit-icon-box { background: var(--warm-cream); color: var(--warm-cream-text); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.status-pill.resmi {
  background: #E8F8F2;
  color: #065F46;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.status-pill.resmi .pill-dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: #10B981;
}

.status-pill.provisional {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  text-transform: uppercase;
}

.status-pill.provisional .pill-dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--gold);
}

.unit-card-body {
  position: relative;
  z-index: 1;
  flex: 1;
}

.unit-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.unit-jenjang-tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.unit-desc-text {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.unit-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  position: relative;
  z-index: 1;
}

.unit-footer-status {
  color: var(--text-muted);
  font-size: 11px;
}

.unit-ssot-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   SECTION 4: ACTIVITY & INTEGRATION (2 COLUMNS)
   ========================================================================== */
.dashboard-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.65rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.panel-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.75rem;
}

.panel-header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.panel-header-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.panel-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin: 0;
}

.panel-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.35;
  margin-bottom: 0;
}

.panel-header-action {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Empty State Illustration */
.empty-state-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  flex: 1;
}

.empty-state-illustration {
  margin-bottom: 1rem;
}

.empty-state-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.4rem;
}

.empty-state-desc {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.5;
  margin: 0;
}

/* Integration Table */
.integration-apps-table {
  width: 100%;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.15s ease;
}

.app-row:last-child {
  border-bottom: none;
}

.app-row:hover {
  background-color: var(--bg-canvas);
}

.app-icon-col {
  flex-shrink: 0;
}

.app-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-name-col {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--text-main);
  min-width: 130px;
}

.app-desc-col {
  flex: 1;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-status-col {
  flex-shrink: 0;
  text-align: right;
}

.status-badge-unconfigured {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  background: #F4F8F8;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.status-badge-unconfigured .status-dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--text-light);
}

/* ==========================================================================
   SECTION 5: QUICK ACTIONS BAR (BOTTOM)
   ========================================================================== */
.quick-actions-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.6rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-sizing: border-box;
  width: 100%;
}

.quick-actions-label-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.quick-action-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--warm-cream);
  color: var(--gold-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-action-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  display: block;
}

.quick-action-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.quick-actions-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background: #FEFEFE;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-btn svg {
  width: 15px;
  height: 15px;
  color: var(--secondary);
  transition: color 0.15s ease;
}

.quick-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(12, 106, 123, 0.04);
}

.quick-btn.active {
  background: var(--primary);
  color: #FEFEFE;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(12, 106, 123, 0.25);
}

.quick-btn.active svg {
  color: #FEFEFE;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS FOR WIDGETS
   ========================================================================== */
@media (max-width: 1024px) {
  .bento-stats-grid,
  .units-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .welcome-hero-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 2rem !important;
  }
  
  .hero-glass-card {
    width: 100% !important;
  }

  .hero-school-silhouette {
    opacity: 0.2 !important;
    width: 320px !important;
  }
}

@media (max-width: 640px) {
  .bento-stats-grid,
  .units-cards-grid {
    grid-template-columns: 1fr !important;
  }

  .quick-actions-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .quick-actions-buttons {
    width: 100% !important;
  }

  .quick-btn {
    flex: 1 1 calc(50% - 0.5rem) !important;
    justify-content: center !important;
  }

  .app-desc-col {
    display: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   17. TOPBAR & SIDEBAR CLEANUP
   ═══════════════════════════════════════════════════════════════ */

/* Hide duplicate brand logo & redundant user menu trigger in topbar */
.fi-topbar-start .annadzir-brand-logo,
.fi-topbar-end .fi-user-menu {
    display: none !important;
}

/* Sidebar Active Item Pill (Solid Stormy Teal #0C6A7B) */
.fi-sidebar-item.fi-active .fi-sidebar-item-btn,
li.fi-sidebar-item.fi-active > a {
    background-color: #0C6A7B !important;
    color: #FEFEFE !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(12, 106, 123, 0.28) !important;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-btn .fi-sidebar-item-label,
.fi-sidebar-item.fi-active .fi-sidebar-item-btn .fi-sidebar-item-icon,
li.fi-sidebar-item.fi-active > a span,
li.fi-sidebar-item.fi-active > a svg {
    color: #FEFEFE !important;
    fill: none !important;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-btn:hover,
li.fi-sidebar-item.fi-active > a:hover {
    background-color: #095360 !important;
}

/* Sidebar Item Normal Styling */
.fi-sidebar-item-btn {
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}

.fi-sidebar-item-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #263B40 !important;
}

.fi-sidebar-item-icon {
    color: #5A939F !important;
}

.fi-sidebar-item-btn:hover {
    background-color: rgba(12, 106, 123, 0.05) !important;
    color: #0C6A7B !important;
}

.fi-sidebar-item-btn:hover .fi-sidebar-item-icon {
    color: #0C6A7B !important;
}

/* ═══════════════════════════════════════════════════════════════
   18. FILAMENT RESOURCE THEMING (MODERN SAAS BENTO STANDARDS)
   ═══════════════════════════════════════════════════════════════ */

/* Page Headers & Titles */
.fi-header-heading {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #263B40 !important;
    letter-spacing: -0.02em !important;
}

.fi-header-subheading {
    font-size: 0.875rem !important;
    color: #71858A !important;
    margin-top: 0.25rem !important;
}

/* Filament Sections & Cards */
.fi-section,
.fi-ta-ctn {
    background-color: #FEFEFE !important;
    border: 1px solid #E1EAEB !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

.fi-section-header-heading {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0C6A7B !important;
}

.fi-section-header-description {
    font-size: 0.8125rem !important;
    color: #71858A !important;
}

/* Filament Table Styling */
.fi-ta-header-toolbar {
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid #E1EAEB !important;
}

.fi-ta-header-cell {
    background-color: #F4F8F8 !important;
    color: #263B40 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid #E1EAEB !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.fi-ta-row {
    transition: background-color 0.12s ease !important;
}

.fi-ta-row:hover {
    background-color: rgba(12, 106, 123, 0.025) !important;
}

.fi-ta-cell {
    border-bottom: 1px solid #F0F5F6 !important;
    font-size: 0.84rem !important;
    color: #263B40 !important;
}

/* Filament Form Inputs */
.fi-input-wrp {
    border-radius: 8px !important;
    border-color: #E1EAEB !important;
    background-color: #FEFEFE !important;
    transition: all 0.15s ease !important;
}

.fi-input-wrp:focus-within {
    border-color: #0C6A7B !important;
    box-shadow: 0 0 0 3px rgba(12, 106, 123, 0.15) !important;
}

.fi-fo-field-wrp-label label {
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    color: #263B40 !important;
    margin-bottom: 0.25rem !important;
}

.fi-fo-field-wrp-helper-text {
    font-size: 0.75rem !important;
    color: #71858A !important;
}

/* ═══════════════════════════════════════════════════════════════
   18.1 FILAMENT CRUD & ACTION BUTTONS — STORMY TEAL & THEME SYNC
   ═══════════════════════════════════════════════════════════════ */

/* 1. Primary Solid Buttons (New, Tambah, Create, Simpan, Save, Submit, Filter Apply) */
.fi-btn.fi-color-primary,
.fi-color-primary.fi-btn,
button.fi-btn.fi-color-primary,
a.fi-btn.fi-color-primary,
.fi-ac-btn-action.fi-color-primary {
    background-color: #0C6A7B !important;
    border: 1px solid #0C6A7B !important;
    color: #FEFEFE !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.84rem !important;
    box-shadow: 0 2px 8px rgba(12, 106, 123, 0.22) !important;
    transition: all 0.15s ease !important;
}

.fi-btn.fi-color-primary span,
.fi-btn.fi-color-primary svg,
.fi-color-primary.fi-btn span,
.fi-color-primary.fi-btn svg,
.fi-ac-btn-action.fi-color-primary span,
.fi-ac-btn-action.fi-color-primary svg {
    color: #FEFEFE !important;
    stroke: currentColor !important;
}

.fi-btn.fi-color-primary:hover,
.fi-color-primary.fi-btn:hover,
button.fi-btn.fi-color-primary:hover,
a.fi-btn.fi-color-primary:hover,
.fi-ac-btn-action.fi-color-primary:hover {
    background-color: #095360 !important;
    border-color: #095360 !important;
    color: #FEFEFE !important;
    box-shadow: 0 4px 14px rgba(12, 106, 123, 0.35) !important;
    transform: translateY(-1px) !important;
}

/* 2. Outlined Primary Buttons */
.fi-btn.fi-outlined.fi-color-primary,
.fi-color-primary.fi-btn.fi-outlined {
    background-color: transparent !important;
    border: 1.5px solid #0C6A7B !important;
    color: #0C6A7B !important;
    box-shadow: none !important;
}

.fi-btn.fi-outlined.fi-color-primary span,
.fi-btn.fi-outlined.fi-color-primary svg {
    color: #0C6A7B !important;
}

.fi-btn.fi-outlined.fi-color-primary:hover,
.fi-color-primary.fi-btn.fi-outlined:hover {
    background-color: #F4F8F8 !important;
    border-color: #095360 !important;
    color: #095360 !important;
}

/* 3. Table Actions & Link Actions (Edit, Lihat, Detail, Ubah) */
.fi-ta-action.fi-color-primary,
.fi-link.fi-color-primary,
.fi-link-action.fi-color-primary,
.fi-ta-action:hover {
    color: #0C6A7B !important;
    font-weight: 600 !important;
}

.fi-ta-action.fi-color-primary:hover,
.fi-link.fi-color-primary:hover {
    color: #5A939F !important;
}

/* 4. Table Filter, Column Manager & Secondary Action Buttons */
.fi-ac-btn-group,
.fi-ta-header-toolbar button,
.fi-ta-filter-trigger {
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}

/* 5. Pagination Active Item */
.fi-pagination-item-active button,
.fi-pagination-record-selected,
.fi-pagination button[aria-current="page"] {
    background-color: #0C6A7B !important;
    border-color: #0C6A7B !important;
    color: #FEFEFE !important;
    font-weight: 700 !important;
}

/* 6. Form Checkbox, Radio, and Switch Input Theme Sync */
.fi-checkbox-input:checked,
.fi-fo-checkbox:checked,
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: #0C6A7B !important;
    border-color: #0C6A7B !important;
}

.fi-fo-field-wrp:focus-within input,
.fi-fo-field-wrp:focus-within select,
.fi-input:focus,
.fi-select:focus {
    border-color: #0C6A7B !important;
    outline-color: #0C6A7B !important;
    box-shadow: 0 0 0 2px rgba(12, 106, 123, 0.15) !important;
}

/* 7. Tabs Active Indicator (Resource / Form Tabs) */
.fi-tabs-item-active,
.fi-tabs-item.fi-active,
.fi-tabs-item[aria-selected="true"] {
    color: #0C6A7B !important;
    border-bottom-color: #0C6A7B !important;
    font-weight: 700 !important;
}

/* Filament Modals */
.fi-modal-window {
    border-radius: 16px !important;
    border: 1px solid #E1EAEB !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.fi-modal-heading {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800 !important;
    color: #0C6A7B !important;
}
