/* Market Intelligence V2 – Custom styles (Tailwind + DMC overrides) */

/* ── KPI Card Grid ──────────────────────────────────────────────────── */
.mv2-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mv2-kpi-card {
    border-left: 4px solid #2563eb;
    transition: box-shadow 0.2s ease;
}

.mv2-kpi-card:hover {
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.12);
}

.mv2-kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1.2;
}

.mv2-kpi-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.mv2-kpi-change-neutral {
    color: #64748b;
    font-weight: 500;
    font-size: 0.85rem;
}

/* ── Chart Container ────────────────────────────────────────────────── */
.mv2-chart-container {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

/* ── Sidebar ────────────────────────────────────────────────────────── */
.mv2-sidebar {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 0.5rem;
    min-height: 400px;
}

.mv2-sidebar .mantine-NavLink-root {
    border-radius: 0.375rem;
    margin-bottom: 2px;
    font-size: 0.875rem;
}

.mv2-sidebar .mantine-NavLink-root[data-active] {
    background-color: #1e3a5f;
    color: #ffffff;
}

/* ── Filter Bar ─────────────────────────────────────────────────────── */
.mv2-filter-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.mv2-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.mv2-header h2 {
    color: #ffffff;
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
}

.mv2-header-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ── Source Segment Control ──────────────────────────────────────────── */
.mv2-source-segment .mantine-SegmentedControl-root {
    background-color: #f1f5f9;
}

.mv2-source-segment .mantine-SegmentedControl-indicator {
    background-color: #1e3a5f;
}

/* ── Info Bar ───────────────────────────────────────────────────────── */
.mv2-info-bar {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: #1e3a5f;
    margin-bottom: 1rem;
}

/* ── Page Layout ────────────────────────────────────────────────────── */
.mv2-page {
    background: #f8fafc;
    min-height: 100vh;
    padding: 1.5rem;
}

.mv2-content-area {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

/* ── Dataset Description ────────────────────────────────────────────── */
.mv2-dataset-desc {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #64748b;
    margin-top: 0.5rem;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .mv2-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mv2-sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 1rem;
    }
}
