/* =============================================================================
   SJT Assessment Styles
   Pets at Home — Veterinary Practice Manager Situational Judgment Test
   ============================================================================= */

/* ----------------------------------------------------------------------------
   Layout Container
   ---------------------------------------------------------------------------- */

.sjt-app-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

/* ----------------------------------------------------------------------------
   Introduction View
   ---------------------------------------------------------------------------- */

.sjt-page-title {
    font-family: 'Pets Headline', 'Open Sans', sans-serif;
    font-size: 32px;
    color: #002828;
    margin-bottom: 4px;
    line-height: 1.2;
}

.sjt-page-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #555;
    margin-bottom: 32px;
}

.sjt-intro-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 28px 32px;
    margin-bottom: 28px;
    border-left: 4px solid #00aa28;
}

.sjt-intro-card h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #002828;
    margin-top: 20px;
    margin-bottom: 10px;
}

.sjt-intro-card h3:first-child {
    margin-top: 0;
}

.sjt-intro-card p {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
}

.sjt-intro-card ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.sjt-intro-card ul li {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 6px;
}

.sjt-intro-actions {
    margin-bottom: 16px;
}

.sjt-disclaimer {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

/* ----------------------------------------------------------------------------
   Progress Indicator
   ---------------------------------------------------------------------------- */

.sjt-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 24px 0 32px;
}

.sjt-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    position: relative;
    transition: background 0.3s ease;
}

.sjt-step.active {
    background: #00aa28;
}

.sjt-step.completed {
    background: #00aa28;
}

.sjt-step.completed::after {
    content: '\2713';
    font-size: 14px;
    color: #fff;
    position: absolute;
}

.sjt-step.completed .sjt-step-num {
    display: none;
}

.sjt-step-connector {
    flex: 1;
    height: 2px;
    background: #ccc;
    transition: background 0.3s ease;
}

.sjt-step-connector.completed {
    background: #00aa28;
}

.sjt-progress-label {
    font-size: 14px;
    color: #555;
    white-space: nowrap;
    margin-left: 8px;
    font-family: 'Open Sans', sans-serif;
}

/* ----------------------------------------------------------------------------
   Scenario Card
   ---------------------------------------------------------------------------- */

.sjt-scenario-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 28px 32px;
    margin-bottom: 24px;
    border-left: 4px solid #00aa28;
}

.sjt-scenario-card h2 {
    font-family: 'Pets Headline', 'Open Sans', sans-serif;
    font-size: 20px;
    color: #002828;
    margin-bottom: 12px;
    line-height: 1.3;
}

.sjt-scenario-card .sjt-competency-q {
    font-size: 15px;
    color: #555;
    font-style: italic;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.sjt-scenario-card .sjt-scenario-text {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 16px;
}

.sjt-scenario-card .sjt-candidate-prompt {
    font-size: 15px;
    color: #002828;
    font-weight: 600;
    line-height: 1.6;
}

/* ----------------------------------------------------------------------------
   Answer Section
   ---------------------------------------------------------------------------- */

.sjt-answer-section {
    margin-bottom: 24px;
}

.sjt-answer-section label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #002828;
    margin-bottom: 8px;
    font-family: 'Open Sans', sans-serif;
}

.sjt-answer-section textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 140px;
    max-height: 400px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 14px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease;
    color: #333;
    background: #fff;
}

.sjt-answer-section textarea:focus {
    border-color: #00aa28;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 170, 40, 0.15);
}

.sjt-answer-section textarea[disabled],
.sjt-answer-section textarea:disabled {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
    resize: none;
}

.sjt-char-count {
    font-size: 13px;
    color: #888;
    text-align: right;
    margin-top: 4px;
    font-family: 'Open Sans', sans-serif;
    transition: color 0.2s;
}

.sjt-char-count.sjt-char-warning {
    color: #e65100;
    font-weight: 600;
}

.sjt-char-count.sjt-char-limit {
    color: #c62828;
    font-weight: 700;
}

.sjt-inline-error {
    font-size: 13px;
    color: #c62828;
    margin-top: 6px;
    font-family: 'Open Sans', sans-serif;
    display: none;
}

