@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #0b0f19 !important;
    color: #e2e8f0;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #0b0f19;
    --bs-body-color: #e2e8f0;
    --bs-primary: #3b82f6;
    --bs-primary-rgb: 59, 130, 246;
    --bs-border-color: rgba(255, 255, 255, 0.08);
    --bs-secondary-bg: rgba(255, 255, 255, 0.03);
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 260px;
    max-width: 260px;
    min-height: 100vh;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar.active {
    margin-left: -260px;
}

#sidebar .sidebar-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    display: block;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

#sidebar ul li a i {
    opacity: 0.7;
    width: 24px;
    transition: all 0.2s ease;
}

#sidebar ul li a:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
}

#sidebar ul li a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

#sidebar ul li a.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15) 0%, transparent 100%);
    color: #c4b5fd;
    border-left: 3px solid #8b5cf6;
}

#sidebar ul li a.active i {
    color: #a78bfa;
    opacity: 1;
}

#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
    background: radial-gradient(circle at top right, rgba(29, 78, 216, 0.05), transparent 400px),
        radial-gradient(circle at bottom left, rgba(147, 51, 234, 0.05), transparent 400px);
}

.card,
.modal-content {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.card-header,
.modal-header {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    font-weight: 600;
    color: #f8fafc;
    padding: 1rem 1.25rem;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: #cbd5e1;
    margin-bottom: 0;
}

.table-light,
.table thead th {
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(139, 92, 246, 0.4);
}

.form-control,
.form-select {
    background-color: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(15, 23, 42, 1) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25) !important;
}

.dropdown-menu {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
}

.dropdown-item {
    border-radius: 6px;
    color: #cbd5e1;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.08);
}

.navbar {
    background: rgba(11, 15, 25, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Fix light cards explicitly styling back to light if previously set inline */
.bg-light,
.bg-white {
    background-color: transparent !important;
}

.text-dark {
    color: #e2e8f0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #94a3b8 !important;
    border-radius: 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
    color: #fff !important;
    border: none;
}

@media (max-width: 768px) {
    #sidebar {
        margin-left: -260px;
    }

    #sidebar.active {
        margin-left: 0;
    }
}