:root {
    --sidebar-width: 260px;
    --primary: #4e73df;
    --primary-dark: #3a5ccc;
    --sidebar-bg: #1c1c2e;
    --sidebar-hover: #2a2a40;
    --sidebar-active: #4e73df;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f5f6fa;
    color: #333;
    min-height: 100vh;
}

/* SIDEBAR */
.wrapper {
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    background: var(--sidebar-bg) !important;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar .nav-link {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background: var(--sidebar-hover);
    color: #fff !important;
}

.sidebar .nav-link.active,
.sidebar .nav-link.active:hover {
    background: var(--sidebar-active);
    color: #fff !important;
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.sidebar-header {
    background: rgba(0, 0, 0, 0.2);
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    background: linear-gradient(135deg, #1c1c2e 0%, #2a2a4a 100%) !important;
}

/* CARDS */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.icon-shape {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
}

/* LOGIN */
.login-container {
    background: #f1f4f8;
    min-height: 100vh;
}

.login-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(78, 115, 223, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* BUTTONS */
.btn {
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* FORMS */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* TABLE */
.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

/* TOAST */
.toast-container {
    z-index: 9999;
}

/* MODAL */
.modal-content {
    overflow: hidden;
}

.modal-header .btn-close-white {
    filter: brightness(0) invert(1);
}

/* SWEETALERT2 OVERRIDES */
.swal2-popup {
    border-radius: 16px !important;
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .main-content {
        margin-left: 0;
    }
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.4s ease;
}
