/* EvAAL - Main Stylesheet */
/* High contrast, accessible design for assistive technology assessment */

/* CSS Custom Properties for theming */
:root {
    /* Color Palette - High Contrast */
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --primary-light: #4d94ff;
    --secondary-color: #ff6600;
    --secondary-dark: #cc5200;
    --secondary-light: #ff8533;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e0e0e0;
    
    /* Text Colors */
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --text-inverse: #ffffff;
    
    /* Success/Error Colors */
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    
    /* Typography */
    --font-family-primary: 'Arial', 'Helvetica', sans-serif;
    --font-family-secondary: 'Georgia', 'Times New Roman', serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-size-xlarge: 22px;
    --font-size-xxlarge: 28px;
    --font-size-xxxlarge: 36px;
    --line-height-base: 1.5;
    --line-height-relaxed: 1.8;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --border-radius: 8px;
    --border-radius-large: 12px;
    
    /* Shadows */
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 16px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* High Contrast Theme */
[data-theme="high-contrast"] {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #333333;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --primary-color: #ffff00;
    --secondary-color: #00ffff;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--text-inverse);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 1000;
    transition: var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-inverse);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-medium);
}

.logo-container {
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    width: 100%;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.logo-banner {
    max-width: 100%;
    height: auto;
    max-height: 158px; /* Increased by 10% from 144px (32% total increase from original 120px) */
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
}

.logo-banner:hover {
    transform: scale(1.02);
}

.main-header h1 {
    font-size: var(--font-size-xxlarge);
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: none; /* Hide the h1 text */
}

.subtitle {
    font-size: var(--font-size-large);
    opacity: 0.9;
    display: none; /* Hide the subtitle text */
}

/* Navigation */
.main-nav {
    background-color: var(--bg-secondary);
    border-bottom: 3px solid var(--primary-color);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-light);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-btn {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--font-size-base);
    font-weight: 600;
    transition: var(--transition-fast);
    min-width: 120px;
    min-height: 44px; /* WCAG touch target size */
}

.nav-btn:hover,
.nav-btn:focus {
    background-color: var(--primary-color);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.nav-btn.active {
    background-color: var(--primary-color);
    color: var(--text-inverse);
    box-shadow: var(--shadow-medium);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Screen Management */
.screen {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.screen.active {
    display: block;
}

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

/* Typography System */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    font-weight: var(--font-weight-bold);
}

h1 {
    font-size: var(--font-size-xxxlarge);
    color: var(--primary-color);
}

h2 {
    font-size: var(--font-size-xxlarge);
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
}

h3 {
    font-size: var(--font-size-xlarge);
    color: var(--text-secondary);
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: var(--font-size-large);
    color: var(--text-secondary);
    font-weight: var(--font-weight-semibold);
}

h5 {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

h6 {
    font-size: var(--font-size-small);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

/* Buttons */
.primary-btn,
.secondary-btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    min-height: 44px; /* WCAG touch target size */
    min-width: 120px;
    text-align: center;
    box-shadow: var(--shadow-light);
}

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

.primary-btn:hover,
.primary-btn:focus {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.secondary-btn {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover,
.secondary-btn:focus {
    background-color: var(--primary-color);
    color: var(--text-inverse);
    transform: translateY(-2px);
}

/* Button Groups */
.test-controls {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

/* Instructions */
.instructions {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border-radius: var(--border-radius);
}

.instructions p {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-large);
}

/* Assessment Info */
.assessment-info {
    background-color: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin: var(--spacing-xl) 0;
}

.assessment-info ul {
    list-style: none;
    padding-left: 0;
}

.assessment-info li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--bg-tertiary);
    font-size: var(--font-size-large);
}

.assessment-info li:last-child {
    border-bottom: none;
}

/* Start Actions */
.start-actions {
    text-align: center;
    margin: var(--spacing-xxl) 0;
}

/* Accessibility Controls */
.accessibility-controls {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-xl);
}

.accessibility-controls .secondary-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.icon {
    font-size: var(--font-size-large);
}

/* Placeholder Content */
.placeholder-content {
    text-align: center;
    padding: var(--spacing-xxl);
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 2px dashed var(--text-muted);
}

.placeholder-content p {
    font-size: var(--font-size-large);
    color: var(--text-muted);
}

/* Footer */
.main-footer {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    text-align: center;
    padding: var(--spacing-lg);
    margin-top: auto;
    border-top: 2px solid var(--primary-color);
}
.login-container, .register-container, .mfa-setup-container {
    text-align: center;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--bg-primary);
}

/* Center the login form */
.login-form, .register-form, .mfa-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    margin: 60px auto;
    padding: 32px 24px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
}