.sjt-inline-error.visible {
    display: block;
}

/* ----------------------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------------------- */

.sjt-btn {
    display: inline-block;
    background: #00aa28;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
    min-width: 160px;
    transition: background 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.sjt-btn:hover {
    background: #008f22;
}

.sjt-btn:focus-visible {
    outline: 2px solid #0059AB;
    outline-offset: 2px;
}

.sjt-btn:disabled,
.sjt-btn[disabled] {
    background: #ccc;
    cursor: not-allowed;
    color: #fff;
}

.sjt-btn-secondary {
    background: transparent;
    color: #00aa28;
    border: 2px solid #00aa28;
}

.sjt-btn-secondary:hover {
    background: #f1f8f2;
}

/* Skip to Demo Results (PoC feature) */
.sjt-skip-demo {
    margin-top: 32px;
    text-align: center;
}

.sjt-skip-demo-divider {
    border-top: 1px dashed #ccc;
    margin-bottom: 16px;
}

.sjt-btn-skip {
    background: #666;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 6px;
}

.sjt-btn-skip:hover {
    background: #555;
}

.sjt-skip-demo-note {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    font-style: italic;
}

/* Demo skip multi-stage loading */
.sjt-demo-stages {
    text-align: center;
    padding: 48px 20px;
    max-width: 480px;
    margin: 0 auto;
}

.sjt-demo-stages h2 {
    font-family: 'Pets Headline', 'Open Sans', sans-serif;
    font-size: 22px;
    color: #002828;
    margin-bottom: 4px;
}

.sjt-demo-stages-sub {
    font-size: 14px;
    color: #888;
    margin-bottom: 32px;
}

.sjt-stages-list {
    text-align: left;
}

.sjt-stage {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.sjt-stage:last-child {
    border-bottom: none;
}

.sjt-stage.active,
.sjt-stage.done {
    opacity: 1;
}

.sjt-stage-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.sjt-stage.active .sjt-stage-icon {
    border-color: #00aa28;
    animation: sjt-spin 0.8s linear infinite;
}

.sjt-stage.active .sjt-stage-icon::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00aa28;
}

.sjt-stage.done .sjt-stage-icon {
    border-color: #00aa28;
    background: #00aa28;
    animation: none;
}

.sjt-stage.done .sjt-stage-icon::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.sjt-stage-label {
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    color: #555;
    transition: color 0.3s ease;
}

.sjt-stage.active .sjt-stage-label {
    color: #002828;
    font-weight: 600;
}

.sjt-stage.done .sjt-stage-label {
    color: #2e7d32;
}

@keyframes sjt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sjt-btn-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------------------------
   Question Timer
   ---------------------------------------------------------------------------- */

.sjt-timer {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin-left: auto;
    white-space: nowrap;
}

.sjt-timer.expired {
    color: #c62828;
}

/* ----------------------------------------------------------------------------
   Candidate Name Input
   ---------------------------------------------------------------------------- */

.sjt-name-group {
    margin-bottom: 24px;
}

.sjt-name-group label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: #002828;
    margin-bottom: 8px;
    font-family: 'Open Sans', sans-serif;
}

.sjt-name-group input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 12px 14px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease;
}

.sjt-name-group input[type="text"]:focus {
    border-color: #00aa28;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 170, 40, 0.15);
}

/* ----------------------------------------------------------------------------
   Evaluating / Progress Ring
   ---------------------------------------------------------------------------- */

.sjt-evaluating {
    text-align: center;
    padding: 48px 20px;
}

.sjt-evaluating p {
    font-size: 15px;
    color: #555;
    margin-top: 16px;
    font-family: 'Open Sans', sans-serif;
}

/* Steganographic watermark — invisible to users, copied on select-all */
.sjt-wm {
    font-size: 0;
    line-height: 0;
    color: transparent;
    display: inline;
    pointer-events: none;
}

/* Progress ring — replaces bouncing dots */
.sjt-progress-ring-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sjt-progress-ring {
    transform: rotate(-90deg);
}

