/*
 * Filament Admin Panel – Custom Theme
 * Extracted from AdminPanelProvider renderHook for browser-cacheability.
 */

/* ------------------------------------------------------------------ */
/* Google Font (Plus Jakarta Sans)                                     */
/* ------------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* ------------------------------------------------------------------ */
/* Modern Bright Executive Topbar Navigation                          */
/* ------------------------------------------------------------------ */
.fi-topbar {
    background: #ffffff !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.2s ease-in-out !important;
    height: 4rem !important;
}

.fi-topbar nav {
    height: 100% !important;
    align-items: center !important;
}

/* ------------------------------------------------------------------ */
/* Modern Bright Sidebar Aesthetic                                     */
/* ------------------------------------------------------------------ */
.fi-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 4px 0 20px 0 rgba(15, 23, 42, 0.03) !important;
}

.fi-sidebar-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1rem 1.25rem !important;
}

/* ------------------------------------------------------------------ */
/* Dual-Tone Brand Logo & Text                                         */
/* ------------------------------------------------------------------ */
.fi-logo,
.fi-sidebar-header .fi-brand,
.fi-sidebar-header span {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
}

/* ------------------------------------------------------------------ */
/* Sidebar Navigation Group Labels                                     */
/* ------------------------------------------------------------------ */
.fi-sidebar-nav {
    gap: 0.25rem !important;
    padding-top: 0.5rem !important;
}

.fi-sidebar-group {
    margin-bottom: 0.2rem !important;
    padding: 0 0.4rem !important;
}

.fi-sidebar-group + .fi-sidebar-group {
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 0.4rem !important;
    margin-top: 0.35rem !important;
}

.fi-sidebar-group-btn,
.fi-sidebar-group-label,
.fi-sidebar-group-label span,
.fi-sidebar-group-btn span,
.fi-sidebar-group button span {
    color: #64748b !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    line-height: 1.2 !important;
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
}

.fi-sidebar-group-btn svg,
.fi-sidebar-group button svg {
    color: #94a3b8 !important;
    width: 1rem !important;
    height: 1rem !important;
}

.fi-sidebar-group-items,
ul.fi-sidebar-group-items {
    gap: 0.1rem !important;
    margin-top: 0.15rem !important;
}

/* ------------------------------------------------------------------ */
/* Navigation Items - Clean, Compact, Bright & Legible                 */
/* ------------------------------------------------------------------ */
.fi-sidebar-item-btn,
.fi-sidebar-item-button,
.fi-sidebar-item a,
.fi-sidebar-item button,
.fi-sidebar-nav-item a,
.fi-sidebar-nav-item button {
    border-radius: 0.5rem !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0.06rem 0.15rem !important;
    padding: 0.32rem 0.65rem !important;
    min-height: 2.1rem !important;
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    line-height: 1.25rem !important;
    background-color: transparent !important;
    display: flex !important;
    align-items: center !important;
}

.fi-sidebar-item-btn svg,
.fi-sidebar-item-button svg,
.fi-sidebar-item a svg,
.fi-sidebar-item button svg,
.fi-sidebar-nav-item a svg,
.fi-sidebar-nav-item button svg {
    width: 1.1rem !important;
    height: 1.1rem !important;
    color: #64748b !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0 !important;
    margin-right: 0.55rem !important;
}

.fi-sidebar-item-btn span,
.fi-sidebar-item-button span,
.fi-sidebar-item a span,
.fi-sidebar-item button span,
.fi-sidebar-item-label {
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
}

/* Hover State */
.fi-sidebar-item-btn:hover,
.fi-sidebar-item-button:hover,
.fi-sidebar-item a:hover,
.fi-sidebar-item button:hover,
.fi-sidebar-nav-item a:hover,
.fi-sidebar-nav-item button:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    transform: translateX(3px) !important;
}

.fi-sidebar-item-btn:hover span,
.fi-sidebar-item-button:hover span,
.fi-sidebar-item a:hover span,
.fi-sidebar-item button:hover span {
    color: #0f172a !important;
}

.fi-sidebar-item-btn:hover svg,
.fi-sidebar-item-button:hover svg,
.fi-sidebar-item a:hover svg,
.fi-sidebar-item button:hover svg {
    color: #2563eb !important;
}

/* ------------------------------------------------------------------ */
/* Modern Vibrant Active Item Pill                                     */
/* ------------------------------------------------------------------ */
.fi-sidebar-item-active > a,
.fi-sidebar-item-active > button,
.fi-sidebar-item.fi-active > a,
.fi-sidebar-item.fi-active > button,
.fi-sidebar-item-active .fi-sidebar-item-btn,
.fi-sidebar-item-active .fi-sidebar-item-button,
.fi-sidebar-nav-item.fi-active a,
.fi-sidebar-item[aria-current="page"],
.fi-sidebar-item-active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border-radius: 0.65rem !important;
    box-shadow: 0 4px 14px -1px rgba(37, 99, 235, 0.35) !important;
}

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

.fi-sidebar-item-active svg,
.fi-sidebar-item.fi-active svg,
.fi-sidebar-item-active .fi-sidebar-item-btn svg,
.fi-sidebar-item-active .fi-sidebar-item-button svg {
    color: #ffffff !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)) !important;
}


/* ------------------------------------------------------------------ */
/* Elevated Stats Cards                                                */
/* ------------------------------------------------------------------ */
.fi-wi-stats-overview-stat {
    border-radius: 1rem !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.2s ease !important;
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px -5px rgba(15, 23, 42, 0.1) !important;
}

.dark .fi-wi-stats-overview-stat {
    background: #0f172a !important;
    border: 1px solid rgba(30, 41, 59, 0.9) !important;
}

/* ------------------------------------------------------------------ */
/* Modern Tables                                                       */
/* ------------------------------------------------------------------ */
.fi-ta-ctn {
    border-radius: 1rem !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    overflow: hidden !important;
}

.dark .fi-ta-ctn {
    background: #0f172a !important;
    border: 1px solid rgba(30, 41, 59, 0.9) !important;
}

/* ------------------------------------------------------------------ */
/* Sleek Buttons                                                       */
/* ------------------------------------------------------------------ */
.fi-btn {
    border-radius: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    transition: all 0.15s ease !important;
}

.fi-btn-primary {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3) !important;
}

.fi-btn-primary:hover {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%) !important;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* ------------------------------------------------------------------ */
/* Login Page Theme                                                    */
/* ------------------------------------------------------------------ */
body.fi-body-simple,
.fi-simple-layout {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.55)),
        url("/images/airplane_bg.png") no-repeat center center fixed !important;
    background-size: cover !important;
    min-height: 100vh !important;
}

.fi-simple-main,
.fi-simple-main-ctn,
div.fi-simple-main-ctn {
    background-color: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(16px) !important;
}

/* ------------------------------------------------------------------ */
/* Full Width Layout & Table Expansion                                 */
/* ------------------------------------------------------------------ */
.fi-main-ctn,
.fi-page,
.fi-page>div,
.fi-ta-ctn,
.fi-ta-content {
    max-width: 100% !important;
    width: 100% !important;
}

.fi-ta-table {
    width: 100% !important;
    table-layout: auto !important;
}