/* LACMAR Viewer · estilo clínico */

:root {
    --c-bg: #f6f8fb;
    --c-fg: #1f2937;
    --c-muted: #6b7280;
    --c-card: #ffffff;
    --c-border: #e5e7eb;
}

body {
    background: var(--c-bg);
    color: var(--c-fg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

body.landing {
    background: linear-gradient(180deg, #0d1b2a 0%, #1b2a3a 280px, var(--c-bg) 280px);
    min-height: 100vh;
}

.navbar-brand .badge {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}

/* Cabeçalho do paciente */
.patient-header {
    background: linear-gradient(135deg, #ffffff 0%, #eef2f7 100%);
    border-bottom: 1px solid var(--c-border);
}
.patient-header h2 {
    font-weight: 600;
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

/* Cards de métrica */
.metric-card {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    background: var(--c-card);
}
.metric-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}
.metric-label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}
.metric-value {
    font-size: 1.4rem;
    line-height: 1.1;
}
.metric-unit {
    font-size: 0.7rem;
    margin-left: 0.2rem;
}
.metric-status {
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

/* Cards de gráfico */
.chart-wrap {
    position: relative;
}
.card-title {
    font-size: 0.92rem;
    font-weight: 600;
}

/* Tabela */
table.small td, table.small th { font-size: 0.82rem; }

/* Detalhes (collapse) */
details summary::-webkit-details-marker { display: none; }
details summary { user-select: none; }

/* Estado de carregamento */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}
.loading { animation: pulse 1.4s ease-in-out infinite; }

/* Mobile */
@media (max-width: 768px) {
    .metric-value { font-size: 1.15rem; }
    .patient-header h2 { font-size: 1.15rem; }
}
