:root {
    --sidebar-width: 240px;
}

body {
    background: #0d0f12;
    color: #e5e7eb;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
}

.sidebar .nav-link {
    color: #d1d5db;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: #1f2937;
    color: #fff;
}

.content {
    min-width: 0;
}

.card {
    border-radius: 0.9rem;
}

.metric-card h3 {
    font-weight: 700;
    margin-top: 0.35rem;
}

.table-dark {
    --bs-table-bg: #111827;
    --bs-table-striped-bg: #18212f;
    --bs-table-hover-bg: #1f2937;
}

.click-row {
    cursor: pointer;
}

.chart-bars {
    height: 220px;
    display: flex;
    align-items: end;
    gap: 8px;
}

.chart-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 6px;
}

.chart-bar {
    width: 100%;
    max-width: 26px;
    background: linear-gradient(180deg, #0ea5e9 0%, #1d4ed8 100%);
    border-radius: 6px 6px 0 0;
    min-height: 6px;
}

.chart-item small,
.chart-item span {
    font-size: 0.75rem;
    color: #9ca3af;
}

@media (max-width: 991px) {
    .sidebar {
        width: 84px;
    }

    .sidebar .nav-link {
        font-size: 0;
    }

    .sidebar .nav-link i {
        font-size: 1rem;
        margin-right: 0 !important;
    }
}
