/* ============================================
   PRESENSI ADMIN - Enhanced UI/UX Styling
   Modern, Clean, and Proportional Design
   ============================================ */

/* ============================================
   NAVBAR - Enhanced Gradient & Spacing
   ============================================ */
.fi-topbar {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15) !important;
    padding: 1rem 1.5rem !important;
}

/* Dark Mode Navbar */
.dark .fi-topbar {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25) !important;
}

/* ============================================
   SIDEBAR - Enhanced Gradient & Spacing
   ============================================ */
.fi-sidebar {
    background: linear-gradient(180deg, #4f46e5 0%, #6366f1 100%) !important;
    box-shadow: 2px 0 12px rgba(99, 102, 241, 0.1) !important;
}

.dark .fi-sidebar {
    background: linear-gradient(180deg, #4338ca 0%, #4f46e5 100%) !important;
    box-shadow: 2px 0 12px rgba(79, 70, 229, 0.2) !important;
}

/* Sidebar Navigation Items - Better Spacing */
.fi-sidebar-nav-item {
    margin: 0.25rem 0.75rem !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
}

.fi-sidebar-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(2px) !important;
}

/* ============================================
   CONTENT AREA - Better Spacing & Proportions
   ============================================ */
.fi-main {
    padding: 2rem !important;
}

.fi-main-content {
    max-width: 100% !important;
}

/* Section Cards - Enhanced Spacing */
.fi-section {
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 1.5rem !important;
    padding: 1.5rem !important;
}

.dark .fi-section {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Form Fields - Better Spacing */
.fi-fo-field-wrp {
    margin-bottom: 1.25rem !important;
}

/* Input Fields - Better Proportions */
.fi-input {
    border-radius: 0.5rem !important;
    padding: 0.625rem 0.875rem !important;
    font-size: 0.9375rem !important;
    transition: all 0.2s ease !important;
}

.fi-input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

/* ============================================
   TABLES - Enhanced Styling
   ============================================ */
.fi-ta-table {
    border-radius: 0.75rem !important;
    overflow: hidden !important;
}

.fi-ta-header-cell {
    padding: 1rem 1.25rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
}

.fi-ta-cell {
    padding: 1rem 1.25rem !important;
}

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

.fi-ta-row:hover {
    background-color: rgba(99, 102, 241, 0.03) !important;
}

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

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

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

.fi-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
}

/* ============================================
   BADGES & LABELS - Better Proportions
   ============================================ */
.fi-badge {
    border-radius: 0.375rem !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
}

/* ============================================
   MODALS & SHEETS - Enhanced Spacing
   ============================================ */
.fi-modal {
    border-radius: 1rem !important;
}

.fi-modal-header {
    padding: 1.5rem !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.dark .fi-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.fi-modal-body {
    padding: 1.5rem !important;
}

/* ============================================
   SCROLLBAR - Enhanced Styling
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
    border-radius: 5px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}

.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

.dark ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #475569 0%, #334155 100%);
    border: 2px solid #1e293b;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
}

/* ============================================
   TYPOGRAPHY - Better Proportions
   ============================================ */
.fi-section-header-heading {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.fi-section-header-description {
    font-size: 0.875rem !important;
    color: #64748b !important;
    margin-top: 0.25rem !important;
}

.dark .fi-section-header-description {
    color: #94a3b8 !important;
}

/* ============================================
   CARDS & WIDGETS - Enhanced Spacing
   ============================================ */
.fi-wi-stats-overview-stat-card {
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    transition: all 0.2s ease !important;
}

.fi-wi-stats-overview-stat-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.dark .fi-wi-stats-overview-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */
@media (max-width: 768px) {
    .fi-main {
        padding: 1rem !important;
    }
    
    .fi-section {
        padding: 1rem !important;
    }
}
