/* Adulting 101 - Fun Coral/Orange Theme */
:root {
    --primary-color: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fed7aa;
    --primary-50: #fff7ed;
    --primary-100: #ffedd5;
    --primary-600: #ea580c;
    --primary-700: #c2410c;
    --secondary-color: #0ea5e9;
    --success-color: #22c55e;
    --warning-color: #eab308;
    --danger-color: #ef4444;
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--gray-800);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header .subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Landing Content */
.landing-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.info-card {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
}

.info-card h2 {
    color: var(--gray-800);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card p {
    color: var(--gray-600);
    font-size: 1.05rem;
}

.info-card.instructions ol {
    margin-left: 20px;
    color: var(--gray-600);
}

.info-card.instructions li {
    padding: 8px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.info-item {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.info-item h3 {
    color: var(--gray-800);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Form */
.start-form {
    max-width: 400px;
    margin: 30px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-100);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-large {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
}

/* Back Link */
.back-link {
    text-align: center;
    margin-top: 30px;
}

.back-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    color: white;
    opacity: 0.9;
}

/* ==================== TEST PAGE ==================== */
.test-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.test-header {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px 25px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: var(--shadow);
}

.header-left h1 {
    font-size: 1.4rem;
    color: var(--gray-800);
}

.student-info {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-800);
    background: var(--gray-100);
    padding: 8px 16px;
    border-radius: var(--radius);
}

.timer.warning {
    background: #fef3c7;
    color: #d97706;
}

.timer.danger {
    background: #fee2e2;
    color: #dc2626;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Question Cards */
.test-content {
    flex: 1;
}

.question-card {
    display: none;
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.3s ease;
}

.question-card.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.question-number {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.question-category {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.question-text {
    font-size: 1.15rem;
    color: var(--gray-800);
    margin-bottom: 25px;
    line-height: 1.7;
}

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

.option-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 16px 20px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.option-label:hover {
    border-color: var(--primary-color);
    background: var(--primary-50);
}

.option-label input {
    display: none;
}

.option-label input:checked + .option-marker {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.option-label input:checked ~ .option-text {
    color: var(--gray-900);
    font-weight: 500;
}

.option-label:has(input:checked) {
    border-color: var(--primary-color);
    background: var(--primary-50);
}

.option-marker {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-500);
    flex-shrink: 0;
    transition: all 0.2s;
}

.option-text {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.5;
    padding-top: 4px;
}

/* Test Footer */
.test-footer {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    box-shadow: var(--shadow);
}

.question-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.nav-dot {
    width: 32px;
    height: 32px;
    border: 2px solid var(--gray-300);
    background: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
}

.nav-dot:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.nav-dot.answered {
    background: var(--primary-100);
    border-color: var(--primary-color);
    color: var(--primary-700);
}

.nav-dot.answered.active {
    background: var(--primary-color);
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: var(--gray-800);
}

.modal-content p {
    color: var(--gray-600);
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ==================== RESULTS PAGE ==================== */
.results-header {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: var(--shadow);
}

.results-header h1 {
    font-size: 2rem;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.results-header .student-info {
    color: var(--gray-500);
    margin-bottom: 25px;
}

.score-display {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.score-item {
    text-align: center;
}

.score-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.score-label {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.print-section {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.summary-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
}

.summary-card h3 {
    color: var(--gray-800);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

.summary-card .icon {
    font-size: 1.3rem;
}

/* Skill Breakdown */
.skill-breakdown {
    margin-bottom: 25px;
}

.skill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-100);
    gap: 20px;
}

.skill-row:last-child {
    border-bottom: none;
}

.skill-info {
    flex: 1;
    min-width: 0;
}

.skill-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.skill-grade {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.skill-score {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.skill-bar {
    width: 120px;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.skill-fill.excellent { background: var(--success-color); }
.skill-fill.good { background: #84cc16; }
.skill-fill.needs-work { background: var(--warning-color); }
.skill-fill.struggling { background: var(--danger-color); }

.skill-percent {
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 45px;
    text-align: right;
}

.skill-percent.excellent { color: var(--success-color); }
.skill-percent.good { color: #65a30d; }
.skill-percent.needs-work { color: #ca8a04; }
.skill-percent.struggling { color: var(--danger-color); }

/* Recommendations */
.recommendations {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.recommendations h2 {
    color: var(--gray-800);
    margin-bottom: 20px;
}

.recommendation-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 15px;
    border-left: 4px solid var(--gray-300);
}

.recommendation-item.priority-high {
    border-left-color: var(--danger-color);
    background: #fef2f2;
}

.recommendation-item.priority-medium {
    border-left-color: var(--warning-color);
    background: #fefce8;
}

.recommendation-item.priority-low {
    border-left-color: var(--success-color);
    background: #f0fdf4;
}

.rec-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rec-content h4 {
    color: var(--gray-800);
    margin-bottom: 5px;
}

.rec-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.rec-tip {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-style: italic;
}

/* Detailed Results */
.detailed-results {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.detailed-results h2 {
    color: var(--gray-800);
    margin-bottom: 20px;
}

.results-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--gray-200);
    background: white;
    border-radius: var(--radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.result-item {
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    border: 2px solid var(--gray-200);
}

.result-item.correct {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.result-item.incorrect {
    border-color: #fecaca;
    background: #fef2f2;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.result-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.question-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-skill {
    background: var(--primary-100);
    color: var(--primary-700);
}

.badge-category {
    background: var(--gray-100);
    color: var(--gray-600);
}

.result-status {
    font-weight: 600;
    font-size: 0.9rem;
}

.result-status.correct {
    color: var(--success-color);
}

.result-status.incorrect {
    color: var(--danger-color);
}

.result-question {
    color: var(--gray-800);
    margin-bottom: 15px;
    line-height: 1.6;
}

.result-answers {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.answer-box {
    flex: 1;
    min-width: 150px;
    padding: 12px 15px;
    border-radius: var(--radius);
    background: white;
}

.answer-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.answer-value {
    font-weight: 600;
    color: var(--gray-800);
}

.answer-box.wrong {
    background: #fee2e2;
}

.answer-box.wrong .answer-value {
    color: var(--danger-color);
    text-decoration: line-through;
}

.answer-box.correct-answer {
    background: #dcfce7;
}

.answer-box.correct-answer .answer-value {
    color: var(--success-color);
}

.result-explanation {
    margin-top: 12px;
    padding: 12px 15px;
    background: white;
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--gray-600);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    color: var(--gray-500);
}

.footer p {
    margin-bottom: 5px;
}

/* Print Styles */
@media print {
    body {
        background: white;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .no-print {
        display: none !important;
    }

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

    .results-header,
    .summary-card,
    .skill-breakdown,
    .recommendations,
    .detailed-results {
        box-shadow: none;
        border: 1px solid var(--gray-200);
        break-inside: avoid;
    }

    .result-item {
        break-inside: avoid;
    }

    .skill-fill {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .header h1 {
        font-size: 2rem;
    }

    .landing-content {
        padding: 25px;
    }

    .test-header {
        flex-direction: column;
        text-align: center;
    }

    .header-right {
        width: 100%;
        justify-content: center;
    }

    .test-footer {
        flex-direction: column;
    }

    .question-nav {
        order: 3;
        width: 100%;
    }

    .score-display {
        gap: 20px;
    }

    .score-value {
        font-size: 2rem;
    }

    .skill-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .skill-score {
        width: 100%;
    }

    .skill-bar {
        flex: 1;
    }
}
