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

:root {
    --sai-amber:      #F59E0B;
    --sai-amber-dark: #D97706;
    --sai-amber-100:  #FEF3C7;
    --c-border:       #E2E8F0;
}

body, .app-default { font-family: 'Plus Jakarta Sans', sans-serif !important; }

/* ── Background ── */
#sai-bg::after {
    content: '';
    position: absolute; inset: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(80, 80, 80, 0.25);
}
#kt_app_root { position: relative; z-index: 1; }

/* ─── SIDEBAR ─── */
.app-sidebar {
    background: rgba(255, 255, 255, 0.84) !important;
    backdrop-filter: blur(24px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.60) !important;
    box-shadow: 4px 0 28px rgba(0, 0, 0, 0.07) !important;
}
.app-sidebar-logo {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
    background: transparent !important;
}

/* Menu link default */
.app-sidebar .menu .menu-link {
    color: #475569 !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: background 0.18s, color 0.18s, transform 0.15s !important;
}
.app-sidebar .menu .menu-link:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #1E293B !important;
    transform: translateX(2px) !important;
}
.app-sidebar .menu .menu-link::before,
.app-sidebar .menu .menu-link::after { display: none !important; }

/* Accordion open (non-active) */
.app-sidebar .menu .menu-item.show:not(.here) > .menu-link {
    color: #334155 !important;
    background-color: rgba(0, 0, 0, 0.04) !important;
}

