:root {
    --primary: #0056b3; /* Medical Blue */
    --accent: #e1f5fe;
    --bg: #f4f7f6;
    --card-bg: #ffffff;
    --text: #333;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 20px;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 { color: var(--primary); margin-bottom: 5px; }
.subtitle { color: #666; font-size: 0.9em; }

.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border-left: 5px solid var(--primary);
}

h2 { font-size: 1.2em; margin-top: 0; color: var(--primary); }

label { display: block; margin-bottom: 5px; font-weight: bold; }
input[type="number"] {
    width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;
}

.radio-option, .checkbox-option {
    display: flex; align-items: flex-start; margin-bottom: 12px; font-weight: normal; cursor: pointer;
}
.radio-option input, .checkbox-option input { margin-right: 10px; margin-top: 4px; }

.badge {
    background: var(--accent); color: var(--primary); padding: 5px 10px; border-radius: 4px; font-size: 0.85em; display: inline-block; margin-bottom: 10px;
}

.hidden { display: none; }
.warning { color: #d9534f; font-style: italic; }

/* --- REFERENCE DROPDOWN STYLES --- */
details.reference-dropdown {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
}

details.reference-dropdown summary {
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary);
    list-style: none; /* Hide default triangle in some browsers */
}

details.reference-dropdown summary:hover {
    background-color: #f0f0f0;
}

/* Add a custom arrow */
details.reference-dropdown summary::after {
    content: '+'; 
    float: right;
    font-weight: bold;
}

details.reference-dropdown[open] summary::after {
    content: '-';
}

.table-container {
    padding: 10px;
    border-top: 1px solid #ddd;
    overflow-x: auto; /* Handle tables on small screens */
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

table th {
    background-color: var(--primary);
    color: white;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.small-note {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}
/* -------------------------------- */

button {
    width: 100%; padding: 15px; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 1.1em; cursor: pointer; transition: background 0.3s;
}
button:hover { background: #004494; }

.result-card {
    background: #28a745; color: white; padding: 25px; border-radius: 8px; margin-top: 20px; text-align: center;
}
.score-display { font-size: 3em; font-weight: bold; margin: 10px 0; }
.status-box p { margin: 5px 0; font-size: 1.1em; }
.disclaimer { background: rgba(0,0,0,0.1); padding: 10px; font-size: 0.9em; margin-top: 15px; border-radius: 4px; }