.sjt-progress-ring-track {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 6;
}

.sjt-progress-ring-fill {
    fill: none;
    stroke: #00aa28;
    stroke-width: 6;
    stroke-linecap: round;
    /* circumference for r=40: 2 * pi * 40 = 251.33 */
    stroke-dasharray: 251.33;
    stroke-dashoffset: 251.33;
    transition: stroke-dashoffset 0.3s ease;
}

/* ----------------------------------------------------------------------------
   Follow-up Prompt Card
   ---------------------------------------------------------------------------- */

.sjt-followup-section {
    margin-bottom: 24px;
}

.sjt-followup-card {
    background: #e0f2f1;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-left: 4px solid #00897b;
}

.sjt-followup-label {
    font-size: 13px;
    font-weight: 700;
    color: #00695c;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Open Sans', sans-serif;
}

.sjt-followup-card p {
    font-size: 15px;
    color: #002828;
    line-height: 1.6;
    margin: 0;
}

.sjt-followup-note {
    font-size: 13px;
    color: #555;
    margin-bottom: 16px;
    font-style: italic;
}

/* ----------------------------------------------------------------------------
   Question Complete Banner
   ---------------------------------------------------------------------------- */

.sjt-question-complete {
    background: #f1f8f2;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border: 1px solid #c8e6c9;
}

.sjt-question-complete p {
    font-size: 15px;
    color: #2e7d32;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

/* ----------------------------------------------------------------------------
   Back Warning Toast
   ---------------------------------------------------------------------------- */

.sjt-back-warning {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.sjt-back-warning.visible {
    opacity: 1;
}

/* ----------------------------------------------------------------------------
   Report Styles
   ---------------------------------------------------------------------------- */

.sjt-report-header {
    margin-bottom: 32px;
}

.sjt-report-header h1 {
    font-family: 'Pets Headline', 'Open Sans', sans-serif;
    font-size: 28px;
    color: #002828;
    margin-bottom: 8px;
}

.sjt-report-header p {
    font-size: 15px;
    color: #555;
    margin: 0;
}

/* Overall Score Card */
.sjt-overall-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 28px 32px;
    margin-bottom: 32px;
}

.sjt-overall-card h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #002828;
    margin-bottom: 20px;
}

.sjt-score-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sjt-score-display {
    font-size: 40px;
    font-weight: 700;
    color: #002828;
    font-family: 'Open Sans', sans-serif;
    line-height: 1;
}

.sjt-score-max {
    font-size: 18px;
    color: #888;
    font-family: 'Open Sans', sans-serif;
}

.sjt-badge {
    display: inline-block;
    border-radius: 12px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.3px;
}

.sjt-badge.pass {
    background: #c8e6c9;
    color: #2e7d32;
}

.sjt-badge.fail {
    background: #ffcdd2;
    color: #c62828;
}

.sjt-progress-bar-track {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.sjt-progress-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s ease;
}

.sjt-progress-bar-fill.pass {
    background: #00aa28;
}

.sjt-progress-bar-fill.fail {
    background: #d32f2f;
}

.sjt-score-pct {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
    font-family: 'Open Sans', sans-serif;
}

.sjt-overall-assessment {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Strengths and Development Cards */
.sjt-strengths-card,
.sjt-development-card {
    background: #f9fbf9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.sjt-development-card {
    background: #fff8f8;
}

.sjt-strengths-card h3,
.sjt-development-card h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #002828;
    margin-bottom: 14px;
}

.sjt-strengths-card ul,
.sjt-development-card ul {
    padding-left: 20px;
    margin: 0;
}

.sjt-strengths-card ul li,
.sjt-development-card ul li {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* AI Detection Warnings */
.sjt-ai-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #856404;
}

.sjt-ai-warning strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.sjt-ai-warning p {
    margin: 0;
}

.sjt-ai-flag {
    background: #fff3cd;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 12px;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    color: #856404;
    font-weight: 600;
}

