:root {
    /* Colors */
    --bs-background: #0a0b10;
    --bs-sidebar-bg: #0a0b10;
    --bs-card-bg: #13151b;
    --bs-border-color: #27272a;

    --bs-primary: #00bcd4;
    /* Cyan/Teal */
    --bs-primary-rgb: 0, 188, 212;
    --bs-secondary: #a1a1aa;
    --bs-success: #10b981;
    --bs-danger: #ef4444;
    --bs-warning: #f59e0b;

    --bs-body-bg: var(--bs-background);
    --bs-body-color: #e4e4e7;

    --bs-link-color: var(--bs-primary);
    --bs-link-hover-color: #22d3ee;
}

body {
    background-color: var(--bs-background);
    color: var(--bs-body-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: var(--bs-background);
}

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

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* Typography & General */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #fff;
    font-weight: 600;
}

.text-muted {
    color: #a1a1aa !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

/* Bootstrap Overrides */
.card {
    background-color: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    /* rounded-xl approx */
}

.form-control,
.form-select {
    background-color: #18191e;
    border: 1px solid var(--bs-border-color);
    color: #fff;
}

.form-control:focus,
.form-select:focus {
    background-color: #18191e;
    border-color: var(--bs-primary);
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--bs-body-color);
    --bs-table-border-color: var(--bs-border-color);
}

.table> :not(caption)>*>* {
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

/* Sidebar & Nav */
.sidebar {
    background-color: var(--bs-sidebar-bg);
    border-right: 1px solid var(--bs-border-color);
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    overflow-y: auto;
}

.main-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
    background-color: var(--bs-background);
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}

/* ─── Sidebar Logo ─── */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.sidebar-logo .logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00bcd4 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.sidebar-logo .logo-icon .material-symbols-outlined {
    font-size: 20px;
    color: #fff;
}

.sidebar-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sidebar-logo .logo-name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.sidebar-logo .logo-name span {
    color: var(--bs-primary);
}

.sidebar-logo .logo-sub {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #3f3f46;
}

/* ─── Nav Links ─── */
.nav-section-label {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #3f3f46;
    padding: .5rem .85rem .3rem;
    margin-top: .5rem;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .85rem;
    border-radius: 10px;
    color: #71717a;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all .18s ease;
    line-height: 1.3;
    border: none;
    background: transparent;
}

.nav-link-custom .nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .18s;
}

.nav-link-custom .nav-icon .material-symbols-outlined {
    font-size: 18px;
    color: #3f3f46;
    transition: color .18s;
}

.nav-link-custom:hover {
    color: #e4e4e7;
    background: rgba(255, 255, 255, .04);
    text-decoration: none !important;
}

.nav-link-custom:hover .nav-icon {
    background: rgba(255, 255, 255, .06);
}

.nav-link-custom:hover .nav-icon .material-symbols-outlined {
    color: #a1a1aa;
}

.nav-link-custom.active {
    background: rgba(0, 188, 212, .1);
    color: var(--bs-primary);
    font-weight: 600;
    text-decoration: none !important;
}

.nav-link-custom.active .nav-icon {
    background: rgba(0, 188, 212, .15);
}

.nav-link-custom.active .nav-icon .material-symbols-outlined {
    color: var(--bs-primary);
}

/* Utility Utilities */
.glass {
    background: rgba(19, 21, 27, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-soft-primary {
    background-color: rgba(0, 188, 212, 0.1);
    color: var(--bs-primary);
}

.badge-soft-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--bs-success);
}

.badge-soft-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--bs-danger);
}

.badge-soft-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--bs-warning);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.separator {
    border-bottom: 1px solid var(--bs-border-color);
}