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

:root {
    --primary: #174C55;
    --secondary: #3C9294;
    --mint: #B9DFDC;
    --background: #EFF7F6;
    --dark-text: #203A3D;
    --muted-text: #718589;
    --white: #FFFFFF;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--dark-text);
}

#app {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--background);
    position: relative;
    padding-bottom: 85px;
}

.page {
    min-height: 100vh;
    padding: 24px 20px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.header h1 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 4px;
}

.header p {
    font-size: 12px;
    color: var(--muted-text);
}

.logo-mark {
    width: 28px;
    height: 28px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark div {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
}

.start-card {
    background: var(--primary);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    color: var(--white);
}

.eyebrow {
    display: block;
    color: var(--secondary);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.start-card .eyebrow {
    color: var(--mint);
}

.start-card h2 {
    font-size: 21px;
    margin-bottom: 10px;
}

.start-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 19px;
    margin-bottom: 16px;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.start-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: var(--white);
    color: var(--primary);
    font-size: 14px;
    font-weight: bold;
}

.section {
    margin-bottom: 24px;
}

.section h3 {
    font-size: 17px;
    margin-bottom: 14px;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.summary-card {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
}

.summary-symbol {
    display: block;
    color: var(--secondary);
    font-size: 23px;
    margin-bottom: 8px;
}

.summary-card strong {
    display: block;
    color: var(--primary);
    font-size: 25px;
    margin-bottom: 6px;
}

.summary-card p {
    color: var(--muted-text);
    font-size: 12px;
}

.quick-card {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.quick-symbol {
    color: var(--secondary);
    font-size: 25px;
}

.quick-card strong {
    font-size: 14px;
}

.quick-card p {
    color: var(--muted-text);
    font-size: 11px;
}

.about-card {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about-symbol {
    color: var(--secondary);
    font-size: 25px;
}

.about-card strong {
    font-size: 14px;
}

.about-card p {
    color: var(--muted-text);
    font-size: 12px;
    line-height: 17px;
    margin-top: 4px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 72px;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #E5EEEE;
    z-index: 10;
}

.bottom-nav button {
    border: none;
    background: transparent;
    color: var(--muted-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 75px;
}

.bottom-nav button span {
    font-size: 22px;
}

.bottom-nav button small {
    font-size: 11px;
}

.bottom-nav button.active {
    color: var(--primary);
    font-weight: bold;
}

.bottom-nav button.active span {
    background: var(--mint);
    border-radius: 20px;
    padding: 2px 14px;
}

.page-heading {
    margin: 28px 0;
}

.page-heading h2,
.page > h2 {
    font-size: 25px;
    margin-bottom: 8px;
}

.page-heading p,
.page-description {
    color: var(--muted-text);
    font-size: 14px;
    line-height: 21px;
}

.back-button {
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 16px;
}

.option-card {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.option-icon {
    width: 52px;
    height: 52px;
    background: rgba(185, 223, 220, 0.4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 27px;
    margin-bottom: 14px;
}

.option-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.option-card p {
    color: var(--muted-text);
    font-size: 13px;
    line-height: 20px;
    margin-bottom: 16px;
}

.primary-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font-weight: bold;
}

.tip-card {
    background: rgba(185, 223, 220, 0.35);
    border-radius: 16px;
    padding: 16px;
    font-size: 13px;
    line-height: 20px;
}

.empty-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px 16px;
    text-align: center;
    color: var(--muted-text);
}

.empty-card span {
    display: block;
    font-size: 28px;
    margin-bottom: 10px;
}

.empty-card p {
    font-size: 13px;
}

.history-note {
    color: var(--muted-text);
    font-size: 11px;
    margin-top: 16px;
}

/* AUDIO & X-RAY SCREENING */

.large-symbol {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 8px;
}

.option-card h4 {
    font-size: 15px;
    margin-bottom: 6px;
}

.outline-button,
.secondary-button {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--secondary);
    border-radius: 12px;
    background: var(--white);
    color: var(--primary);
    font-size: 14px;
    font-weight: bold;
}

.secondary-button {
    background: var(--secondary);
    color: var(--white);
}

.recording-status {
    margin-top: 12px;
    color: #D94A4A;
    font-size: 13px;
    font-weight: bold;
}

.preview-divider {
    height: 1px;
    background: var(--background);
    margin: 16px 0;
}

.file-name {
    color: var(--secondary);
    font-size: 12px;
    margin: 8px 0;
    overflow-wrap: anywhere;
}

.audio-player {
    width: 100%;
    margin-top: 10px;
}

.message {
    color: var(--secondary);
    font-size: 13px;
    line-height: 20px;
    margin-top: 12px;
}

.continue-button {
    margin-top: 8px;
    padding: 15px;
}

.continue-button:disabled {
    background: #C7D0D0;
    cursor: not-allowed;
}

.screening-note {
    color: var(--muted-text);
    font-size: 12px;
    line-height: 18px;
    margin-top: 18px;
}

.xray-card {
    text-align: center;
}

.xray-preview {
    width: 100%;
    min-height: 180px;
    background: var(--background);
    border-radius: 14px;
    margin: 16px 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.xray-preview span {
    color: var(--secondary);
    font-size: 42px;
}

.xray-preview p {
    color: var(--muted-text);
    font-size: 14px;
}

.xray-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.success-message {
    color: var(--secondary);
    font-size: 13px;
    margin-top: 12px;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: var(--mint);
    border-radius: 10px;
    overflow: hidden;
    margin: 16px 0 12px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--secondary);
    border-radius: 10px;
}


/* ==============================
   SCREENING RESULT PAGE
============================== */

.result-page {
    padding-bottom: 35px;
}

.result-score-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 26px;
    margin: 28px 0 18px;
    box-shadow: 0 4px 12px rgba(32, 58, 61, 0.06);
}

.result-label {
    color: #718589;
    font-size: 15px;
}

.result-score-card h1 {
    color: #174C55;
    font-size: 42px;
    margin: 12px 0;
}

.result-score-card h1 small {
    font-size: 22px;
}

.score-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718589;
    font-size: 13px;
    margin-bottom: 25px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3C9294;
}

.threshold-info {
    border-top: 1px solid #E5EEEE;
    padding-top: 18px;
}

.threshold-info > div:first-child {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #718589;
    margin-bottom: 10px;
}

.threshold-info strong {
    color: #203A3D;
}

.threshold-track,
.probability-track {
    height: 9px;
    background: #E5EEEE;
    border-radius: 20px;
    overflow: hidden;
}

.threshold-fill,
.probability-fill {
    height: 100%;
    background: #3C9294;
    border-radius: 20px;
}

.result-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(32, 58, 61, 0.06);
}

.result-card h3 {
    color: #203A3D;
    margin: 0 0 18px;
    font-size: 19px;
}

.result-detail {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #E5EEEE;
    font-size: 14px;
}

.result-detail:last-child {
    border-bottom: none;
}

.result-detail span {
    color: #718589;
}

.result-detail strong {
    color: #174C55;
    text-align: right;
}

.result-description {
    color: #718589;
    font-size: 13px;
    margin-top: -8px;
    margin-bottom: 22px;
}

.probability-item {
    margin-bottom: 20px;
}

.probability-item:last-child {
    margin-bottom: 0;
}

.probability-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 9px;
    font-size: 14px;
    color: #203A3D;
}