/* Candidate Answer Accordion */
.sjt-answer-accordion {
    margin-top: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.sjt-answer-accordion summary {
    padding: 12px 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #002828;
    cursor: pointer;
    background: #f8f9fa;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sjt-answer-accordion summary::-webkit-details-marker {
    display: none;
}

.sjt-answer-accordion summary::before {
    content: '\25B6';
    font-size: 10px;
    transition: transform 0.2s ease;
}

.sjt-answer-accordion[open] summary::before {
    transform: rotate(90deg);
}

.sjt-answer-accordion summary:hover {
    background: #eef0f2;
}

.sjt-answer-accordion-body {
    padding: 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.sjt-answer-accordion-body p {
    margin: 0 0 10px 0;
}

.sjt-answer-accordion-body p:last-child {
    margin-bottom: 0;
}

.sjt-answer-followup-block {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #ccc;
}

.sjt-answer-followup-label {
    font-weight: 600;
    font-size: 13px;
    color: #555;
    margin-bottom: 4px !important;
}

.sjt-answer-followup-prompt {
    font-style: italic;
    color: #444;
    margin-bottom: 10px !important;
}

/* Per-Question Cards */
.sjt-questions-section h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #002828;
    margin-bottom: 20px;
}

.sjt-question-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px 28px;
    margin-bottom: 20px;
    border-left: 4px solid #00aa28;
}

.sjt-question-card.fail-card {
    border-left-color: #d32f2f;
}

.sjt-question-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.sjt-question-card-header h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #002828;
    margin: 0;
    line-height: 1.3;
}

.sjt-question-score {
    font-size: 22px;
    font-weight: 700;
    color: #002828;
    font-family: 'Open Sans', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.sjt-question-score .sjt-score-of {
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

.sjt-behaviour-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.sjt-behaviour-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.sjt-behaviour-list li:last-child {
    border-bottom: none;
}

.sjt-behaviour-icon {
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1.6;
    width: 18px;
}

.sjt-behaviour-icon.good {
    color: #2e7d32;
}

.sjt-behaviour-icon.poor {
    color: #c62828;
}

.sjt-behaviour-content {
    flex: 1;
}

.sjt-behaviour-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    display: block;
}

.sjt-evidence {
    font-size: 13px;
    color: #555;
    font-style: italic;
    margin-top: 3px;
    display: block;
    line-height: 1.5;
}

.sjt-reasoning {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-top: 16px;
    border-top: 1px solid #eee;
    padding-top: 14px;
}

/* Cost Summary */
.sjt-cost-summary {
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 24px 28px;
    margin-bottom: 24px;
    margin-top: 24px;
}

.sjt-cost-summary h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #002828;
    margin-bottom: 14px;
}

.sjt-cost-summary table {
    width: 100%;
    max-width: 360px;
    border-collapse: collapse;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
}

.sjt-cost-summary td {
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.sjt-cost-summary td:last-child {
    text-align: right;
    font-family: 'Courier New', Courier, monospace;
    white-space: nowrap;
}

.sjt-cost-summary tr:last-child td {
    border-bottom: none;
    border-top: 2px solid #ccc;
    padding-top: 10px;
}

/* Report Actions */
.sjt-report-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    text-align: center;
}

.sjt-report-actions p {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
    font-family: 'Open Sans', sans-serif;
}

/* Error State */
.sjt-error-view {
    text-align: center;
    padding: 48px 20px;
}

.sjt-error-view .sjt-error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.sjt-error-view h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #002828;
    margin-bottom: 12px;
}

.sjt-error-view p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ----------------------------------------------------------------------------
   Mobile Responsive Overrides
   ---------------------------------------------------------------------------- */

