:root {
    /* Admin Color Palette */
    --admin-primary: #4f46e5;
    /* Indigo */
    --admin-dark: #1e1b4b;
    /* Dark Indigo */
    --admin-light: #818cf8;
    /* Light Indigo */
    --sidebar-bg: #0f172a;
    /* Slate 900 */
    --sidebar-hover: #1e293b;
    /* Slate 800 */
    --sidebar-active: #334155;
    /* Slate 700 */
    --bg-body: #f1f5f9;
    /* Slate 100 */
    --text-main: #334155;
    /* Slate 700 */
    --text-light: #94a3b8;
    /* Slate 400 */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Sidebar Styles */
#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -17rem;
    transition: margin .25s ease-out;
    width: 17rem;
    position: fixed;
    z-index: 1000;
    background-color: var(--sidebar-bg);
    color: white;
    box-shadow: var(--shadow-lg);
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

#sidebar-wrapper .list-group {
    width: 17rem;
    padding: 1rem 0;
}

.list-group-item-dark {
    background-color: transparent;
    color: #cbd5e1;
    border: none;
    padding: 0.875rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    margin: 0.25rem 1rem;
    border-radius: 0.5rem;
}

.list-group-item-dark i {
    font-size: 1.25rem;
    width: 2rem;
    text-align: center;
    margin-right: 0.5rem;
    opacity: 0.8;
}

.list-group-item-dark:hover {
    background-color: var(--sidebar-hover);
    color: white;
    transform: translateX(5px);
}

.list-group-item-dark.active {
    background: linear-gradient(to right, var(--admin-primary), var(--admin-light));
    color: white;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

/* Page Content */
#page-content-wrapper {
    min-width: 100vw;
    transition: margin .25s ease-out;
}

body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
    margin-left: 0;
}

/* Navbar */
.navbar {
    background-color: white !important;
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    background-color: white;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card {
    overflow: hidden;
    position: relative;
}

.stat-card .card-body {
    position: relative;
    z-index: 2;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Tables */
.table {
    vertical-align: middle;
}

.table thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

/* Responsive */
@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
        position: sticky;
        top: 0;
        height: 100vh;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
        margin-left: -17rem;
    }
}

/* Utilities */
.text-primary {
    color: var(--admin-primary) !important;
}

.bg-primary {
    background-color: var(--admin-primary) !important;
}

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

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

.avatar-circle {
    width: 40px;
    height: 40px;
    background-color: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 600;
}