/* ============================================
   Custom Filament Theme Styles
   ============================================ */

/* ============================================
   Typography & Base Styles
   ============================================ */
.fi-body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
}

.fi-section-header-heading,
.fi-header-heading {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ============================================
   Sidebar Enhancements
   ============================================ */
.fi-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: blur(10px);
}

/* Navigation Menu Items - Background Colors */
.fi-sidebar-nav-item {
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.2s ease;
    background-color: transparent;
    padding: 0.625rem 0.75rem;
}

.fi-sidebar-nav-item:hover {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.12) 0%, rgba(14, 165, 233, 0.06) 100%);
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.1);
}

.fi-sidebar-nav-item.is-active {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-left: 3px solid #0ea5e9;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
}

.fi-sidebar-nav-item-icon {
    color: #64748b;
    transition: color 0.2s ease;
}

.fi-sidebar-nav-item:hover .fi-sidebar-nav-item-icon {
    color: #0ea5e9;
}

.fi-sidebar-nav-item.is-active .fi-sidebar-nav-item-icon {
    color: #0ea5e9;
}

.fi-sidebar-nav-item-label {
    color: #475569;
    transition: color 0.2s ease;
}

.fi-sidebar-nav-item:hover .fi-sidebar-nav-item-label {
    color: #0ea5e9;
}

.fi-sidebar-nav-item.is-active .fi-sidebar-nav-item-label {
    color: #0ea5e9;
    font-weight: 500;
}

.fi-sidebar-group-label {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 0;
    padding: 0;
    background-color: transparent;
}

/* Sidebar group header (Admin, Master Data, etc.) */
.fi-sidebar-group-button {
    border-radius: 8px;
    margin: 2px 2px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    background-color: rgba(241, 245, 249, 0.6);
    width: 100%;
}

.fi-sidebar-group.fi-active .fi-sidebar-group-button {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-left: 3px solid #0ea5e9;
}

.fi-sidebar-group-collapse-button {
    background-color: rgba(226, 232, 240, 0.9);
    border-radius: 6px;
    height: 2rem;
    width: 2rem;
    min-height: 2rem;
    min-width: 2rem;
    padding: 0;
}

/* ============================================
   Main Content Area
   ============================================ */
.fi-simple-main {
    background-color: #f8fafc;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.03) !important;
}

.fi-main {
    padding: 1.5rem;
}

/* ============================================
   Cards & Panels
   ============================================ */
.fi-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.fi-section-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   Tables
   ============================================ */
.fi-ta-table {
    border-radius: 8px;
    overflow: visible;
}

