:root {
    --primary-black: #09090b;
    --primary-white: #FFFFFF;
    --sidebar-width: 280px;
    --gray-50: #FAFAFA;
    --gray-100: #F4F4F5;
    --gray-200: #E4E4E7;
    --gray-300: #D4D4D8;
    --gray-400: #A1A1AA;
    --gray-800: #27272A;
    --accent: #18181B;
    /* Zinc 900 */
    --font-main: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--gray-50);
    color: var(--primary-black);
    overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background-color: var(--primary-black);
    height: 100vh;
    position: sticky;
    top: 0;
    transition: all 0.3s ease;
}

.sidebar-header .tracking-tight {
    letter-spacing: -0.05em;
}

.nav-link {
    color: var(--gray-400);
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-white);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link i {
    font-size: 1.1rem;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Header Styling */
.header {
    height: 70px;
}

.search-bar input {
    width: 300px;
    background: transparent;
}

.search-bar input::placeholder {
    color: var(--gray-400);
}

/* Page Content */
.main-content {
    background-color: var(--gray-50);
    min-height: 100vh;
}

/* Cards & Widgets */
.card-custom {
    background: var(--primary-white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-custom:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    margin-top: 10px;
}

.stat-label {
    color: var(--gray-400);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tables */
.table-custom {
    margin-bottom: 0;
}

.table-custom th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray-400);
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

.table-custom td {
    vertical-align: middle;
    padding: 16px 10px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
}

.badge {
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.bg-success-soft {
    background-color: #DCFCE7;
    color: #166534;
}

/* Buttons */
.btn-dark {
    background-color: var(--primary-black);
    border-color: var(--primary-black);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-800);
}

.btn-icon:hover {
    background-color: var(--gray-100);
}

/* UI Overrides for Black & White Theme */
.list-group-item.active {
    background-color: var(--primary-black);
    border-color: var(--primary-black);
    color: var(--primary-white);
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: var(--gray-100);
    color: var(--primary-black);
}

.list-group-item {
    border: none;
    border-radius: 8px !important;
    margin-bottom: 4px;
    color: var(--gray-800);
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-black);
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
}

.form-check-input:checked {
    background-color: var(--primary-black);
    border-color: var(--primary-black);
}

.form-check-input:focus {
    border-color: var(--primary-black);
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
}

/* Auth Pages overrides */
.auth-body {
    background: var(--primary-black);
}