/* VitalSight — Clinical Intelligence Platform */

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

/* Navy app shell header */
.mantine-AppShell-header {
    background: #13235a !important;
    border-bottom: none !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}

/* Nav button states on the navy header */
.mantine-AppShell-header .mantine-Button-root[data-variant="subtle"] {
    color: rgba(255, 255, 255, 0.72);
}
.mantine-AppShell-header .mantine-Button-root[data-variant="subtle"]:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.mantine-AppShell-header .mantine-Button-root[data-variant="filled"] {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.16);
}
.mantine-AppShell-header #header-collapse-btn {
    color: rgba(255, 255, 255, 0.8);
}
.mantine-AppShell-header #header-collapse-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 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; }

/* View source + Why Plotly buttons in the navy header: pills, echoing the hospital chip */
.header-btn {
    height: 30px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.header-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.55);
}
#wp-open.header-btn {
    color: #1e3a8a;
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
#wp-open.header-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}