.fi-ta-header-cell {
    background-color: #f8fafc;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    padding: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.fi-ta-row {
    transition: all 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.fi-ta-row:hover {
    background-color: #f8fafc;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.fi-ta-cell {
    padding: 1rem;
    color: #334155;
}

/* Declaration Resource - Row Highlighting for ETA/ETD Date within 5 days */
.fi-ta-row.declaration-eta-highlight {
    background: linear-gradient(90deg, #fef9c3 0%, #fef3c7 100%) !important;
    border-left: 4px solid #eab308 !important;
    box-shadow: 0 2px 4px rgba(234, 179, 8, 0.1);
}

.dark .fi-ta-row.declaration-eta-highlight {
    background: linear-gradient(90deg, rgba(113, 63, 18, 0.25) 0%, rgba(113, 63, 18, 0.15) 100%) !important;
    border-left: 4px solid #eab308 !important;
}

.fi-ta-row.declaration-eta-highlight:hover {
    background: linear-gradient(90deg, #fef08a 0%, #fde68a 100%) !important;
    transform: none;
}

.dark .fi-ta-row.declaration-eta-highlight:hover {
    background: linear-gradient(90deg, rgba(113, 63, 18, 0.35) 0%, rgba(113, 63, 18, 0.25) 100%) !important;
}

/* More specific targeting for Filament table rows */
.fi-ta-table tbody tr.fi-ta-row.declaration-eta-highlight {
    background: linear-gradient(90deg, #fef9c3 0%, #fef3c7 100%) !important;
    border-left: 4px solid #eab308 !important;
}

.dark .fi-ta-table tbody tr.fi-ta-row.declaration-eta-highlight {
    background: linear-gradient(90deg, rgba(113, 63, 18, 0.25) 0%, rgba(113, 63, 18, 0.15) 100%) !important;
    border-left: 4px solid #eab308 !important;
}

.fi-ta-table tbody tr.fi-ta-row.declaration-eta-highlight:hover {
    background: linear-gradient(90deg, #fef08a 0%, #fde68a 100%) !important;
}

.dark .fi-ta-table tbody tr.fi-ta-row.declaration-eta-highlight:hover {
    background: linear-gradient(90deg, rgba(113, 63, 18, 0.35) 0%, rgba(113, 63, 18, 0.25) 100%) !important;
}

/* ============================================
   Forms & Inputs
   ============================================ */
.fi-input-wrp {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.fi-input-wrp:focus-within {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.fi-input {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
}

.fi-select-input {
    border-radius: 8px;
}

/* ============================================
   Buttons
   ============================================ */
.fi-btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fi-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fi-btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
}

.fi-btn-primary:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

/* ============================================
   Stats Widgets
   ============================================ */
.fi-stats-overview-stat {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.fi-stats-overview-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0ea5e9;
}

.fi-stats-overview-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.fi-stats-overview-stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 0.5rem;
}

.fi-stats-overview-stat-description {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* ============================================
   Badges & Tags
   ============================================ */
.fi-badge {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* ============================================
   Navigation Header
   ============================================ */
.fi-topbar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.fi-topbar-nav {
    padding: 0.75rem 1.5rem;
}

/* ============================================
   Dark Mode Styles
   ============================================ */
.dark .fi-sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border-right: 1px solid #334155 !important;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3) !important;
}

.dark .fi-sidebar-nav-item {
    background-color: transparent;
}

.dark .fi-sidebar-nav-item:hover {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0.1) 100%);
    box-shadow: 0 2px 4px rgba(56, 189, 248, 0.15);
}

.dark .fi-sidebar-nav-item.is-active {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.3) 0%, rgba(56, 189, 248, 0.15) 100%);
    border-left: 3px solid #38bdf8;
    box-shadow: 0 2px 6px rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}

.dark .fi-sidebar-nav-item-icon {
    color: #94a3b8;
}

.dark .fi-sidebar-nav-item:hover .fi-sidebar-nav-item-icon {
    color: #38bdf8;
}

.dark .fi-sidebar-nav-item.is-active .fi-sidebar-nav-item-icon {
    color: #38bdf8;
}

.dark .fi-sidebar-nav-item-label {
    color: #cbd5e1;
}

.dark .fi-sidebar-nav-item:hover .fi-sidebar-nav-item-label {
    color: #38bdf8;
}

.dark .fi-sidebar-nav-item.is-active .fi-sidebar-nav-item-label {
    color: #38bdf8;
}

.dark .fi-sidebar-group-label {
    color: #94a3b8;
    background-color: rgba(30, 41, 59, 0.5);
}

.dark .fi-simple-main {
    background-color: #0f172a;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

.dark .fi-section {
    background: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dark .fi-section-header {
    border-bottom: 1px solid #334155;
}

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

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

.dark .fi-ta-row:hover {
    background-color: #1e293b;
}

.dark .fi-ta-cell {
    color: #e2e8f0;
}

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

.dark .fi-input-wrp:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.dark .fi-stats-overview-stat {
    background: #1e293b;
    border: 1px solid #334155;
}

.dark .fi-stats-overview-stat:hover {
    border-color: #38bdf8;
}

.dark .fi-stats-overview-stat-value {
    color: #f1f5f9;
}

.dark .fi-stats-overview-stat-label {
    color: #cbd5e1;
}

.dark .fi-stats-overview-stat-description {
    color: #94a3b8;
}

.dark .fi-topbar {
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

/* ============================================
   Responsive Enhancements
   ============================================ */
@media (max-width: 768px) {
    .fi-main {
        padding: 1rem;
    }
    
    .fi-section {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .fi-stats-overview-stat {
        padding: 1rem;
    }
}

/* ============================================
   Loading States
   ============================================ */
.fi-loading-indicator {
    color: #0ea5e9;
}

/* ============================================
   Notifications
   ============================================ */
.fi-notification {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

.dark .fi-notification {
    border: 1px solid #334155;
}

/* ============================================
   Modals & Overlays
   ============================================ */
.fi-modal {
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark .fi-modal {
    background: #1e293b;
    border: 1px solid #334155;
}

/* ============================================
   Form Action Buttons (Create/Edit Pages)
   ============================================ */
/* Make form action buttons inline instead of full-width */
.fi-ac-actions,
.fi-page-actions,
.fi-form-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.fi-ac-action,
.fi-page-action,
.fi-form-action {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 120px !important;
}

/* Ensure buttons are properly styled */
.fi-ac-action .fi-btn,
.fi-page-action .fi-btn,
.fi-form-action .fi-btn,
.fi-ac-actions .fi-btn,
.fi-page-actions .fi-btn,
.fi-form-actions .fi-btn {
    width: auto !important;
    min-width: 120px;
    padding: 0.625rem 1.5rem;
}

/* Target Filament 3.x form actions container */
.fi-simple-page-actions,
.fi-page-actions-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
}

.fi-simple-page-actions > *,
.fi-page-actions-container > * {
    flex: 0 0 auto !important;
    width: auto !important;
}

.fi-simple-page-actions .fi-btn,
.fi-page-actions-container .fi-btn {
    width: auto !important;
    min-width: 120px;
}

/* Responsive: Stack on mobile */
@media (max-width: 640px) {
    .fi-ac-actions,
    .fi-page-actions,
    .fi-form-actions,
    .fi-simple-page-actions,
    .fi-page-actions-container {
        flex-direction: column !important;
    }
    
    .fi-ac-action,
    .fi-page-action,
    .fi-form-action,
    .fi-simple-page-actions > *,
    .fi-page-actions-container > * {
        width: 100% !important;
    }
    
    .fi-ac-action .fi-btn,
    .fi-page-action .fi-btn,
    .fi-form-action .fi-btn,
    .fi-simple-page-actions .fi-btn,
    .fi-page-actions-container .fi-btn {
        width: 100% !important;
    }
}

/* ============================================
   Login Page Styling
   ============================================ */
/* Login Page Background */
.fi-simple-page {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #fce7f3 100%);
    min-height: auto;
    display: block;
    padding: 1.75rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.fi-simple-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Login Card Container */
.fi-simple-main-ctn {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 42rem;
    padding: 0.75rem 1.5rem;
}

/* Login Card */
.fi-simple-main {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-radius: 24px !important;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.5) !important;
    padding: 1.5rem 3rem !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.fi-simple-main:hover {
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
}

/* Login Header/Branding */
.fi-simple-header {
    text-align: center;
    margin-bottom: 1rem;
}

.fi-simple-header-heading {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.fi-simple-header-subheading {
    color: #64748b;
    font-size: 0.9375rem;
    font-weight: 400;
}

/* Ensure action dropdowns render above table actions */
.fi-dropdown-panel {
    z-index: 1000;
}

/* Login Form */
.fi-simple-form {
    margin-top: 1rem;
}

/* Form Fields */
.fi-simple-form-section {
    margin-bottom: 1rem;
}

.fi-input-wrp {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: text;
}

.fi-input-wrp:hover {
    border-color: #cbd5e1;
}

.fi-input-wrp:focus-within {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    background: white;
}

.fi-input {
    padding: 0.75rem 1.125rem;
    font-size: 0.9375rem;
    color: #0f172a !important;
    caret-color: #0ea5e9 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: text;
}

.fi-input:focus {
    color: #0f172a !important;
    caret-color: #0ea5e9 !important;
    background: transparent !important;
}

.fi-input::placeholder {
    color: #94a3b8 !important;
    opacity: 0.7;
}

/* Password visibility icon sizing */
.fi-input-wrp-suffix {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.fi-input-wrp-suffix .fi-icon-btn {
    height: 2rem;
    width: 2rem;
    min-height: 2rem;
    min-width: 2rem;
    padding: 0.25rem;
}

.fi-input-wrp-suffix .fi-icon-btn-icon {
    height: 1rem;
    width: 1rem;
}

/* Ensure input fields are visible and editable */
input[type="email"],
input[type="password"],
input[type="text"] {
    color: #0f172a !important;
    caret-color: #0ea5e9 !important;
    background: transparent !important;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    color: #0f172a !important;
    caret-color: #0ea5e9 !important;
    outline: none !important;
}

/* Login Button */
.fi-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.3);
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.fi-btn:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 6px 12px -2px rgba(14, 165, 233, 0.4);
    transform: translateY(-1px);
}

.fi-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(14, 165, 233, 0.3);
}

/* Links (Forgot Password, etc.) */
.fi-simple-link {
    color: #0ea5e9;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.fi-simple-link:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* Error Messages */
.fi-simple-notification {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    color: #991b1b;
    font-size: 0.875rem;
}

/* Success Messages */
.fi-simple-notification-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Checkbox Styling */
.fi-checkbox-input {
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    transition: all 0.2s ease;
}

.fi-checkbox-input:checked {
    background: #0ea5e9;
    border-color: #0ea5e9;
}

/* Label Styling */
.fi-label {
    font-weight: 500;
    color: #334155;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Divider */
.fi-simple-divider {
    margin: 2rem 0;
    border-top: 1px solid #e2e8f0;
}

/* Dark Mode Login Page */
.dark .fi-simple-page {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%);
}

.dark .fi-simple-page::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.dark .fi-simple-main {
    background: rgba(30, 41, 59, 0.95) !important;
    border: 1px solid rgba(51, 65, 85, 0.5);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 10px 10px -5px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(51, 65, 85, 0.5) !important;
}

.dark .fi-simple-header-heading {
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark .fi-simple-header-subheading {
    color: #94a3b8;
}

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

.dark .fi-input-wrp:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
    background: #1e293b;
}

.dark .fi-input {
    color: #f1f5f9 !important;
    caret-color: #38bdf8 !important;
    background: transparent !important;
}

.dark .fi-input:focus {
    color: #f1f5f9 !important;
    caret-color: #38bdf8 !important;
    background: transparent !important;
}

.dark .fi-input::placeholder {
    color: #94a3b8 !important;
    opacity: 0.7;
}

/* Dark mode input fields */
.dark input[type="email"],
.dark input[type="password"],
.dark input[type="text"] {
    color: #f1f5f9 !important;
    caret-color: #38bdf8 !important;
    background: transparent !important;
}

.dark input[type="email"]:focus,
.dark input[type="password"]:focus,
.dark input[type="text"]:focus {
    color: #f1f5f9 !important;
    caret-color: #38bdf8 !important;
    outline: none !important;
}

.dark .fi-label {
    color: #cbd5e1;
}

.dark .fi-btn {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    box-shadow: 0 4px 6px -1px rgba(56, 189, 248, 0.3);
}

.dark .fi-btn:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 6px 12px -2px rgba(56, 189, 248, 0.4);
}

.dark .fi-simple-link {
    color: #38bdf8;
}

.dark .fi-simple-link:hover {
    color: #60a5fa;
}

.dark .fi-simple-notification {
    background: #7f1d1d;
    border-color: #991b1b;
    color: #fecaca;
}

.dark .fi-simple-divider {
    border-top-color: #334155;
}

/* Brand Logo Styling - Hidden */
.fi-simple-brand {
    display: none !important;
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Remember Me Checkbox */
.fi-checkbox {
    margin-top: 0.75rem;
}

.fi-checkbox-label {
    color: #64748b;
    font-size: 0.875rem;
}

.dark .fi-checkbox-label {
    color: #94a3b8;
}

/* Forgot Password Link */
.fi-simple-link-wrapper {
    text-align: center;
    margin-top: 1rem;
}

/* Loading State */
.fi-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Additional Login Card Animations */
.fi-simple-main {
    animation: slide-up 0.5s ease;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Icons */
.fi-input-icon {
    color: #94a3b8;
}

.fi-input-wrp:focus-within .fi-input-icon {
    color: #0ea5e9;
}

.dark .fi-input-icon {
    color: #64748b;
}

.dark .fi-input-wrp:focus-within .fi-input-icon {
    color: #38bdf8;
}

/* Responsive Login Page */
@media (max-width: 768px) {
    .fi-simple-main-ctn {
        max-width: 100%;
        padding: 1rem;
    }
    
    .fi-simple-main {
        padding: 1.75rem 2rem !important;
        border-radius: 16px !important;
    }
    
    .fi-simple-header-heading {
        font-size: 1.75rem;
    }
}

@media (max-width: 640px) {
    .fi-simple-main {
        padding: 1.5rem 1.5rem !important;
    }
}
