/* Shared styles for individual lab / imaging / pathology report pages.
   Mirrors the inline styles used by the older report pages so every report
   renders identically. New pages link this instead of duplicating the block. */

@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-Variable.woff2') format('woff2'),
         url('../fonts/Satoshi-Variable.woff') format('woff');
    font-weight: 300 900;
    font-display: swap;
    font-style: normal;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(15deg, #0D0E0E 0%, #0E0E0E 100%);
    color: #ACEBE6;
    min-height: 100vh;
    padding: 20px;
    font-size: medium;
}

.container { max-width: 1000px; margin: 0 auto; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #38bdf8;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 14px;
}
.back-link:hover { color: #7dd3fc; }

.report-header {
    background: rgba(35 48 49 / 0.17);
    border: 1px solid rgba(0 229 255 / 0.27);
    padding: 25px;
    border-radius: 9px;
    margin-bottom: 25px;
    backdrop-filter: blur(100px);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 0 7px 0 rgba(124 163 167 / 0.3);
}

.report-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: #1CFFE1;
    margin-bottom: 8px;
}

.report-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.meta-item {
    background: rgba(36 143 136 / 0.3);
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid rgba(148 184 180 / 0.3);
}

.meta-label {
    font-size: 11px;
    color: #0EFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 15px;
    font-weight: 600;
    color: #A7E2EC;
}

.lab-badge {
    background: #0629305F;
    color: #ADECEA;
    border: 1px solid #36FFF8;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.section {
    background: rgba(30 59 56 / 0.6);
    border: 1px solid rgba(94 180 167 / 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #38F8F2;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(56 248 242 / 0.3);
}

.ordered-items {
    background: rgba(56 189 248 / 0.1);
    border-left: 3px solid #38bdf8;
    padding: 12px 15px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #cbd5e1;
}

table { width: 100%; border-collapse: collapse; margin-top: 10px; }

thead { background: rgba(2 23 23 / 0.5); }

th {
    padding: 12px;
    text-align: left;
    color: #86DFD3;
    font-weight: 600;
    border-bottom: 2px solid rgba(56 248 223 / 0.2);
    font-size: 12px;
    text-transform: uppercase;
}

td {
    padding: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
    font-size: 14px;
}

tr:hover { background: rgba(56, 189, 248, 0.05); }

.flag-high { color: #ff6b6b; font-weight: 600; }

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-normal { background: rgba(41 134 100 / 0.2); color: #72FCC1; }
.status-high { background: rgba(135 40 40 / 0.2); color: #FF8989; }
.status-alert { background: rgba(255 119 7 / 0.2); color: #FFAA3B; }

.notes {
    background: rgba(56, 189, 248, 0.1);
    border-left: 3px solid #38bdf8;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 13px;
    color: #cbd5e1;
}

.notes ul, .methodology ul { margin-top: 8px; margin-left: 20px; }
.notes li { margin-bottom: 6px; }

/* Verbatim quoted radiology / pathology text */
.verbatim {
    background: rgba(2 23 23 / 0.45);
    border: 1px solid rgba(94 180 167 / 0.25);
    border-radius: 8px;
    padding: 16px 18px;
    margin-top: 12px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #cbd5e1;
    white-space: pre-wrap;
}

.verbatim strong { color: #86DFD3; }

.alert-result {
    background: rgba(255 119 7 / 0.1);
    border: 1px solid rgba(255 119 7 / 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}
.alert-result h4 { color: #FFAA3B; font-size: 16px; margin-bottom: 10px; }

.normal-result {
    background: rgba(51 207 102 / 0.1);
    border: 1px solid rgba(51 207 102 / 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}
.normal-result h4 { color: #72FCC1; font-size: 16px; margin-bottom: 10px; }

.result-text { font-size: 20px; font-weight: 700; margin-bottom: 10px; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.info-card {
    background: rgba(30, 41, 59, 0.5);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    text-align: center;
}

.info-card h5 {
    color: #86DFD3;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.info-card .value { font-size: 24px; font-weight: 700; color: #72FCC1; }
.info-card .value.high { color: #FFAA3B; }
.info-card .value.small { font-size: 17px; }
.info-card .tissue { font-size: 11px; color: #94a3b8; margin-top: 5px; }

.methodology {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    font-size: 12px;
    color: #94a3b8;
}

.patient-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.detail-block h4 {
    color: #86DFD3;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.detail-block p { font-size: 13px; color: #94a3b8; margin-bottom: 5px; }

@media (max-width: 768px) {
    .report-header { flex-direction: column; gap: 15px; }
    .report-meta { grid-template-columns: 1fr; }
    .patient-details { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}