.probability-info strong {
    color: #174C55;
}

.result-disclaimer {
    color: #718589;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    margin: 24px 10px;
}



/* ==============================
   KOTLIN-STYLE RESULT PAGE
============================== */

.kotlin-result-page {
    padding: 12px 20px 100px;
}

.kotlin-result-page .page-heading {
    margin: 28px 0 16px;
}

.kotlin-result-page .page-heading h2 {
    font-size: 22px;
    color: var(--dark-text);
    margin-bottom: 6px;
}

.kotlin-result-page .page-heading p {
    font-size: 13px;
    line-height: 19px;
}

/* Summary Card */

.kotlin-summary-card {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.kotlin-screening-type {
    display: block;
    text-align: center;
    color: var(--muted-text);
    font-size: 13px;
    margin-bottom: 12px;
}

.kotlin-summary-card h3 {
    color: var(--primary);
    font-size: 17px;
    text-align: center;
    margin-bottom: 8px;
}

.kotlin-summary-card p {
    color: #52686B;
    font-size: 13px;
    line-height: 19px;
    margin: 0;
}

/* AI Analysis Details */

.kotlin-details-card,
.kotlin-recommendation-card {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.kotlin-details-card h3,
.kotlin-recommendation-card h3 {
    color: var(--dark-text);
    font-size: 16px;
    margin-bottom: 18px;
}

.kotlin-score {
    margin-bottom: 18px;
}

.kotlin-score span {
    display: block;
    color: #8A9B9D;
    font-size: 13px;
}

.kotlin-score strong {
    display: block;
    color: var(--primary);
    font-size: 23px;
    margin-top: 2px;
}

.kotlin-details-card h4 {
    color: var(--dark-text);
    font-size: 14px;
    margin-bottom: 14px;
}

/* Class Probabilities */

.kotlin-probability {
    margin-bottom: 12px;
}

.kotlin-probability:last-child {
    margin-bottom: 0;
}

.kotlin-probability-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 5px;
}

.kotlin-probability-info span {
    color: var(--muted-text);
}

.kotlin-probability-info strong {
    color: #52686B;
}

.kotlin-progress-track {
    width: 100%;
    height: 5px;
    background: var(--mint);
    border-radius: 10px;
    overflow: hidden;
}

.kotlin-progress-fill {
    height: 100%;
    background: var(--secondary);
    border-radius: 10px;
}

/* Recommendation */

.kotlin-recommendation-card h3 {
    margin-bottom: 12px;
}

.kotlin-recommendation-card p {
    color: var(--muted-text);
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 8px;
}

.kotlin-recommendation-card p:last-child {
    margin-bottom: 0;
}



/* ==============================
   SCREENING HISTORY
============================== */

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
}

.history-item-top,
.history-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.history-type {
    color: var(--secondary);
    font-size: 12px;
    font-weight: bold;
}

.history-arrow {
    color: var(--muted-text);
    font-size: 22px;
}

.history-item h4 {
    color: var(--primary);
    font-size: 15px;
    margin: 12px 0;
}

.history-item-bottom {
    color: var(--muted-text);
    font-size: 11px;
}

.history-item-bottom strong {
    color: var(--primary);
    font-size: 13px;
}

