:root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --text: #172033;
    --muted: #667085;
    --line: #d9e2ef;
    --green: #11875d;
    --blue: #2563eb;
    --red: #d92d20;
    --black: #1f2937;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.dashboard-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 22px;
    background: #111827;
    color: #ffffff;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: #22c55e;
    color: #06220f;
    font-weight: 800;
}

.dashboard-brand strong,
.dashboard-brand small {
    display: block;
}

.dashboard-brand small {
    margin-top: 3px;
    color: #aab4c5;
}

.dashboard-nav {
    display: grid;
    gap: 8px;
}

.dashboard-nav a {
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #d8deea;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    border-color: #334155;
    background: #1f2937;
    color: #ffffff;
}

.sidebar-foot {
    margin-top: auto;
    display: grid;
    gap: 8px;
}

.sidebar-foot small {
    color: #aab4c5;
}

.sidebar-foot select {
    width: 100%;
    padding: 10px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #0b1220;
    color: #ffffff;
}

.dashboard-main {
    padding: 30px;
}

.dashboard-hero,
.dashboard-card,
.metric-card,
.no-access-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.dashboard-hero {
    padding: 28px;
}

.badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e8f5ee;
    color: #0b6846;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 10px;
    font-size: 34px;
    line-height: 1.15;
}

h2 {
    margin-bottom: 14px;
    font-size: 18px;
}

p {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.metric-card {
    padding: 18px;
}

.metric-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 28px;
}

.metric-card span {
    color: var(--muted);
}

.metric-card.green strong {
    color: var(--green);
}

.metric-card.blue strong {
    color: var(--blue);
}

.metric-card.red strong {
    color: var(--red);
}

.metric-card.black strong {
    color: var(--black);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-card {
    padding: 22px;
}

.dashboard-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dashboard-card li {
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: #344054;
}

.no-access-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.no-access-card {
    max-width: 560px;
    padding: 28px;
}

.btn {
    display: inline-flex;
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--blue);
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 900px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
        height: auto;
    }

    .metric-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