/* Active / Here — orange */
.app-sidebar .menu .menu-item.here > .menu-link,
.app-sidebar .menu .menu-item.show.here > .menu-link,
.app-sidebar .menu .menu-link.active {
    background: linear-gradient(135deg, #F59E0B, #D97706) !important;
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
    backdrop-filter: blur(14px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    transform: none !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.30),
        0 4px 14px rgba(217, 119, 6, 0.40),
        0 1px 3px rgba(0, 0, 0, 0.10) !important;
}

/* Icons */
.app-sidebar .menu-icon i { color: #94A3B8 !important; }
.app-sidebar .menu .menu-item.show:not(.here) > .menu-link .menu-icon i { color: #64748B !important; }
.app-sidebar .menu .menu-item.here > .menu-link .menu-icon i,
.app-sidebar .menu .menu-link.active .menu-icon i { color: #FFFFFF !important; }

/* Title & bullet */
.app-sidebar .menu-title { color: inherit !important; font-size: 13px !important; font-weight: inherit !important; }
.app-sidebar .bullet-dot { background-color: #CBD5E1 !important; }
.app-sidebar .menu-link.active .bullet-dot { background-color: #FFFFFF !important; }

/* Sub-items */
.app-sidebar .menu-sub .menu-link { color: #64748B !important; font-size: 12.5px !important; }
.app-sidebar .menu-sub .menu-link:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #1E293B !important;
    transform: translateX(2px) !important;
}
.app-sidebar .menu-sub .menu-link.active {
    background: linear-gradient(135deg, rgba(245,158,11,0.22), rgba(217,119,6,0.18)) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    color: #92400E !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}
.app-sidebar .menu-sub .menu-link.active .bullet-dot { background-color: #D97706 !important; }

/* Chevron */
.app-sidebar .menu-arrow::after { border-color: #CBD5E1 !important; }
.app-sidebar .menu-accordion.show > .menu-link .menu-arrow::after { border-color: #94A3B8 !important; }

/* Scrollbar */
.app-sidebar ::-webkit-scrollbar { width: 3px; }
.app-sidebar ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 2px; }

/* Sidebar footer */
#kt_app_sidebar_footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: transparent !important;
    padding-top: 12px !important;
    padding-bottom: 16px !important;
}
#kt_app_sidebar_footer .text-gray-500 { color: #94A3B8 !important; }
#kt_app_sidebar_footer .text-gray-800 { color: #1E293B !important; }
#kt_app_sidebar_footer .text-hover-primary:hover { color: #D97706 !important; }
#kt_app_sidebar_footer .menu-sub-dropdown {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(0,0,0,0.07) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.11) !important;
}
#kt_app_sidebar_footer .menu-sub-dropdown .menu-link { color: #374151 !important; }
#kt_app_sidebar_footer .menu-sub-dropdown .menu-link:hover { background: rgba(0,0,0,0.04) !important; color: #111827 !important; }
#kt_app_sidebar_footer .menu-sub-dropdown .text-muted { color: #94A3B8 !important; }
#kt_app_sidebar_footer .menu-sub-dropdown .separator { background: rgba(0,0,0,0.05) !important; }

/* ─── HEADER ─── */
#kt_app_header {
    background: linear-gradient(90deg, rgba(239,246,255,0.96), rgba(240,253,244,0.94), rgba(255,251,235,0.95)) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.80) !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05) !important;
}
#kt_app_header .btn-primary,
#kt_app_header [class*="btn-primary"] {
    background-color: var(--sai-amber-dark) !important;
    border-color: var(--sai-amber-dark) !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}
#kt_app_header .btn-primary:hover { background-color: #B45309 !important; border-color: #B45309 !important; }
#kt_app_header .form-control,
#kt_app_header input {
    background: rgba(255,255,255,0.70) !important;
    border-color: rgba(226,232,240,0.80) !important;
    border-radius: 10px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13px !important;
}

/* Search bar */
.sai-search-wrap {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(226, 232, 240, 0.90) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: box-shadow 0.18s, border-color 0.18s !important;
}
.sai-search-wrap:focus-within {
    border-color: rgba(59, 130, 246, 0.50) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.10) !important;
    background: rgba(255, 255, 255, 0.90) !important;
}
.sai-search-btn { background: transparent !important; border: none !important; padding-left: 14px !important; padding-right: 6px !important; }
.sai-search-icon { color: #94A3B8 !important; transition: color 0.15s !important; font-size: 17px !important; }
.sai-search-wrap:focus-within .sai-search-icon { color: #3B82F6 !important; }
.sai-search-input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 13px !important;
    color: #1E293B !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
.sai-search-input::placeholder { color: #94A3B8 !important; font-size: 12.5px !important; }
.sai-search-input:focus { box-shadow: none !important; border: none !important; }

/* ─── CONTENT ─── */
#kt_app_main {
    background: linear-gradient(160deg, rgba(239,246,255,0.97), rgba(240,253,244,0.95), rgba(255,251,235,0.96)) !important;
    backdrop-filter: blur(4px) !important;
}
#kt_app_content { background: transparent !important; }

.alert{
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04) !important;
}
/* Card */
.card {
    border: 1px solid rgba(226, 232, 240, 0.80) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04) !important;
    backdrop-filter: blur(8px) !important;
}
.card-header {
    border-bottom: 1px solid rgba(226, 232, 240, 0.60) !important;
    background: rgba(255,255,255,0.80) !important;
    border-radius: 16px 16px 0 0 !important;
}

/* Buttons */
.btn.btn-primary {
    background: linear-gradient(135deg, #F59E0B, #D97706) !important;
    border: none !important;
    border-radius: 9px !important;
    font-weight: 600 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.28) !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
}
.btn.btn-primary:hover,
.btn.btn-primary:focus {
    background: linear-gradient(135deg, #D97706, #B45309) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.36) !important;
}
.btn.btn-light-warning {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A) !important;
    color: #92400E !important;
    border: 1px solid #FCD34D !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(245,158,11,0.15) !important;
    transition: transform 0.12s !important;
}
.btn.btn-light-warning:hover { transform: translateY(-1px) !important; }
.btn.btn-light-danger,
.btn-danger {
    background: linear-gradient(135deg, #FEE2E2, #FECACA) !important;
    color: #991B1B !important;
    border: 1px solid #FCA5A5 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(239,68,68,0.15) !important;
    transition: transform 0.12s !important;
}
.btn.btn-light-danger:hover,
.btn-danger:hover { transform: translateY(-1px) !important; }

/* Forms */
.form-select, .form-control {
    border-color: var(--c-border) !important;
    border-radius: 9px !important;
    background-color: rgba(255,255,255,0.90) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13px !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}
.form-select:focus, .form-control:focus {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.10) !important;
}

/* Table */
.table thead th {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: .6px !important;
    text-transform: uppercase !important;
    color: #475569 !important;
    background: linear-gradient(180deg, #F8FAFC, #F1F5F9) !important;
    border-bottom: 2px solid #E2E8F0 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}
.table tbody tr:nth-child(even) { background-color: rgba(241, 245, 249, 0.50) !important; }
.table tbody tr { transition: background 0.12s, box-shadow 0.12s !important; }
.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(245,158,11,0.07), rgba(245,158,11,0.03)) !important;
    box-shadow: inset 3px 0 0 #F59E0B !important;
}

/* Badges */
.badge.badge-light-primary { background-color: #DBEAFE !important; color: #1E40AF !important; border-radius: 6px !important; }
.badge.badge-light-success { background-color: #D1FAE5 !important; color: #065F46 !important; border-radius: 6px !important; }
.badge.badge-light-warning { background-color: var(--sai-amber-100) !important; color: #92400E !important; border-radius: 6px !important; }

/* ─── FOOTER ─── */
#kt_app_footer {
    background: linear-gradient(90deg, rgba(239,246,255,0.96), rgba(240,253,244,0.94), rgba(255,251,235,0.95)) !important;
    border-top: 1px solid rgba(226, 232, 240, 0.80) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.04) !important;
}
#kt_app_footer .text-gray-900 { color: #64748B !important; }
#kt_app_footer a { color: #64748B !important; font-size: 11px !important; }
#kt_app_footer a:hover { color: var(--sai-amber-dark) !important; }

.w-30 {
    width: 30% !important;
}

.w-70 {
    width: 30% !important;
}

.min-w-10rem {
    min-width: 10rem !important;
}
