/* Quiz-specific styles */

/* Main Quiz Layout */
.quiz-main {
    padding-top: 80px; /* Account for fixed navbar */
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 100%);
}

/* Quiz Header Section */
.quiz-header-section {
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.quiz-header-content h1 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-4xl);
}

.quiz-intro {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-2xl);
    line-height: 1.6;
}

.quiz-start-btn {
    margin-top: var(--spacing-lg);
}

/* Quiz Container */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-2xl);
    background: var(--background-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-large);
}

/* Progress Bar */
.quiz-progress {
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width var(--transition-normal);
    width: 14.3%; /* Start at 1/7 for question 1 */
}

.progress-text {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    font-weight: 500;
}

/* Question Container */
.quiz-question-container {
    margin-bottom: var(--spacing-2xl);
}

.quiz-question {
    margin-bottom: var(--spacing-xl);
}

.quiz-question h3 {
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.question-area {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0;
}

/* Quiz Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-container {
    background: var(--background-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-large);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: var(--spacing-2xl) var(--spacing-2xl) var(--spacing-lg);
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-2xl);
}

.modal-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: var(--font-size-base);
}

.modal-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--background-light);
    color: var(--text-primary);
}

.modal-form {
    padding: var(--spacing-lg) var(--spacing-2xl) var(--spacing-2xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: border-color var(--transition-fast);
    background: var(--background-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    opacity: 0;
    position: absolute;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.form-actions .btn {
    min-width: 140px;
}

.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-overlay {
        padding: var(--spacing-md);
    }
    
    .modal-header {
        padding: var(--spacing-lg);
    }
    
    .modal-form {
        padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 500px;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-large);
    z-index: 1001;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-sm);
    animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-success {
    background: #f0fdf4;
    border: 1px solid #22c55e;
    color: #166534;
}

.notification-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #dc2626;
}

.notification-info {
    background: #eff6ff;
    border: 1px solid #3b82f6;
    color: #1e40af;
}

.notification-message {
    flex: 1;
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 1;
}

/* Responsive Notifications */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

.quiz-option {
    background: var(--background-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.quiz-option:hover {
    border-color: var(--primary-color);
    background: var(--background-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.quiz-option.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
}

.option-number {
    font-weight: 700;
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    min-width: 24px;
    text-align: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-text {
    color: var(--text-primary);
    font-size: var(--font-size-base);
    line-height: 1.4;
    flex: 1;
}

/* Quiz Navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.quiz-prev-btn,
.quiz-next-btn {
    min-width: 120px;
}

.quiz-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Results Section */
.quiz-results {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-2xl);
}

.results-content h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

/* Summary Card */
.results-summary-card {
    background: var(--background-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow-large);
}

.results-summary-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.summary-overview {
    margin-bottom: var(--spacing-xl);
}

.level-counts {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.level-count {
    text-align: center;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    min-width: 80px;
}

.level-count.high {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.level-count.medium {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.level-count.low {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.level-count .count {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    line-height: 1;
}

.level-count .label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Phase 2: Donut Chart Styles */
.donut-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--spacing-xl) 0;
    position: relative;
}

.donut-chart {
    width: 200px;
    height: 200px;
    position: relative;
}

.donut-chart svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-chart .donut-segment {
    fill: none;
    stroke-width: 20;
    transition: stroke-width 0.3s ease, opacity 0.3s ease;
}

.donut-chart .donut-segment.high {
    stroke: #10b981;
}

.donut-chart .donut-segment.medium {
    stroke: #f59e0b;
}

.donut-chart .donut-segment.low {
    stroke: #ef4444;
}

.donut-chart .donut-segment:hover {
    stroke-width: 25;
    opacity: 0.8;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.donut-center-title {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.donut-center-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.donut-legend {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
}

.donut-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.donut-legend-color.high {
    background: #10b981;
}

.donut-legend-color.medium {
    background: #f59e0b;
}

.donut-legend-color.low {
    background: #ef4444;
}

.donut-legend-text {
    color: var(--text-secondary);
    font-weight: 500;
}

.donut-legend-percentage {
    color: var(--text-primary);
    font-weight: 600;
    margin-left: var(--spacing-xs);
}

/* Readiness Areas Cards */
.readiness-areas {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.area-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-small);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: cardEntrance 0.6s ease-out forwards;
}

/* Phase 2: Priority-based Visual Cues */
.area-card.high {
    border-left: 4px solid #10b981;
}

.area-card.high::after {
    content: '✓';
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.area-card.medium {
    border-left: 4px solid #f59e0b;
    animation: cardEntrance 0.6s ease-out forwards, mediumPulse 2s ease-in-out infinite 0.8s;
}

.area-card.low {
    border-left: 4px solid #ef4444;
    border-color: #ef4444;
}

.area-card.low::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(239, 68, 68, 0.02);
    pointer-events: none;
}

/* Phase 2: Micro-animations */
@keyframes mediumPulse {
    0%, 100% {
        box-shadow: var(--shadow-small), 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: var(--shadow-medium), 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

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

.area-card:nth-child(1) { animation-delay: 0.1s; }
.area-card:nth-child(2) { animation-delay: 0.2s; }
.area-card:nth-child(3) { animation-delay: 0.3s; }
.area-card:nth-child(4) { animation-delay: 0.4s; }
.area-card:nth-child(5) { animation-delay: 0.5s; }
.area-card:nth-child(6) { animation-delay: 0.6s; }
.area-card:nth-child(7) { animation-delay: 0.7s; }

.area-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px) scale(1.01);
}

.area-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.area-icon {
    font-size: var(--font-size-2xl);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

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

.area-name {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.area-score-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    line-height: 1;
}

.area-score-text.high {
    color: #059669;
}

.area-score-text.medium {
    color: #d97706;
}

.area-score-text.low {
    color: #dc2626;
}

.progress-container {
    margin-top: var(--spacing-sm);
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background-color: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width var(--transition-normal);
    position: relative;
}

.progress-bar-fill.high {
    background: linear-gradient(90deg, #059669, #10b981);
}

.progress-bar-fill.medium {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.progress-bar-fill.low {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

/* Phase 2: Progress Bar Animation */
.progress-bar-fill {
    width: 0%;
    transition: width 1.5s ease-out 0.3s;
}

.progress-bar-fill.animate {
    width: var(--target-width) !important;
}

/* Phase 2: Smooth Expand/Collapse for Checklists */
.checklist-content {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.checklist-section.expanded .checklist-content {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.expand-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checklist-section.expanded .expand-icon {
    transform: rotate(45deg);
}

/* Phase 2: Accessibility - Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .area-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .area-card.medium {
        animation: none;
    }
    
    .progress-bar-fill {
        transition: none;
        width: var(--target-width) !important;
    }
    
    @keyframes mediumPulse {
        0%, 100% {
            box-shadow: var(--shadow-small);
        }
    }
    
    .checklist-content,
    .checklist-section.expanded .checklist-content,
    .expand-icon {
        transition: none;
    }
}

/* Phase 2: Donut Chart Animation */
.donut-segment {
    stroke-dasharray: 0 628; /* 2 * π * 100 (radius) */
    animation: donutFill 1.5s ease-out forwards;
}

@keyframes donutFill {
    from {
        stroke-dasharray: 0 628;
    }
    to {
        stroke-dasharray: var(--segment-length) 628;
    }
}

@media (prefers-reduced-motion: reduce) {
    .donut-segment {
        animation: none;
        stroke-dasharray: var(--segment-length) 628;
    }
}

/* Legacy table styles (kept for backward compatibility) */
.summary-table {
    overflow-x: auto;
    display: none; /* Hidden by default, can be shown if needed */
}

.summary-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-md);
}

.summary-table th,
.summary-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.summary-table th {
    background: var(--background-light);
    font-weight: 600;
    color: var(--text-primary);
}

.level-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-badge.high {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.level-badge.medium {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.level-badge.low {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Checklists Section */
.results-checklists {
    margin-bottom: var(--spacing-2xl);
}

.results-checklists h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.checklists-intro {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-lg);
}

.checklist-sections {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.checklist-section {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-small);
}

.checklist-header {
    padding: var(--spacing-lg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background-light);
    transition: background-color var(--transition-normal);
}

.checklist-header:hover {
    background: rgba(37, 99, 235, 0.05);
}

.checklist-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--font-size-lg);
}

.checklist-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.expand-icon {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    transition: transform var(--transition-normal);
}

.checklist-section.expanded .expand-icon {
    transform: rotate(45deg);
}

.checklist-content {
    padding: 0 var(--spacing-lg);
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.checklist-section.expanded .checklist-content {
    padding: var(--spacing-lg);
    max-height: 1000px;
}

.checklist-content h5 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-base);
}

.checklist-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist-items li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: var(--spacing-lg);
    line-height: 1.5;
}

.checklist-items li:last-child {
    border-bottom: none;
}

.checklist-items li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.results-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-2xl);
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-main {
        padding-top: 70px;
    }
    
    .quiz-header-content h1 {
        font-size: var(--font-size-3xl);
    }
    
    .quiz-intro {
        font-size: var(--font-size-base);
    }
    
    .quiz-container,
    .quiz-results {
        margin: 0 var(--spacing-md);
        padding: var(--spacing-lg);
    }
    
    .quiz-question h3 {
        font-size: var(--font-size-xl);
    }
    
    .quiz-navigation {
        flex-direction: column;
    }
    
    .quiz-prev-btn,
    .quiz-next-btn {
        width: 100%;
        min-width: auto;
    }
    
    .level-counts {
        flex-direction: column;
        align-items: center;
    }
    
    .level-count {
        width: 100%;
        max-width: 200px;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .results-actions .btn {
        width: 100%;
    }
    
    /* Phase 2: Donut Chart Responsive */
    .donut-chart {
        width: 160px;
        height: 160px;
    }
    
    .donut-chart .donut-segment {
        stroke-width: 16;
    }
    
    .donut-chart .donut-segment:hover {
        stroke-width: 18;
    }
    
    .donut-center-value {
        font-size: var(--font-size-xl);
    }
    
    .donut-legend {
        gap: var(--spacing-md);
    }
    
    .donut-legend-item {
        font-size: var(--font-size-xs);
    }

    /* Area cards responsive */
    .area-card {
        padding: var(--spacing-md);
    }
    
    .area-card.high::after {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        width: 20px;
        height: 20px;
        font-size: var(--font-size-xs);
    }
    
    .area-header {
        gap: var(--spacing-sm);
    }
    
    .area-icon {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-xl);
    }
    
    .area-name {
        font-size: var(--font-size-base);
    }
    
    .area-score-text {
        font-size: var(--font-size-lg);
    }
    
    .progress-bar-bg {
        height: 10px;
    }
    
    /* Legacy table styles */
    .summary-table {
        font-size: var(--font-size-sm);
    }
    
    .summary-table th,
    .summary-table td {
        padding: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .quiz-option {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }
    
    .option-number {
        width: 28px;
        height: 28px;
        font-size: var(--font-size-base);
    }
    
    .option-text {
        font-size: var(--font-size-sm);
    }
    
    .checklist-header {
        padding: var(--spacing-md);
    }
    
    .checklist-section.expanded .checklist-content {
        padding: var(--spacing-md);
    }
}
/* Button Icons */
.btn-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.3s ease-out;
}

.notification-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.notification-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.notification-info {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    color: #1e40af;
}

.notification-message {
    flex: 1;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Results Actions Styling */
.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.results-actions .btn {
    min-width: 180px;
}

/* Loading State for Buttons */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
}