/* Custom Filament Admin Premium Theme Styling */

:root {
    --brand-primary: #007a8c;
    --brand-success: #008f39;
    --brand-navy: #002d62;
    --brand-accent: #00acac;
}

/* 1. Global Page Layout & Backgrounds */
body {
    background-color: #f8fafc !important;
}

.dark body {
    background-color: #090d16 !important;
}

main.fi-main {
    background: radial-gradient(circle at 5% 10%, rgba(0, 122, 140, 0.04) 0%, rgba(248, 250, 252, 1) 70%) !important;
    min-height: 100vh !important;
    padding: 2rem !important;
}

.dark main.fi-main {
    background: radial-gradient(circle at 5% 10%, rgba(0, 122, 140, 0.06) 0%, rgba(9, 13, 22, 1) 70%) !important;
}

/* Page Header Custom Accent Line */
.fi-header {
    margin-bottom: 2rem !important;
    position: relative;
    padding-bottom: 0.75rem !important;
}

.fi-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-success) 100%);
    border-radius: 9999px;
}

/* 2. Navigation Sidebar Customization */
.fi-sidebar {
    background-color: #090e1a !important; /* Deep dark navy background */
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Sidebar Brand Header */
.fi-sidebar-header {
    background-color: #060a14 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding: 1.5rem !important;
}

.fi-sidebar-header-brand {
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
    color: #ffffff !important;
}

/* Sidebar Navigation Items */
.fi-sidebar-item-button {
    border-radius: 0.75rem !important;
    margin-left: 0.75rem !important;
    margin-right: 0.75rem !important;
    padding: 0.6rem 1rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.fi-sidebar-item-button:hover {
    background-color: rgba(0, 172, 172, 0.08) !important;
    color: #00acac !important;
}

/* Active Sidebar Navigation Item */
.fi-sidebar-item-button.fi-active {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-success) 100%) !important;
    box-shadow: 0 4px 15px -3px rgba(0, 122, 140, 0.4) !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

.fi-sidebar-item-button.fi-active * {
    color: #ffffff !important;
}

/* Sidebar Group Headers */
.fi-sidebar-group-label {
    text-transform: uppercase !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.1em !important;
    color: #475569 !important;
    font-weight: 700 !important;
    margin-top: 1.5rem !important;
    padding-left: 1.5rem !important;
}

/* 3. Top Header (Topbar) Styling */
.fi-topbar {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(0, 122, 140, 0.08) !important;
}

.dark .fi-topbar {
    background-color: rgba(9, 14, 26, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* 4. Global Card, Form & Table Container Styling */
.fi-ta-ctn, .fi-section, .fi-fo-layout {
    border-radius: 1.25rem !important;
    border: 1px solid rgba(0, 122, 140, 0.06) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 10px -6px rgba(0, 122, 140, 0.02) !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 1.5rem !important;
}

.dark .fi-ta-ctn, .dark .fi-section, .dark .fi-fo-layout {
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3) !important;
}

.fi-ta-ctn:hover, .fi-section:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 122, 140, 0.04) !important;
}

/* Table Header Row */
.fi-ta-header-cell {
    background-color: #f8fafc !important;
    font-weight: 700 !important;
    color: #334155 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    padding: 1rem !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

.dark .fi-ta-header-cell {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-bottom: 2px solid #334155 !important;
}

/* Table Row Hover & Style */
.fi-ta-row {
    transition: background-color 0.2s ease !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.dark .fi-ta-row {
    border-bottom: 1px solid #1e293b !important;
}

.fi-ta-row:hover {
    background-color: rgba(0, 122, 140, 0.02) !important;
}

.dark .fi-ta-row:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

/* 5. Modern Badges & Status Indicators */
.fi-badge {
    border-radius: 9999px !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.75rem !important;
    letter-spacing: 0.025em !important;
    font-size: 0.75rem !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
}

/* Custom Success/Teal Badge colors */
.fi-badge-color-success {
    background-color: rgba(0, 143, 57, 0.1) !important;
    color: #008f39 !important;
}

.fi-badge-color-primary, .fi-badge-color-info {
    background-color: rgba(0, 122, 140, 0.1) !important;
    color: #007a8c !important;
}

/* 6. Form Controls & Input Styling */
.fi-fo-field-wrapper label {
    font-weight: 600 !important;
    color: #334155 !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
}

.dark .fi-fo-field-wrapper label {
    color: #cbd5e1 !important;
}

.fi-input-wrp {
    border-radius: 0.75rem !important;
    border-color: #cbd5e1 !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dark .fi-input-wrp {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

.fi-input-wrp:focus-within {
    border-color: var(--brand-primary) !important;
    ring: 2px solid rgba(0, 122, 140, 0.2) !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 140, 0.25) !important;
}

/* Primary Action Buttons */
.fi-btn {
    border-radius: 0.75rem !important;
    padding: 0.6rem 1.25rem !important;
    font-weight: 600 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Primary buttons with logo gradients */
.fi-btn-color-primary, .fi-ac-btn-action {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-success) 100%) !important;
    box-shadow: 0 4px 12px rgba(0, 122, 140, 0.2) !important;
    border: none !important;
    color: #ffffff !important;
}

.fi-btn-color-primary:hover, .fi-ac-btn-action:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 15px rgba(0, 122, 140, 0.3) !important;
}

.fi-btn-color-primary:active, .fi-ac-btn-action:active {
    transform: translateY(0) !important;
}

/* 7. Dashboard Widgets Customize */
.fi-wi-widget {
    border-radius: 1.25rem !important;
    border: 1px solid rgba(0, 122, 140, 0.05) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 122, 140, 0.02) !important;
    background-color: #ffffff !important;
    overflow: hidden !important;
}

.dark .fi-wi-widget {
    background-color: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
}

.fi-wi-stats-overview-stat-wrp {
    background-color: #ffffff !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(0, 122, 140, 0.05) !important;
    transition: all 0.25s ease !important;
}

.dark .fi-wi-stats-overview-stat-wrp {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.03) !important;
}

.fi-wi-stats-overview-stat-wrp:hover {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 8px 20px rgba(0, 122, 140, 0.05) !important;
    transform: translateY(-2px) !important;
}

/* Stat Value & Title styling */
.fi-wi-stats-overview-stat-value {
    color: var(--brand-navy) !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
}

.dark .fi-wi-stats-overview-stat-value {
    color: #ffffff !important;
}

.fi-wi-stats-overview-stat-label {
    color: #64748b !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
}

/* 8. Tabs Customization */
.fi-tabs {
    border-bottom: 1px solid rgba(0, 122, 140, 0.1) !important;
    margin-bottom: 1.5rem !important;
}

.fi-tabs-item {
    font-weight: 600 !important;
    padding-bottom: 0.75rem !important;
    transition: all 0.2s ease !important;
}

.fi-tabs-item.fi-active {
    color: var(--brand-primary) !important;
    border-bottom: 2px solid var(--brand-primary) !important;
}
