/* VitalSight — Clinical Intelligence Platform */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Light app shell header (cool off-white) */
.mantine-AppShell-header {
    background-color: #fcfcfb !important;
    border-bottom: 1px solid #e1e3e7 !important;
}

/* Nav button states on light header */
.mantine-AppShell-header .mantine-Button-root[data-variant="subtle"] {
    color: #6b7280;
}
.mantine-AppShell-header .mantine-Button-root[data-variant="subtle"]:hover {
    background-color: #eef0f2;
    color: #1e2433;
}
.mantine-AppShell-header .mantine-Button-root[data-variant="filled"] {
    color: #1e3a8a;
    background-color: rgba(30, 58, 138, 0.1);
}

/* Scrollbars */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.04); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.28); }

/* Modebar */
.js-plotly-plot .plotly .modebar { top: 4px !important; right: 4px !important; }
.js-plotly-plot .plotly .modebar-btn { font-size: 13px !important; }

/* Table */
.mantine-Table-table { font-size: 0.85rem; }
.mantine-Table-th { background-color: rgba(0,0,0,0.02); }

/* NavLink active */
.mantine-NavLink-root[data-active="true"] { font-weight: 600; }

/* Paper hover */
.mantine-Paper-root { transition: box-shadow 0.18s ease; }
.mantine-Paper-root:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.07); }

/* Pulse animation for live indicator */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.85); }
}

/* Fade-in for KPI cards */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Imaging study cards */
.study-card:hover { border-color: #1e3a8a !important; }

/* Print styles */
@media print {
    .mantine-AppShell-header,
    .mantine-AppShell-navbar,
    .mantine-Button-root,
    .mantine-Select-root,
    .mantine-MultiSelect-root { display: none !important; }
    .mantine-Paper-root {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mantine-AppShell-navbar { display: none; }
    .mantine-Container-root { padding: 0.5rem; }
}

/* Progress bar background */
.mantine-Progress-root { background-color: rgba(0,0,0,0.05); }

/* Badge */
.mantine-Badge-root { text-transform: none; }
