/* Header Nav Tabs */
#header-nav {
    scrollbar-width: none;
}
#header-nav::-webkit-scrollbar { display: none; }

.nav-tab {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border: 1px solid transparent;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.nav-tab:hover {
    color: #e5e7eb;
    background: #1f2937;
}
.nav-tab.active {
    color: #f3f4f6;
    background: #1f2937;
    border-color: #374151;
}

/* KPI Cards */
.kpi-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    transition: border-color 0.2s;
}
.kpi-card:hover {
    border-color: #374151;
}

/* Dashboard Sections */
.dashboard-section {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 0.75rem;
    padding: 1.5rem;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f3f4f6;
    display: flex;
    align-items: center;
}

/* Chart */
.chart-container {
    position: relative;
    height: 300px;
}

/* Data Table */
.data-table {
    font-size: 0.8rem;
    border-collapse: collapse;
}
.data-table thead th {
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
    padding: 0.4rem 0.45rem;
    text-align: right;
    border-bottom: 1px solid #1f2937;
    white-space: nowrap;
}
.data-table thead th:first-child {
    text-align: left;
}
.data-table tbody td {
    padding: 0.4rem 0.45rem;
    text-align: right;
    border-bottom: 1px solid #1f2937;
    color: #d1d5db;
    white-space: nowrap;
}
.data-table tbody td:first-child {
    text-align: left;
    color: #9ca3af;
}
.data-table tbody tr:hover {
    background: #1f293766;
}

/* Summary tabs */
.summary-tab {
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #374151;
    color: #9ca3af;
    background: transparent;
    transition: all 0.2s;
    white-space: nowrap;
}
.summary-tab:hover {
    border-color: #6b7280;
    color: #e5e7eb;
}
.summary-tab.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}
.summary-tab.no-data {
    opacity: 0.4;
    cursor: default;
}

/* Summary content blocks */
.summary-block {
    background: #0d1117;
    border: 1px solid #1f2937;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}
.summary-block h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.summary-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.summary-block ul li {
    font-size: 0.85rem;
    color: #d1d5db;
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}
.summary-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}
.summary-highlights li::before { background: #34d399; }
.summary-concerns li::before { background: #fbbf24; }
.summary-recommendations li::before { background: #818cf8; }

/* Placeholder */
.placeholder-section {
    border: 1px dashed #374151;
    border-radius: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
    .kpi-card {
        padding: 0.75rem 1rem;
    }
    .kpi-card .text-2xl {
        font-size: 1.25rem;
    }
    .chart-container {
        height: 220px;
    }
}
