/* StarDash — Styles globaux */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #0f1117;
    color: #e2e8f0;
    min-height: 100vh;
}

/* --- Header --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #1a1f2e;
    border-bottom: 1px solid #2d3748;
}

.header-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #63b3ed;
    letter-spacing: 0.05em;
}

.header-subtitle {
    font-size: 0.85rem;
    color: #718096;
    margin-left: 0.75rem;
}

.header-badge {
    font-size: 0.75rem;
    background: #2d3748;
    color: #90cdf4;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #4a5568;
}

/* --- Tabs --- */
.tabs-container {
    background: #1a1f2e;
    border-bottom: 1px solid #2d3748 !important;
    padding: 0 2rem;
}

.tab {
    background: transparent !important;
    border: none !important;
    color: #718096 !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1.25rem !important;
    cursor: pointer;
    border-bottom: 2px solid transparent !important;
    transition: color 0.2s;
}

.tab:hover { color: #e2e8f0 !important; }

.tab--selected {
    color: #63b3ed !important;
    border-bottom: 2px solid #63b3ed !important;
    background: transparent !important;
}

/* --- Contenu --- */
.tab-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Cards KPI --- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: 8px;
    padding: 1.25rem;
}

.kpi-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #e2e8f0;
}

.kpi-value--warning { color: #f6ad55; }
.kpi-value--danger  { color: #fc8181; }
.kpi-value--ok      { color: #68d391; }

/* --- Charts grid --- */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: 8px;
    padding: 1.25rem;
}

.chart-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #a0aec0;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
