/* Clean Corporate Analytics Theme */
:root {
    --chart-blue: #2563eb;
    --chart-purple: #7c3aed;
    --chart-pink: #db2777;
    --bg-surface: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
}

/* Analytics Dashboard Container */
.analytics-dashboard {
    background: #f8fafc;
    color: var(--text-primary);
    padding: 1.5rem;
    min-height: 100vh;
}

/* Clean Cards */
.chart-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s;
}

.chart-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.chart-header-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.chart-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Stat Cards */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 140px;
}

.stat-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
    z-index: 1;
}

/* Alias for H3 within stat card if legacy code uses it */
.stat-card h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
    z-index: 1;
}

.stat-card .stat-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    z-index: 1;
}

/* Remove glows */
.stat-card.risk::after,
.stat-card.incident::after {
    display: none;
}

/* Control Panel */
.analytics-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--bg-surface);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.analytics-select {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 2rem 0.5rem 1rem;
    /* Extra padding for arrow if needed */
    border-radius: 6px;
    outline: none;
    font-size: 0.875rem;
    cursor: pointer;
}

.analytics-select:focus {
    border-color: var(--chart-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}