:root {
    --sidebar-width: 260px;
    --brand-from: #4338ca;
    --brand-to: #6366f1;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f4f6fb;
}

/* Sidebar */
#sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--brand-from), var(--brand-to));
    min-height: 100vh;
}

#sidebar .sidebar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

#sidebar .nav-link {
    color: rgba(255, 255, 255, .75);
    padding: .65rem 1.25rem;
    margin: .15rem .75rem;
    border-radius: .6rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .75rem;
    transition: background-color .15s ease, color .15s ease;
}

#sidebar .nav-link i {
    font-size: 1.1rem;
}

#sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, .08);
}

#sidebar .nav-link.active {
    color: var(--brand-from);
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}

#sidebar hr {
    border-color: rgba(255, 255, 255, .15);
}

/* Topbar */
.topbar {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
}

.stat-card .icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-card .stat-value {
    font-size: 1.9rem;
    font-weight: 700;
}

/* Tables */
.table thead th {
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .04em;
    color: #64748b;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.table-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: .5rem;
}

.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--brand-from), var(--brand-to));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .9rem;
}

.btn-brand {
    background: linear-gradient(180deg, var(--brand-from), var(--brand-to));
    border: none;
    color: #fff;
}

.btn-brand:hover {
    color: #fff;
    filter: brightness(1.05);
}

.auth-card {
    max-width: 420px;
    width: 100%;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--brand-from), var(--brand-to));
}
