:root {
    --portal-sidebar: #0f172a;
    --portal-sidebar-hover: #1e293b;
    --portal-accent: #4f46e5;
    --portal-bg: #f4f6fb;
}

body {
    background: var(--portal-bg);
    min-height: 100vh;
}

.portal-sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--portal-sidebar);
    color: #e2e8f0;
}

.portal-sidebar .brand {
    color: #fff;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.portal-sidebar .nav-link {
    color: #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
}

.portal-sidebar .nav-link:hover,
.portal-sidebar .nav-link.active {
    background: var(--portal-sidebar-hover);
    color: #fff;
}

.portal-topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.stat-card {
    border: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.stat-card .label {
    color: #64748b;
    font-size: 0.85rem;
}

.stat-card .value {
    font-size: 1.35rem;
    font-weight: 650;
}

a.stat-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Lets wide tables scroll inside .table-responsive instead of stretching the page. */
.portal-main {
    min-width: 0;
}

.chart-box {
    position: relative;
    height: 260px;
}

.table-actions {
    white-space: nowrap;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #0f172a 0%, #312e81 55%, #4f46e5 100%);
}