/* Make login inputs bigger and rounder */
.login-form input[type="email"],
.login-form input[type="text"],
.login-form input[type="password"],
.register-form input[type="First Name"],
.register-form input[type="Last Name"],
.register-form input[type="email"],
.register-form input[type="text"],
.register-form input[type="password"],
.register-form input[type="Confirm Password"],
.mfa-form input[type="text"]
 {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.2rem;
    border-radius: 32px;
    border: 2px solid var(--bg-tertiary);
    margin-bottom: 24px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition-fast);
    box-sizing: border-box;
}

.login-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Center the login button */
.login-form button, .register-form button, .mfa-form button{
    width: 100%;
    padding: 16px 0;
    border-radius: 32px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .test-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .accessibility-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .main-content {
        padding: var(--spacing-md);
    }
    
    .logo-banner {
        max-height: 106px; /* Increased by 10% from 96px */
    }
    
    .logo-container {
        padding: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
        --font-size-large: 18px;
        --font-size-xlarge: 20px;
        --font-size-xxlarge: 24px;
    }
    
    .main-header {
        padding: var(--spacing-md);
    }
    
    .main-header h1 {
        font-size: var(--font-size-xlarge);
    }
    
    .logo-banner {
        max-height: 79px; /* Increased by 10% from 72px */
    }
    
    .logo-container {
        margin-bottom: var(--spacing-sm);
        padding: var(--spacing-xs);
    }
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High Contrast Focus */
[data-theme="high-contrast"] button:focus,
[data-theme="high-contrast"] a:focus,
[data-theme="high-contrast"] input:focus,
[data-theme="high-contrast"] select:focus,
[data-theme="high-contrast"] textarea:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

/* Student Bio Form Styles */
.bio-form {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
}

.form-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-large);
    border-bottom: 2px solid var(--bg-tertiary);
    padding-bottom: var(--spacing-sm);
}
/* Checkbox Label Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    margin-bottom: 6px;
    cursor: pointer;
    background-color: var(--bg-primary);
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition-fast);
}

.checkbox-label:hover {
    background-color: #f0f0f0;
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

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

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

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

.form-group label[for*="required"]::after,
.form-group label[for="student-name"]::after,
.form-group label[for="date-of-birth"]::after,
.form-group label[for="grade-level"]::after,
.form-group label[for="eligibility-class-primary"]::after {
    content: " *";
    color: var(--error-color);
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-family: var(--font-family-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.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(0, 102, 204, 0.1);
}

.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: var(--error-color);
}

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

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--bg-tertiary);
}

.form-actions .primary-btn,
.form-actions .secondary-btn {
    flex: 1;
    max-width: 200px;
}

/* High contrast theme adjustments for bio form */
[data-theme="high-contrast"] .bio-form {
    background-color: var(--bg-secondary);
    border: 2px solid var(--primary-color);
}

[data-theme="high-contrast"] .form-section {
    background-color: var(--bg-tertiary);
    border-left-color: var(--secondary-color);
}

[data-theme="high-contrast"] .form-group input,
[data-theme="high-contrast"] .form-group select,
[data-theme="high-contrast"] .form-group textarea {
    background-color: var(--bg-primary);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Mobile responsiveness for bio form */
@media (max-width: 768px) {
    .bio-form {
        padding: var(--spacing-md);
        margin: var(--spacing-md);
    }
    
    .form-section {
        padding: var(--spacing-md);
    }
    
    .form-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .form-actions .primary-btn,
    .form-actions .secondary-btn {
        max-width: none;
    }
}

/* Results Page Styles */
.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.report-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.evaal-header {
    margin-bottom: 20px;
}

.evaal-header h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin: 0;
    font-weight: bold;
}

.report-logo-banner {
    display: none;
}

.evaal-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 5px 0 0 0;
    font-style: italic;
}

.report-title h2 {
    font-size: 2rem;
    color: #34495e;
    margin: 0 0 10px 0;
}

.report-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0;
}

.report-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.meta-item {
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    border: 1px solid var(--bg-tertiary);
}

.report-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-light);
}

.report-section h3 {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-xlarge);
    font-weight: var(--font-weight-semibold);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
}

.student-summary {
    background: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    border-left: 3px solid var(--primary-color);
    box-shadow: var(--shadow-light);
}

.student-summary p {
    margin: 0;
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.student-summary-full-width {
    background: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-lg);
    border-left: 3px solid var(--primary-color);
    box-shadow: var(--shadow-light);
    width: 100%;
}

.student-summary-full-width h4 {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-semibold);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
}

.student-summary-full-width p {
    margin: 0;
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

/* Student Information */
.student-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.info-group {
    background: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--bg-tertiary);
    box-shadow: var(--shadow-light);
}

