html {
    scroll-behavior: smooth;
}
body {
    font-family: "Inter", system-ui, sans-serif;
    color: #1e293b;
    background: #f8fafc;
}
::selection {
    background: #3b82f6;
    color: #ffffff;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}
@media (min-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 240px 1fr;
    }
}
.sidebar {
    background: #0f172a;
    padding: 20px 0;
}
@media (min-width: 1024px) {
    .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
    }
}
.main-content {
    background: #f8fafc;
    padding: 24px;
    overflow-y: auto;
    min-width: 0;
}

.metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.delta-up {
    color: #22c55e;
    background: #f0fdf4;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}
.delta-down {
    color: #ef4444;
    background: #fef2f2;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
}
thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}
th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
    padding: 10px 16px;
    white-space: nowrap;
}
td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    vertical-align: top;
}
tr:hover td {
    background: #f8fafc;
}
#cmdBody tr {
    cursor: pointer;
}
#cmdBody tr[aria-selected="true"] td {
    background: #eff6ff;
}

.badge {
    display: inline-block;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    white-space: nowrap;
}

.chart-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}
.bar {
    background: #3b82f6;
    border-radius: 4px 4px 0 0;
    transition: height 0.4s ease;
}
.bar-col:hover .bar {
    background: #2563eb;
}

.pill-group {
    display: inline-flex;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}
.pill-group button {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    color: #64748b;
    border-right: 1px solid #e2e8f0;
    white-space: nowrap;
}
.pill-group button:last-child {
    border-right: 0;
}
.pill-group button:hover {
    color: #1e293b;
    background: #f8fafc;
}
.pill-group button[aria-pressed="true"] {
    background: #eff6ff;
    color: #2563eb;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
tr:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}
[tabindex="-1"]:focus {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
