body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f6;
    color: #333;
}

/* Sidebar Styling */
#sidebar {
    background-color: #1e293b !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    min-width: 260px;
    max-width: 260px;
    min-height: 100vh;
    transition: all 0.3s;
    z-index: 1040;
}

.sidebar-header h4 {
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

#sidebar .nav-link {
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    color: #cbd5e1 !important;
    transition: all 0.25s ease-in-out;
}

#sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff !important;
    transform: translateX(5px);
}

#sidebar .nav-link.active {
    background-color: #3b82f6 !important;
    color: #fff !important;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

#sidebar .nav-link i {
    width: 24px;
    text-align: center;
}

/* Mobile Sidebar Behavior */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -260px;
        position: fixed;
    }

    #sidebar.active {
        margin-left: 0;
    }
}

/* Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1039;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Navbar */
.top-navbar {
    background-color: #fff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 1rem;
}

.content-container {
    padding: 2rem;
}

@media (max-width: 768px) {
    .content-container {
        padding: 1rem;
    }
}

/* Cards & Tables */
.card {
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Utility Colors */
.bg-primary-light {
    background-color: #e0e7ff;
    color: #3730a3;
}

.bg-success-light {
    background-color: #dcfce7;
    color: #166534;
}

.bg-warning-light {
    background-color: #fef3c7;
    color: #92400e;
}

.bg-info-light {
    background-color: #e0f2fe;
    color: #075985;
}

/* Table Enhancements */
.table {
    color: #475569;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

.table-light {
    background-color: #f1f5f9;
    color: #334155;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* DataTables Overrides */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
}

.page-item.active .page-link {
    background-color: #3b82f6;
    border-color: #3b82f6;
}