.info-group h4 {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-semibold);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--bg-tertiary);
    align-items: center;
}

.info-label {
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.info-value {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
}

.info-text {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-md);
    line-height: var(--line-height-base);
    color: var(--text-secondary);
    border: 1px solid var(--bg-tertiary);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.summary-item {
    background: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--bg-tertiary);
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.summary-label {
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-small);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: var(--font-size-xlarge);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.status-complete {
    color: #27ae60;
}

.status-partial {
    color: #f39c12;
}

.status-not-started {
    color: #e74c3c;
}

.result-status.skipped {
    color: var(--warning-color, #ff6b35);
    font-weight: 600;
}

.metric-value.skipped {
    color: var(--warning-color, #ff6b35);
    font-weight: 600;
}

/* Charts and Visual Elements */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.chart-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chart-item h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-label {
    min-width: 120px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.bar-container {
    flex: 1;
    height: 25px;
    background: #ecf0f1;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.bar-container .bar-svg {
    display: none;
}

.bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.3s ease;
    position: relative;
}

.bar-value {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    font-size: 0.8rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Method Analysis */
.analysis-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.analysis-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.analysis-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.analysis-section p {
    line-height: 1.6;
    color: #34495e;
    margin: 0;
}

/* Subtest Results */
.subtest-result {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--bg-tertiary);
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
}

.subtest-result:hover {
    box-shadow: var(--shadow-medium);
}

.subtest-result h4 {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-semibold);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.summary-metric {
    text-align: center;
}

.metric-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #34495e;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-label {
    font-weight: 600;
    color: #2c3e50;
}

.detail-value {
    color: #34495e;
}

.result-summary-statement {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #3498db;
    margin-top: 15px;
}

.result-summary-statement p {
    margin: 0;
    line-height: 1.6;
    color: #2c3e50;
}

/* Round Breakdown */
.round-breakdown {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.round-breakdown h5 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1rem;
}

.round-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.round-name {
    font-weight: 600;
    color: #2c3e50;
}

.round-wpm, .round-accuracy, .round-time {
    font-weight: 500;
    color: #34495e;
}

/* Preferences Summary */
.preferences-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.preferences-summary h5 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1rem;
}

.preferences-summary ul {
    margin: 0;
    padding-left: 20px;
}

.preferences-summary li {
    margin-bottom: 5px;
    color: #34495e;
}

/* Exercise Breakdown */
.exercise-breakdown {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.exercise-breakdown h5 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1rem;
}

.exercise-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    gap: 20px;
}

.exercise-name {
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    min-width: 0;
}

.exercise-accuracy {
    font-weight: 500;
    color: #34495e;
    text-align: center;
    min-width: 120px;
    order: 2;
}

.exercise-time {
    font-weight: 500;
    color: #34495e;
    text-align: center;
    min-width: 80px;
    order: 3;
}

/* Report Footer */
.report-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.footer-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.primary-btn, .secondary-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background: #3498db;
    color: white;
}

.primary-btn:hover {
    background: #2980b9;
}

.secondary-btn {
    background: #95a5a6;
    color: white;
}

.secondary-btn:hover {
    background: #7f8c8d;
}

.footer-disclaimer {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
}
.dashboard-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}
/* Responsive Design */
@media (max-width: 768px) {
    .results-container {
        padding: 15px;
    }
    
    .evaal-header h1 {
        font-size: 2rem;
    }
    
    .report-title h2 {
        font-size: 1.5rem;
    }
    
    .student-info-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .result-summary {
        grid-template-columns: 1fr;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .footer-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .chart-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .bar-label {
        min-width: auto;
    }
}

/* Utility Classes */
.no-data {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: var(--spacing-xl);
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius);
}

/* High Contrast Theme Adjustments */
[data-theme="high-contrast"] .results-content {
    background-color: var(--bg-secondary);
    border: 2px solid var(--primary-color);
}