@media (max-width: 767px) {
    .sjt-app-container {
        padding: 20px 16px 48px;
    }

    .sjt-page-title {
        font-size: 24px;
    }

    .sjt-page-subtitle {
        font-size: 17px;
    }

    .sjt-intro-card {
        padding: 20px 16px;
    }

    .sjt-scenario-card {
        padding: 20px 16px;
    }

    .sjt-overall-card {
        padding: 20px 16px;
    }

    .sjt-question-card {
        padding: 18px 16px;
    }

    .sjt-strengths-card,
    .sjt-development-card {
        padding: 18px 16px;
    }

    .sjt-answer-section textarea {
        font-size: 16px; /* Prevent iOS zoom */
    }

    .sjt-step {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .sjt-btn {
        width: 100%;
        text-align: center;
    }

    .sjt-btn-actions {
        flex-direction: column;
    }

    .sjt-score-display {
        font-size: 32px;
    }

    .sjt-report-header h1 {
        font-size: 22px;
    }

    .sjt-question-card-header {
        flex-direction: column;
    }

    .sjt-back-warning {
        width: calc(100% - 32px);
        white-space: normal;
        text-align: center;
    }

    .sjt-name-group input[type="text"] {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

/* ----------------------------------------------------------------------------
   Dashboard Styles
   ---------------------------------------------------------------------------- */

.sjt-dashboard-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.sjt-dashboard-title {
    font-family: 'Pets Headline', 'Open Sans', sans-serif;
    font-size: 28px;
    color: #002828;
    margin-bottom: 4px;
}

.sjt-dashboard-subtitle {
    font-size: 15px;
    color: #555;
    margin-bottom: 32px;
    font-family: 'Open Sans', sans-serif;
}

.sjt-dashboard-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.sjt-stat-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    flex: 1;
    min-width: 160px;
    border-left: 4px solid #00aa28;
}

.sjt-stat-card h3 {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-family: 'Open Sans', sans-serif;
}

.sjt-stat-card .sjt-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #002828;
    font-family: 'Open Sans', sans-serif;
    line-height: 1;
}

.sjt-dashboard-table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.sjt-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
}

.sjt-dashboard-table th {
    background: #f5f5f5;
    color: #002828;
    font-weight: 700;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.sjt-dashboard-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    vertical-align: middle;
}

.sjt-dashboard-table tr:last-child td {
    border-bottom: none;
}

.sjt-dashboard-table tr:hover td {
    background: #f9f9f9;
}

.sjt-dashboard-empty {
    text-align: center;
    padding: 48px 20px;
    color: #888;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
}

.sjt-dashboard-back {
    margin-bottom: 20px;
}

.sjt-dashboard-back a {
    color: #00aa28;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    text-decoration: none;
    font-weight: 600;
}

.sjt-dashboard-back a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .sjt-dashboard-container {
        padding: 20px 16px 48px;
    }

    .sjt-stat-card {
        min-width: calc(50% - 8px);
    }

    .sjt-dashboard-title {
        font-size: 22px;
    }
}

/* ----------------------------------------------------------------------------
   Print Stylesheet (PDF Export)
   ---------------------------------------------------------------------------- */

@media print {
    /* Hide non-report elements */
    .main-nav-wrapper,
    .header.Sticky,
    nav.new-mobile-menu,
    footer,
    .back-to-top,
    .back-to-top-zone,
    #skip-container,
    .sjt-progress,
    .sjt-report-actions,
    .sjt-back-warning,
    .sjt-skip-demo {
        display: none !important;
    }

    body {
        font-family: 'Open Sans', sans-serif;
        color: #333;
        background: #fff;
    }

    .sjt-app-container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .sjt-report-header {
        border-bottom: 2px solid #00aa28;
        padding-bottom: 16px;
        margin-bottom: 24px;
    }

    .sjt-report-header h1 {
        font-size: 22px;
        color: #002828;
    }

    .sjt-overall-card,
    .sjt-question-card,
    .sjt-strengths-card,
    .sjt-development-card {
        box-shadow: none;
        border: 1px solid #e0e0e0;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .sjt-question-card {
        margin-bottom: 16px;
    }

    .sjt-progress-bar-track {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .sjt-progress-bar-fill.pass {
        background: #00aa28 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .sjt-progress-bar-fill.fail {
        background: #d32f2f !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .sjt-badge {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    /* Force accordions open in print */
    .sjt-answer-accordion {
        border: 1px solid #ccc;
    }

    .sjt-answer-accordion-body {
        display: block !important;
    }

    .sjt-answer-accordion summary::before {
        display: none;
    }

    @page {
        margin: 20mm;
        size: A4;
    }
}