/* Visual Preferences: apply to test screens (not results) */
.screen:not(#results) .instructions,
.screen:not(#results) .test-instructions,
.screen:not(#results) .prompt-display,
.screen:not(#results) .prompt,
.screen:not(#results) .text-display,
.screen:not(#results) .target-text,
.screen:not(#results) .sample-text-display,
.screen:not(#results) .reading-area,
.screen:not(#results) .writing-area textarea,
.screen:not(#results) textarea,
.screen:not(#results) input[type="text"],
.screen:not(#results) .transcript,
.screen:not(#results) .spoken-text,
.screen:not(#results) .question-text {
    font-family: var(--vp-font-family, inherit) !important;
    font-size: var(--vp-font-size, inherit) !important;
    line-height: var(--vp-line-height, inherit) !important;
    letter-spacing: var(--vp-letter-spacing, normal) !important;
    word-spacing: var(--vp-word-spacing, normal) !important;
}

/* Apply typography to common instruction text elements only (avoid buttons/controls) */
.screen:not(#results) .instructions p,
.screen:not(#results) .instructions li,
.screen:not(#results) .instructions span,
.screen:not(#results) .test-instructions p,
.screen:not(#results) .test-instructions li,
.screen:not(#results) .test-instructions span,
.screen:not(#results) .prompt-display p,
.screen:not(#results) .prompt-display span,
.screen:not(#results) .prompt p,
.screen:not(#results) .prompt span,
.screen:not(#results) .text-display,
.screen:not(#results) .target-text {
    font-family: var(--vp-font-family, inherit) !important;
    font-size: var(--vp-font-size, inherit) !important;
    line-height: var(--vp-line-height, inherit) !important;
    letter-spacing: var(--vp-letter-spacing, normal) !important;
    word-spacing: var(--vp-word-spacing, normal) !important;
}

/* Ensure buttons and controls keep their graphics */
.screen:not(#results) .instructions button,
.screen:not(#results) .instructions .primary-btn,
.screen:not(#results) .instructions .secondary-btn,
.screen:not(#results) .prompt-display button,
.screen:not(#results) .prompt-display .primary-btn,
.screen:not(#results) .prompt-display .secondary-btn {
    font-family: inherit !important;
    font-size: inherit !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

[data-theme="high-contrast"] .report-section {
    background-color: var(--bg-tertiary);
    border-left-color: var(--secondary-color);
}

[data-theme="high-contrast"] .info-group,
[data-theme="high-contrast"] .summary-item,
[data-theme="high-contrast"] .subtest-result,
[data-theme="high-contrast"] .recommendation-item {
    background-color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* Print Styles */
@media print {
    /* Hide navigation and controls */
    .main-nav,
    .main-header,
    .footer-actions,
    .test-controls,
    .accessibility-controls {
        display: none !important;
    }
    
    /* Reset page margins and remove unnecessary spacing */
    @page {
        margin: 0.1in;
        size: auto;
    }
    
    body {
        margin: 0;
        padding: 0;
        background: white !important;
        color: black !important;
        font-size: 11pt;
        line-height: 1.2;
        /* Allow application-selected font family (set at runtime) */
        font-family: inherit !important;
    }
    
    /* Ensure results content prints properly */
    .results-content {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        background: white !important;
        color: black !important;
        width: 100% !important;
    }

    /* Strengthen chart visibility for print */
    .chart-item { border: 1px solid #000 !important; }
    .chart { gap: 8px !important; }
    .bar-label { color: #000 !important; font-weight: bold !important; }
    .bar-container { height: 18px !important; background: #e6e6e6 !important; border: 1px solid #000 !important; }
    .bar-container .bar-svg { display: block !important; }
    .bar-fill { display: none !important; }
    .bar-value { color: #000 !important; text-shadow: none !important; right: 4px !important; font-weight: bold !important; }
    
    /* Allow natural page breaks within sections */
    .report-section {
        break-inside: auto;
        margin-bottom: 0.25em;
        padding: 0.1em;
        page-break-inside: auto;
        border-left: 1px solid #000 !important;
    }
    
    .subtest-result {
        break-inside: auto;
        margin-bottom: 0.25em;
        page-break-inside: auto;
        border: 1px solid #ccc !important;
        padding: 0.1em;
    }
    
    .recommendation-item {
        break-inside: auto;
        margin-bottom: 0.25em;
        page-break-inside: auto;
        padding: 0.1em;
    }
    
    /* Ensure headers don't break across pages but allow content to flow */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        break-after: avoid;
        margin-top: 0.1em;
        margin-bottom: 0.05em;
    }
    
    /* Remove any background colors and shadows for clean printing */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Preserve chart visibility in print */
    .bar-container {
        background: #eeeeee !important;
        border: 1px solid #000 !important;
    }
    .bar-fill {
        background-color: #000 !important;
    }
    .bar-value {
        color: #000 !important;
    }
    
    /* Optimize spacing and borders for print */
    .report-header,
    .report-section,
    .subtest-result,
    .recommendation-item {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
        margin-bottom: 0.25em;
    }

    /* Show logo only for print at top of first page */
    .report-logo-banner { display: block !important; max-height: 80px !important; width: 100% !important; object-fit: contain !important; margin-bottom: 2px !important; }
    .evaal-header { page-break-after: avoid; break-after: avoid; margin-bottom: 2px !important; }
    .report-header { page-break-after: avoid; break-after: avoid; margin-bottom: 0.1em !important; padding-bottom: 0.05em !important; }
    .report-title h2 { margin: 0 0 2px 0 !important; }
    .report-subtitle { margin: 0 !important; }
    .report-meta { margin-top: 2px !important; display: flex !important; flex-wrap: wrap !important; gap: 6px !important; }
    .report-meta .meta-item { border: none !important; background: transparent !important; padding: 0 !important; margin: 0 !important; font-size: 9pt !important; }
    /* Ensure first content section follows header on same page */
    .report-header + .report-section { page-break-before: avoid; break-before: avoid; margin-top: 0.15em !important; }
    
    /* Reduce padding for better space utilization */
    .report-section {
        padding: 0.1em !important;
    }
    
    .subtest-result {
        padding: 0.1em !important;
    }
    
    .recommendation-item {
        padding: 0.1em !important;
    }
    
    /* Optimize grid layouts for print */
    .student-info-grid,
    .summary-grid,
    .charts-container,
    .result-summary,
    .result-details {
        display: block !important;
    }
    
    .info-group,
    .summary-item,
    .chart-item {
        margin-bottom: 0.1em;
        page-break-inside: auto;
        display: block !important;
        width: 100%;
    }
    
    /* Ensure headers don't break across pages but allow content to flow */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        break-after: avoid;
        margin-top: 0.1em;
        margin-bottom: 0.05em;
        font-family: inherit !important;
        color: #000 !important;
    }
    
    h1 {
        font-size: 16pt !important;
    }
    
    h2 {
        font-size: 14pt !important;
        border-bottom: 1px solid #000 !important;
    }
    
    h3 {
        font-size: 12pt !important;
    }
    
    /* Ensure proper text contrast and emphasis */
    .status-complete,
    .status-partial,
    .status-not-started {
        color: #000 !important;
        font-weight: bold;
    }
    
    /* Remove unnecessary decorative elements */
    .evaal-header h1,
    .report-subtitle,
    .evaal-subtitle {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    /* Optimize meta information layout */
    .report-meta {
        display: block !important;
    }
    
    .meta-item {
        display: block;
        margin-right: 0;
        margin-bottom: 0.05em;
        padding: 0.05em 0.1em;
        border: 1px solid #ccc !important;
        background: #f9f9f9 !important;
    }

    /* Ensure tables print properly with clean borders and alignment */
    table {
        width: 100% !important;
        border-collapse: collapse !important;
        page-break-inside: auto;
    }
    
    th, td {
        border: 1px solid #000 !important;
        padding: 0.25em !important;
        text-align: left !important;
        background: white !important;
        color: black !important;
    }
    
    th {
        font-weight: bold !important;
        background: #f0f0f0 !important;
    }

    /* Re-assert chart styles after universal print reset */
    .charts-container { display: block !important; }
    .chart-item { border: 1px solid #000 !important; page-break-inside: auto; margin-bottom: 0.15em; }
    .chart { gap: 8px !important; }
    .bar-label { color: #000 !important; font-weight: bold !important; }
    .bar-container { height: 18px !important; background: #e6e6e6 !important; border: 1px solid #000 !important; }
    .bar-fill { background: #000 !important; opacity: 1 !important; }
    .bar-value { color: #000 !important; text-shadow: none !important; right: 4px !important; font-weight: bold !important; }
}

/* Mobile Responsiveness for Results */
@media (max-width: 768px) {
    .results-content {
        padding: var(--spacing-md);
        margin: var(--spacing-md);
    }
    
    .report-section {
        padding: var(--spacing-md);
    }
    
    .student-info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .result-summary {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .footer-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .recommendation-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
} 

/* Technology Utilization Analysis Styles */
.utilization-summary {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-light);
}

.utilization-breakdown {
    margin-bottom: var(--spacing-xl);
}

.breakdown-section {
    background-color: var(--bg-primary);
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-light);
}

.breakdown-section h5 {
    color: var(--primary-color);
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
}

.breakdown-content {
    line-height: var(--line-height-relaxed);
}

.input-analysis,
.accessibility-profile,
.academic-integration,
.learning-readiness {
    display: grid;
    gap: var(--spacing-lg);
}

.input-method,
.accessibility-area,
.academic-area {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border-left: 4px solid var(--primary-color);
}

.input-method h6,
.accessibility-area h6,
.academic-area h6 {
    color: var(--primary-dark);
    font-size: var(--font-size-base);
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
}

.input-method p,
.accessibility-area p,
.academic-area p {
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-relaxed);
}

.input-method p:last-child,
.accessibility-area p:last-child,
.academic-area p:last-child {
    margin-bottom: 0;
}

.accessibility-area ul,
.academic-area ul {
    margin-left: var(--spacing-lg);
    margin-top: var(--spacing-sm);
}

.accessibility-area li,
.academic-area li {
    margin-bottom: var(--spacing-xs);
    line-height: var(--line-height-relaxed);
}

.readiness-summary {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border: 2px solid var(--primary-color);
}

.readiness-summary h6 {
    color: var(--primary-dark);
    font-size: var(--font-size-base);
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
}

.readiness-summary ul {
    margin-left: var(--spacing-lg);
    margin-top: var(--spacing-sm);
}

.readiness-summary li {
    margin-bottom: var(--spacing-xs);
    line-height: var(--line-height-relaxed);
}

.utilization-implications {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-light);
}

.utilization-implications h4 {
    color: var(--primary-color);
    font-size: var(--font-size-xlarge);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.implications-content {
    line-height: var(--line-height-relaxed);
}

.implication-area {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--secondary-color);
}

.implication-area:last-child {
    margin-bottom: 0;
}

.implication-area h6 {
    color: var(--secondary-dark);
    font-size: var(--font-size-base);
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
}

.implication-area p {
    line-height: var(--line-height-relaxed);
    margin-bottom: 0;
}

.utilization-recommendations {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-light);
}

.utilization-recommendations h4 {
    color: var(--primary-color);
    font-size: var(--font-size-xlarge);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.integration-recommendations {
    display: grid;
    gap: var(--spacing-lg);
}

.recommendation-category {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border: 2px solid var(--bg-tertiary);
}

.recommendation-category h6 {
    color: var(--primary-dark);
    font-size: var(--font-size-base);
    font-weight: bold;
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
}

.recommendation-category ul {
    margin-left: var(--spacing-lg);
}

.recommendation-category li {
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-relaxed);
}

.recommendation-category li:last-child {
    margin-bottom: 0;
}

/* High Contrast Theme Adjustments */
[data-theme="high-contrast"] .utilization-summary,
[data-theme="high-contrast"] .breakdown-section,
[data-theme="high-contrast"] .utilization-implications,
[data-theme="high-contrast"] .utilization-recommendations {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
}

[data-theme="high-contrast"] .input-method,
[data-theme="high-contrast"] .accessibility-area,
[data-theme="high-contrast"] .academic-area,
[data-theme="high-contrast"] .readiness-summary,
[data-theme="high-contrast"] .implication-area,
[data-theme="high-contrast"] .recommendation-category {
    background-color: var(--bg-tertiary);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .utilization-summary {
        padding: var(--spacing-md);
    }
    
    .breakdown-section {
        padding: var(--spacing-md);
    }
    
    .input-analysis,
    .accessibility-profile,
    .academic-integration,
    .learning-readiness {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .utilization-implications,
    .utilization-recommendations {
        padding: var(--spacing-md);
    }
    
    .integration-recommendations {
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .breakdown-section h5 {
        font-size: var(--font-size-base);
    }
    
    .utilization-implications h4,
    .utilization-recommendations h4 {
        font-size: var(--font-size-large);
    }
    
    .input-method,
    .accessibility-area,
    .academic-area {
        padding: var(--spacing-sm);
    }
} 

/* Progress Dashboard Styles */
.progress-dashboard {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin: var(--spacing-md) 0;
    box-shadow: var(--shadow-light);
    border: 2px solid var(--bg-tertiary);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.progress-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: var(--font-size-large);
}

.progress-summary {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-small);
    color: var(--text-secondary);
}

.completed-count {
    font-weight: bold;
    color: var(--primary-color);
    font-size: var(--font-size-medium);
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 6px;
    transition: width 0.5s ease-in-out;
    width: 0%;
}

.progress-percentage {
    font-weight: bold;
    color: var(--primary-color);
    min-width: 40px;
    text-align: right;
}

.progress-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    border: 2px solid var(--bg-tertiary);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 80px;
    justify-content: center;
}

.progress-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.progress-item.completed {
    border-color: var(--success-color);
    background: linear-gradient(135deg, var(--success-color-light), var(--success-color));
}

.progress-item.in-progress {
    border-color: var(--warning-color);
    background: linear-gradient(135deg, var(--warning-color-light), var(--warning-color));
}

.progress-item.not-started {
    border-color: var(--bg-tertiary);
    background: var(--bg-primary);
}

.progress-icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--spacing-xs);
    display: block;
    object-fit: contain;
}

.progress-label {
    font-size: var(--font-size-small);
    font-weight: 500;
    text-align: center;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.progress-status {
    font-size: 10px;
    text-align: center;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-item.completed .progress-status {
    background: var(--success-color);
    color: white;
}

.progress-item.in-progress .progress-status {
    background: var(--warning-color);
    color: white;
}

.progress-item.not-started .progress-status {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .progress-items {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: var(--spacing-xs);
    }
    
    .progress-item {
        min-height: 70px;
        padding: var(--spacing-xs);
    }
    
    .progress-icon {
        width: 28px;
        height: 28px;
    }
    
    .progress-label {
        font-size: 11px;
    }
    
    .progress-status {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .progress-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progress-dashboard {
        padding: var(--spacing-md);
    }
} 

/* Recommendations Section */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recommendation-item {
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.recommendation-item.priority-high {
    border-left: 5px solid #e74c3c;
}

.recommendation-item.priority-medium {
    border-left: 5px solid #f39c12;
}

.recommendation-item.priority-low {
    border-left: 5px solid #27ae60;
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.recommendation-category {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.recommendation-priority {
    background: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.priority-high .recommendation-priority {
    background: #e74c3c;
}

.priority-medium .recommendation-priority {
    background: #f39c12;
}

.priority-low .recommendation-priority {
    background: #27ae60;
}

.recommendation-text {
    padding: 20px;
    color: #2c3e50;
    line-height: 1.6;
    font-size: 1rem;
}

/* IEP Section */
.iep-section {
    background: white;
    border-radius: 8px;
    border: 2px solid #3498db;
    margin: 30px 0;
    overflow: hidden;
}

.iep-header {
    background: #3498db;
    color: white;
    padding: 20px;
    text-align: center;
}

.iep-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.iep-content {
    padding: 30px;
}

.iep-subsection {
    margin-bottom: 30px;
}

.iep-subsection:last-child {
    margin-bottom: 0;
}

.iep-subsection h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.special-factors {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #e74c3c;
}

.special-factors p {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 10px;
}

.special-factors p:last-child {
    margin-bottom: 0;
}

.accommodations-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #27ae60;
}

.accommodations-list ul {
    margin: 0;
    padding-left: 20px;
}

.accommodations-list li {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 8px;
    font-weight: 500;
}

.accommodations-list li:last-child {
    margin-bottom: 0;
}

.iep-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
    color: #856404;
    font-style: italic;
}

/* Responsive Design for Recommendations and IEP */
@media (max-width: 768px) {
    .recommendation-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .recommendation-category {
        font-size: 0.9rem;
    }
    
    .recommendation-priority {
        font-size: 0.7rem;
    }
    
    .recommendation-text {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .iep-content {
        padding: 20px;
    }
    
    .iep-subsection h4 {
        font-size: 1.1rem;
    }
    
    .special-factors,
    .accommodations-list {
        padding: 15px;
    }
} 

/* IEP Team Members Section */
.iep-team-member {
    background: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.iep-team-member:last-child {
    margin-bottom: 0;
}

.iep-team-member .form-group {
    margin-bottom: var(--spacing-md);
}

.iep-team-member .form-group:last-child {
    margin-bottom: 0;
}

.iep-team-member .team-member-title {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family-primary);
    transition: var(--transition-fast);
}

.iep-team-member .team-member-title:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.iep-team-member textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-family: var(--font-family-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    resize: vertical;
    min-height: 80px;
    transition: var(--transition-fast);
}

.iep-team-member textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.iep-team-actions {
    margin-top: 20px;
    text-align: center;
}

#add-team-member {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
}

#add-team-member:hover {
    background: var(--primary-dark);
}

.remove-team-member {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.remove-team-member:hover {
    background: var(--error-dark);
}

/* High contrast theme for IEP Team Members */
[data-theme="high-contrast"] .iep-team-member {
    background: var(--bg-tertiary);
    border-color: var(--text-primary);
}

[data-theme="high-contrast"] .iep-team-member .team-member-title,
[data-theme="high-contrast"] .iep-team-member textarea {
    background: var(--bg-primary);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Responsive Design for IEP Team Members */
@media (max-width: 768px) {
    .iep-team-member {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .iep-team-member .team-member-title,
    .iep-team-member textarea {
        font-size: 0.9rem;
    }
    
    .remove-team-member {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
}

/* Written Expression Test Styles */
.prompt-selection,
.input-method-selection,
.assistive-features {
    margin-bottom: var(--spacing-lg);
}

.prompt-buttons,
.input-method-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-sm);
}

.prompt-btn,
.input-method-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--primary-color);
    background-color: var(--bg-primary);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    transition: var(--transition-fast);
    min-width: 150px;
    text-align: center;
}

.prompt-btn:hover,
.input-method-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-inverse);
}

.prompt-btn.active,
.input-method-btn.active {
    background-color: var(--primary-color);
    color: var(--text-inverse);
}

.feature-toggles {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    cursor: pointer;
    font-weight: var(--font-weight-medium);
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: var(--bg-tertiary);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.toggle-slider:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: var(--text-inverse);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.writing-interface {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.prompt-display {
    background-color: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

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

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

.writing-area textarea {
    width: 100%;
    min-height: 200px;
    padding: var(--spacing-md);
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--border-radius);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    resize: vertical;
    transition: var(--transition-fast);
}

.writing-area textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.writing-stats {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    padding: var(--spacing-md);
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-small);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
}

.stat-value {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.word-predictions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
}

.prediction-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--primary-light);
    color: var(--text-primary);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--font-size-small);
    transition: var(--transition-fast);
}

.prediction-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-inverse);
}

.graphic-organizer {
    background-color: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
}

.graphic-organizer h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.graphic-organizer textarea {
    width: 100%;
    min-height: 100px;
    padding: var(--spacing-md);
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--border-radius);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    resize: vertical;
}

.feedback-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.feedback-section h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.feedback-question {
    margin-bottom: var(--spacing-lg);
}

.feedback-question label {
    display: block;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-sm);
}

.feedback-question select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    background-color: var(--bg-primary);
}

.feedback-question select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: var(--font-weight-normal);
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* High contrast theme adjustments */
[data-theme="high-contrast"] .prompt-btn,
[data-theme="high-contrast"] .input-method-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="high-contrast"] .prompt-btn:hover,
[data-theme="high-contrast"] .input-method-btn:hover,
[data-theme="high-contrast"] .prompt-btn.active,
[data-theme="high-contrast"] .input-method-btn.active {
    background-color: var(--primary-color);
    color: var(--text-primary);
}

[data-theme="high-contrast"] .writing-area textarea {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--text-primary);
}

[data-theme="high-contrast"] .writing-area textarea:focus {
    border-color: var(--primary-color);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .prompt-buttons,
    .input-method-buttons {
        flex-direction: column;
    }
    
    .prompt-btn,
    .input-method-btn {
        min-width: auto;
    }
    
    .writing-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .word-predictions {
        justify-content: center;
    }
    
    .feedback-question select {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .writing-area textarea {
        min-height: 150px;
        font-size: var(--font-size-base);
    }
    
    .graphic-organizer textarea {
        min-height: 80px;
    }
    
    .stat-value {
        font-size: var(--font-size-base);
    }
}

/* Spellcheck highlighting */
.misspelled-word {
    text-decoration: underline;
    text-decoration-color: #e74c3c;
    text-decoration-thickness: 2px;
    text-decoration-style: wavy;
}

/* Sentence starter styles */
.sentence-starter {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.starter-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
}

.starter-label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.starter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.starter-btn {
    padding: 6px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.starter-btn:hover {
    background: #2980b9;
}

/* High contrast theme for new features */
[data-theme="high-contrast"] .misspelled-word {
    text-decoration-color: #ff6b6b;
}

[data-theme="high-contrast"] .sentence-starter {
    background: #000;
    border-color: #fff;
}

[data-theme="high-contrast"] .starter-btn {
    background: #fff;
    color: #000;
}

[data-theme="high-contrast"] .starter-btn:hover {
    background: #ccc;
}

@media (max-width: 768px) {
    .starter-suggestion {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .starter-buttons {
        flex-direction: column;
    }
    
    .starter-btn {
        flex: none;
        min-width: auto;
        width: 100%;
    }
}

/* Recording button styles */
.recording-btn {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.recording-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.recording-btn.recording {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

/* High contrast theme for recording button */
[data-theme="high-contrast"] .recording-btn {
    border-color: #fff;
}

[data-theme="high-contrast"] .recording-btn:hover {
    background-color: #fff !important;
    color: #000 !important;
} 
/* Remove default list styling */
.product ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product li {
  margin-bottom: 1rem;
}

/* Style the links as buttons */
.product a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product a:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.product a:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style the text content */
.product a > div:first-child {
  text-align: left;
}

.product a > div:first-child span:first-child {
  font-weight: bold;
  font-size: 2.0rem;
  display: block;
  margin-bottom: 0.25rem;
}

.product a > div:first-child span:not(:first-child){
  font-size: 1.5rem;
  opacity: 0.9;
}

/* Style the price */
.product a > div:last-child {
  font-size: 1.5rem;
  font-weight: bold;
  white-space: nowrap;
  margin-left: 1rem;
}
section  {
  text-align: center;
  margin: 2rem 0;
}
section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
section p {
  font-size: 1.25rem;
}