/* Enhanced 11+ Prep Portal Stylesheet - Dark Blue Theme */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0f172a;
    overflow-x: hidden;
}

#visualContainer,
.visual-element {
    color: #111827;
}

#visualContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#visualContainer svg {
    max-width: 100%;
    height: auto;
}

#visualContainer table {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

/* Light theme for test pages */
body.test-page,
body.auth-page {
    background-color: #ffffff;
    color: #1a202c;
}

body.test-page .container,
body.auth-page .container {
    color: #1a202c;
}

body.test-page h1,
body.test-page h2,
body.test-page h3,
body.test-page h4,
body.test-page h5,
body.test-page h6,
body.auth-page h1,
body.auth-page h2,
body.auth-page h3,
body.auth-page h4,
body.auth-page h5,
body.auth-page h6 {
    color: #1a202c;
}

body.test-page p,
body.test-page .stat-label,
body.test-page .subject-topics li,
body.auth-page p {
    color: #4a5568;
}

body.test-page .feature-card,
body.test-page .subject-card,
body.test-page .pricing-card,
body.test-page .dashboard-section,
body.auth-page .auth-card {
    background: white;
    color: #1a202c;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 3rem; font-weight: 700; }
h3 { font-size: 2rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 500; }
h6 { font-size: 1.125rem; font-weight: 500; }

p {
    margin-bottom: 1.5rem;
    color: #e2e8f0;
    font-size: 1.125rem;
}

a {
    text-decoration: none;
    color: #60a5fa;
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: #93c5fd;
    transform: translateY(-2px);
}

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 52px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border: 0.5px solid #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: #1e40af;
    border: none;
    font-weight: 600;
    height: 52px;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #f8fafc;
    color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-success:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.btn-outline {
    background: transparent;
    color: #60a5fa;
    border: 2px solid #60a5fa;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    background: #60a5fa;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 12px;
    height: 52px;
    border: 0.5px solid #ffffff;
}

.btn-full {
    width: 100%;
}

/* Enhanced Header */
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-line-1,
.logo-line-2 {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.8rem;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-right: 1rem;
}

/* Logo styles for different page types */
.child-header .logo-img,
.dashboard-header .logo-img {
    height: 45px;
    margin-right: 0.75rem;
}

.child-header .logo-line-1,
.child-header .logo-line-2,
.dashboard-header .logo-line-1,
.dashboard-header .logo-line-2 {
    font-size: 1.6rem;
}

/* Ensure logo is clickable on index and pricing pages */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo:hover {
    opacity: 0.9;
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
}

.user-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* NEW PRACTICE PANEL - FRESH START */
.practice-panel {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    text-align: center;
}

.practice-header {
    margin-bottom: 3rem;
}

.practice-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.practice-header h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.practice-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 0;
}

.practice-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.practice-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 300px;
}

.practice-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.practice-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.practice-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-badge.easy {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.card-badge.medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.card-badge.hard {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.practice-actions {
    margin-top: 2rem;
}

.card-timer-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.card-timer-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-timer-buttons .btn-primary {
    background: rgba(59, 130, 246, 0.8);
    color: white;
}

.card-timer-buttons .btn-primary:hover {
    background: rgba(59, 130, 246, 1);
    transform: translateY(-2px);
}

.card-timer-buttons .btn-success {
    background: rgba(34, 197, 94, 0.8);
    color: white;
}

.card-timer-buttons .btn-success:hover {
    background: rgba(34, 197, 94, 1);
    transform: translateY(-2px);
}

.card-timer-buttons .btn-info {
    background: rgba(59, 130, 246, 0.8);
    color: white;
}

.card-timer-buttons .btn-info:hover {
    background: rgba(59, 130, 246, 1);
    transform: translateY(-2px);
}

/* Answer Feedback */
.answer-feedback {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
}

.feedback.correct {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.feedback.incorrect {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.feedback.incorrect > strong {
    color: #dc2626;
}

.feedback.incorrect p,
.feedback.incorrect p strong {
    color: #111;
}

.feedback strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.feedback p {
    margin: 0.5rem 0 1rem 0;
    font-size: 1rem;
}

.feedback .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Saving and Success Messages */
.saving-message, .success-message {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.saving-message {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.saving-content, .success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.saving-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.success-icon {
    font-size: 2rem;
    animation: scaleIn 0.5s ease;
}

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

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

@keyframes scaleIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Test Page Navigation */
.child-test-page .test-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 1rem;
}

.child-test-page .subject-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.child-test-page .timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 500;
}

/* Navigation Subject Buttons */
.child-test-page .nav-menu .subject-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.child-test-page .nav-menu .subject-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.child-test-page .nav-menu .subject-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.child-test-page .nav-menu .subject-btn i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .child-test-page .test-info {
        position: absolute;
        top: 1rem;
        right: 4rem;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.25rem;
    }
    
    .child-test-page .subject-badge {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .child-test-page .timer {
        font-size: 0.8rem;
    }
    
    .child-test-page .nav-menu .subject-btn {
        margin: 0.5rem 0;
        justify-content: center;
    }
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu .nav-link {
        margin: 1rem 0;
        font-size: 1.1rem;
    }
    
    .user-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        margin-top: 1rem;
    }
}

/* Ensure all logo containers are properly aligned */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* Make logo text more prominent */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-weight: 800;
}

/* Remove underline and ensure proper styling for logo links */
.logo:hover {
    text-decoration: none;
    color: inherit;
    opacity: 0.9;
}

.logo-line-1 {
    margin-bottom: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #e2e8f0;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hamburger Menu Styles */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #e2e8f0;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-toggle-active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle-active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation Menu */
.nav-menu-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    gap: 1rem !important;
}

.nav-menu-active .nav-link {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.nav-menu-active .login-dropdown {
    margin-top: 1rem;
}

.nav-menu-active .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
}

/* Login Dropdown Styles */
.login-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: rgba(96, 165, 250, 0.1);
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.login-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.login-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #334155;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Exam Content Section */
.exam-content {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.exam-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.exam-area-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #475569;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.exam-area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.exam-area-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: #60a5fa;
}

.exam-area-card:hover::before {
    transform: scaleX(1);
}

.exam-icon {
    font-size: 3rem;
    color: #60a5fa;
    margin-bottom: 1rem;
}

.exam-area-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.exam-area-card p {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.exam-skills {
    list-style: none;
    text-align: left;
}

.exam-skills li {
    color: #94a3b8;
    padding: 0.5rem 0;
    border-bottom: 1px solid #475569;
    font-size: 0.9rem;
}

.exam-skills li:last-child {
    border-bottom: none;
}

.exam-skills li::before {
    content: '✓';
    color: #60a5fa;
    font-weight: bold;
    margin-right: 0.75rem;
}

/* Enhanced Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/><circle cx="10" cy="50" r="0.5" fill="white" opacity="0.05"/><circle cx="90" cy="30" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: rgba(30, 58, 138, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-size: 0.875rem;
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Enhanced Sections */
.features,
.subjects,
.pricing,
.cta {
    padding: 6rem 0;
}

.features {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.subjects {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.subjects .section-title {
    color: #1a202c;
}

.subjects .subject-card {
    background: white;
    color: #1a202c;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.subjects .subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.subjects .subject-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subjects .subject-card h3 {
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.subjects .subject-topics li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f7fafc;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.2s ease;
}

.subjects .subject-topics li:hover {
    color: #60a5fa;
    padding-left: 0.5rem;
}

.pricing {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    position: relative;
}

.pricing .section-title {
    color: #1a202c;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%2360a5fa" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.cta {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #ffffff;
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 2px;
}

/* Enhanced Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: rgba(30, 41, 59, 0.8);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(96, 165, 250, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-height: 280px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(96, 165, 250, 0.4);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #e2e8f0;
    line-height: 1.7;
    font-size: 1rem;
}

/* Enhanced Subjects Grid */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
}

.subject-card {
    background: rgba(30, 41, 59, 0.8);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 320px;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.subject-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subject-topics {
    list-style: none;
    margin-top: 1.5rem;
}

.subject-topics li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f7fafc;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.2s ease;
}

.subject-topics li:hover {
    color: #667eea;
    padding-left: 0.5rem;
}

.subject-topics li:last-child {
    border-bottom: none;
}

/* Strategies Section */
.strategies {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.strategy-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.strategy-card:hover {
    transform: translateY(-4px);
    border-color: #60a5fa;
    box-shadow: 0 8px 32px rgba(96, 165, 250, 0.2);
}

.strategy-icon {
    font-size: 2.5rem;
    color: #60a5fa;
    margin-bottom: 1rem;
    display: block;
}

.strategy-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.strategy-card p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Parents Section */
.parents {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    color: white;
}

.parents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.parent-feature {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.parent-feature:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.parent-icon {
    font-size: 3rem;
    color: #60a5fa;
    margin-bottom: 1.5rem;
}

.parent-feature h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.parent-feature p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.parent-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.parent-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.parent-cta p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tutors Section */
.tutors {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.affiliate-benefits {
    margin: 3rem 0;
}

.affiliate-benefits h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: #60a5fa;
    box-shadow: 0 8px 32px rgba(96, 165, 250, 0.2);
}

.benefit-icon {
    font-size: 2.5rem;
    color: #60a5fa;
    margin-bottom: 1rem;
}

.benefit-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.how-it-works {
    margin: 4rem 0;
}

.how-it-works h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-4px);
    border-color: #60a5fa;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin: 0 auto 1.5rem auto;
}

.step h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.step p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.tutor-features {
    margin: 4rem 0;
}

.tutor-features h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.tutor-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tutor-feature {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tutor-feature:hover {
    transform: translateY(-4px);
    border-color: #60a5fa;
    box-shadow: 0 8px 32px rgba(96, 165, 250, 0.2);
}

.tutor-icon {
    font-size: 2.5rem;
    color: #60a5fa;
    margin-bottom: 1rem;
}

.tutor-feature h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.tutor-feature p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.tutor-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    border-radius: 16px;
}

.tutor-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.tutor-cta p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tutor-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Subject Buttons */
.subject-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.subject-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.subject-btn.active {
    background: rgba(96, 165, 250, 0.3);
    border-color: #60a5fa;
    color: #60a5fa;
}

.subject-btn i {
    font-size: 1.5rem;
}

.subject-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Enhanced Pricing */
.pricing {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23667eea" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pricing-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price {
    font-size: 4rem;
    font-weight: 800;
    color: #1a202c;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price span {
    font-size: 1.25rem;
    color: #4a5568;
    -webkit-text-fill-color: #4a5568;
}

.savings {
    color: #48bb78;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 2.5rem 0;
}

.pricing-features li {
    padding: 1rem 0;
    color: #4a5568;
    font-weight: 500;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f7fafc;
}

.pricing-features li::before {
    content: '✓';
    color: #48bb78;
    font-weight: 700;
    margin-right: 1rem;
    font-size: 1.125rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Enhanced CTA Section */
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="white" opacity="0.3"/><circle cx="10" cy="40" r="0.5" fill="white" opacity="0.2"/><circle cx="40" cy="10" r="0.5" fill="white" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.3;
}

.cta > * {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
}

/* Enhanced Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Footer Terms and Links */
.footer-section ul {
    list-style: none;
    line-height: 1.8;
}

.footer-section ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section ul li:last-child {
    border-bottom: none;
}

.footer-section a {
    color: #a0aec0;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 2rem;
    text-align: center;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .nav-container {
        padding: 0 24px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .dropdown-menu {
        position: fixed;
        top: auto;
        right: 1rem;
        left: 1rem;
        width: auto;
        min-width: auto;
        margin-top: 0.5rem;
    }
    
    .dropdown-item {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .overview-cards {
        grid-template-columns: 1fr;
    }
    
    .subject-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .subjects-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .features-grid,
    .subjects-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Child Test Page Styles */
.child-test-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.child-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.child-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.child-header .logo h1 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.test-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.subject-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
}

.test-options {
    display: flex;
    align-items: center;
}

.subject-options {
    display: flex;
    gap: 0.5rem;
}

.child-test-main {
    padding: 2rem 0;
}

.child-test-main .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Subject Buttons */
.subject-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.subject-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.subject-btn.active {
    background: rgba(96, 165, 250, 0.3);
    border-color: #60a5fa;
    color: #60a5fa;
}

.subject-btn i {
    font-size: 1.5rem;
}

.subject-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Test Setup */
.test-setup {
    max-width: 1400px;
    margin: 2rem auto;
}

.test-details {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.child-name,
.child-age {
    color: #64748b;
    font-size: 0.875rem;
}

.test-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #1a202c;
}

.timer-icon {
    font-size: 1.25rem;
}

.test-setup {
    max-width: 1400px;
    margin: 2rem auto;
}

.setup-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.setup-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.setup-card h2 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.setup-card p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.test-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.test-type {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.test-type:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.type-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.test-type h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.test-type p {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.difficulty-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-badge.easy {
    background: #dcfce7;
    color: #16a34a;
}

.difficulty-badge.medium {
    background: #fef3c7;
    color: #d97706;
}

.difficulty-badge.hard {
    background: #fee2e2;
    color: #dc2626;
}

.setup-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Loading Screen */
.loading-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.loading-card {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-card h2 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.loading-card p {
    color: #64748b;
    margin-bottom: 2rem;
}

.loading-progress {
    margin-top: 1rem;
}

.progress-bar {
    background: #f3f4f6;
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    height: 100%;
    width: 0%;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 0%; }
}

/* Answer Options */
.answer-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.answer-option:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.answer-option.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.answer-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #3b82f6;
}

.answer-option label {
    flex: 1;
    cursor: pointer;
    font-size: 1.1rem;
    color: #1e293b;
    line-height: 1.5;
}

/* Answer Input */
.answer-input {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.answer-input input {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

.answer-input input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.word-bank {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
    border-left: 4px solid #3b82f6;
}

.word-bank strong {
    color: #374151;
    font-weight: 600;
}

/* Progress Page Styles */
.progress-content {
    animation: fadeIn 0.5s ease-in;
}

.progress-content * {
    color: #1e293b !important;
}

/* Override for specific elements that should keep their original colors */
.progress-content .score-display,
.progress-content .score-display *,
.progress-content .btn-primary,
.progress-content .btn-success {
    color: white !important;
}

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

.page-header {
    margin-bottom: 2rem;
}

.page-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.page-header .back-link:hover {
    color: #3b82f6;
}

.page-header h1 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.page-header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-state .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Progress Summary */
.progress-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.summary-card * {
    color: #1e293b !important;
}

.summary-card:hover {
    transform: translateY(-2px);
}

.summary-icon {
    font-size: 2.5rem;
}

.summary-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.summary-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* Subject Progress */
.subject-progress {
    margin-bottom: 3rem;
}

.subject-progress h2 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.subject-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.subject-progress-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.subject-progress-card * {
    color: #1e293b !important;
}

.subject-progress-card:hover {
    transform: translateY(-2px);
}

.subject-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.subject-icon {
    font-size: 1.5rem;
}

.subject-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.2rem;
}

.subject-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

/* Recent Tests */
.recent-tests {
    margin-bottom: 3rem;
}

.recent-tests h2 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.test-list {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.test-list * {
    color: #1e293b !important;
}

.test-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.test-item:last-child {
    border-bottom: none;
}

.test-info h4 {
    margin: 0 0 0.25rem 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.test-date {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.test-score {
    text-align: right;
}

.score-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.score-number.excellent {
    color: #10b981;
}

.score-number.good {
    color: #3b82f6;
}

.score-number.needs-improvement {
    color: #f59e0b;
}

.score-details {
    color: #64748b;
    font-size: 0.9rem;
}

/* Topic Mastery */
.topic-mastery h2 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.mastery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mastery-item {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.mastery-item * {
    color: #1e293b !important;
}

.mastery-item:hover {
    transform: translateY(-2px);
}

.mastery-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.mastery-icon {
    font-size: 1.2rem;
}

.mastery-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 1rem;
}

.mastery-level {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mastery-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h2 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 2rem;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-state h2 {
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-state p {
    color: #64748b;
    margin-bottom: 2rem;
}

/* Answer Feedback Styles */
.answer-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid;
}

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

.answer-feedback.correct {
    background: #dcfce7;
    border-left-color: #16a34a;
    color: #166534;
}

.answer-feedback.incorrect {
    background: #fef2f2;
    border-left-color: #dc2626;
    color: #991b1b;
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.answer-feedback.correct .feedback-header {
    color: #16a34a;
}

.answer-feedback.incorrect .feedback-header {
    color: #dc2626;
}

.feedback-header i {
    font-size: 1.3rem;
}

.feedback-message {
    margin-bottom: 0.75rem;
    color: #374151;
    line-height: 1.5;
    font-weight: 500;
}

.answer-feedback.correct .feedback-message {
    color: #166534;
}

.answer-feedback.incorrect .feedback-message {
    color: #991b1b;
}

.feedback-explanation {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #6b7280;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.continue-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.answer-feedback.correct .feedback-explanation {
    border-top-color: rgba(22, 163, 74, 0.2);
}

.answer-feedback.incorrect .feedback-explanation {
    border-top-color: rgba(220, 38, 38, 0.2);
}

.feedback-explanation strong {
    color: #1f2937;
    font-weight: 600;
}

/* Answer option states with feedback */
.answer-option.selected.correct {
    border-color: #16a34a;
    background: #dcfce7;
}

.answer-option.selected.incorrect {
    border-color: #dc2626;
    background: #fef2f2;
}

/* Text input feedback states */
.answer-input input.correct {
    border-color: #16a34a;
    background: #dcfce7;
}

.answer-input input.incorrect {
    border-color: #dc2626;
    background: #fef2f2;
}

/* Auto-advance hint */
.auto-advance-hint {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

/* Test History Styles */
.test-history {
    margin-top: 1rem;
}

.loading-history {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.loading-history .loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f1f5f9;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.test-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.test-history-item {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.test-history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.test-info {
    flex: 1;
}

.test-info h4 {
    margin: 0 0 0.25rem 0;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
}

.test-date {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

.test-score {
    text-align: center;
    min-width: 80px;
}

.score-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.score-number.excellent {
    color: #10b981;
}

.score-number.good {
    color: #3b82f6;
}

.score-number.needs-improvement {
    color: #f59e0b;
}

.score-details {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
}

.test-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.view-all-tests {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.empty-history {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-history h4 {
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    font-size: 1.2rem;
}

.empty-history p {
    margin: 0 0 1.5rem 0;
    color: #ffffff;
}

/* Child Selection Styles */
.child-selection {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.selection-header h3 {
    margin: 0 0 1rem 0;
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
}

.child-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.child-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.child-tab:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.1);
}

.child-tab.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.child-tab i {
    font-size: 1rem;
}

.child-tab span {
    font-weight: 600;
}

/* Responsive Child Tabs */
@media (max-width: 768px) {
    .child-tabs {
        justify-content: center;
    }
    
    .child-tab {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    .child-tab span {
        display: none; /* Hide name on mobile, just show icon */
    }
    
    .child-tab i {
        font-size: 1.2rem;
    }
}

.setup-form {
    margin-top: 2rem;
    text-align: left;
}

.test-loading {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    margin: 0 auto;
}

.test-questions {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Test Questions Section */
.test-progress {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.question-counter {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
}

.progress-info .progress-bar {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 9999px;
    margin-left: 2rem;
    overflow: hidden;
}

.progress-info .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.question-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    position: relative;
}

.question-content {
    margin-bottom: 2rem;
}

.question-content h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

.answer-options {
    margin-bottom: 2rem;
}

.question-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.question-actions .btn {
    min-width: 120px;
}

/* Results Screen */
.results-screen {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.results-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.results-card h2 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.results-card p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.score-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.score-display p {
    color: white !important;
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 1rem;
    opacity: 0.95;
}

.score-display span {
    color: white !important;
    font-weight: 600;
}

.score-percentage {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white !important;
}

.score-details {
    font-size: 1.1rem;
    opacity: 0.9;
    color: white !important;
}

.score-details p {
    color: white !important;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.score-details span {
    color: white !important;
    font-weight: 600;
}

.positive-feedback {
    text-align: left;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.positive-feedback ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.positive-feedback li {
    padding: 0.5rem 0;
    color: #16a34a;
    font-weight: 500;
}

.positive-feedback li::before {
    content: "✓ ";
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Child Test Page Specific Styles */
.child-test-page .test-questions {
    padding: 2rem 1rem;
}

.child-test-page .question-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-timer {
    position: static;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 140px;
    text-align: center;
    z-index: 5;
    flex: 0 0 auto;
}

.section-timer-title {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.9;
}

.section-timer-time {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.child-test-page .test-progress {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-counter {
    font-weight: 500;
    color: #1a202c;
}

.question-container {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.question-text {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #1a202c;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.option-label:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.option-label.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.option-radio {
    margin-right: 1rem;
}

.option-text {
    flex: 1;
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.test-results {
    max-width: 600px;
    margin: 0 auto;
}

.results-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.results-header {
    margin-bottom: 2rem;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.score-details p {
    margin: 0.5rem 0;
    color: #64748b;
}

.topic-breakdown {
    margin: 2rem 0;
    text-align: left;
}

.ai-feedback {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    text-align: left;
}

.ai-feedback h3 {
    color: #1a202c;
    margin-bottom: 1rem;
}

.feedback-content {
    color: #64748b;
    line-height: 1.6;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Dashboard */
.dashboard-header {
    background-color: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

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

.dashboard-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email {
    color: #64748b;
    font-size: 0.875rem;
}

.dashboard-main {
    padding: 2rem 0;
}

.dashboard-content {
    max-width: 1200px;
}

.dashboard-header-content {
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    gap: 2rem;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
    background: #f1f5f9;
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

/* Children Selector */
.children-selector {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.child-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.child-tab {
    padding: 0.75rem 1.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.child-tab:hover {
    background: #f8fafc;
}

.child-tab.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Dashboard Sections */
.dashboard-section {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dashboard-section h3 {
    margin-bottom: 1.5rem;
    color: #1a202c;
}

/* Subject Cards */
.subject-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.subject-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.subject-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.subject-icon {
    font-size: 1.5rem;
}

.subject-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.subject-score .score-number,
.subject-tests .tests-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
}

.score-label,
.tests-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
}

.progress-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

/* Topic Grid */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.topic-item {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    text-align: center;
}

.topic-name {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.topic-mastery {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
}

.topic-attempts {
    font-size: 0.75rem;
    color: #64748b;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #1a202c;
    margin-bottom: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

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

.alert-success {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Dashboard Pages */
body.dashboard {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    min-height: 100vh;
}

.dashboard-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #334155;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dashboard-header .container {
    padding: 0 40px;
}

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

.dashboard-header .logo h1 {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
}

.dashboard-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.dashboard-nav .nav-link {
    color: #e2e8f0;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dashboard-nav .nav-link:hover,
.dashboard-nav .nav-link.active {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email {
    color: #a0aec0;
    font-size: 0.875rem;
}

.dashboard-main {
    padding: 2rem 0;
}

.dashboard-content {
    display: grid;
    gap: 2rem;
}

.dashboard-section {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.dashboard-section h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.child-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.child-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(15, 23, 42, 0.6);
}

.child-card h3 {
    color: #60a5fa;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.child-info {
    color: #e2e8f0;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.child-code {
    background: rgba(96, 165, 250, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 1rem 0;
    text-align: center;
}

.child-code-label {
    color: #a0aec0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.25rem;
}

.child-code-value {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.25rem;
    font-family: 'Courier New', monospace;
}

.child-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
    background: rgba(96, 165, 250, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #60a5fa;
}

.stat-label {
    font-size: 0.75rem;
    color: #a0aec0;
    text-transform: uppercase;
}

.btn-add-child {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
}

.recent-activity {
    margin-top: 1rem;
}

.activity-item {
    padding: 1rem;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 4px solid #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.activity-item h4 {
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.activity-item p {
    color: #a0aec0;
    font-size: 0.875rem;
    margin: 0;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.activity-date {
    color: #64748b;
    font-size: 0.75rem;
}

.activity-score {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.modal-content label {
    color: #e2e8f0;
    font-weight: 500;
}

.modal-content input,
.modal-content select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #ffffff;
}

.modal-content input::placeholder {
    color: #64748b;
}

/* Child Dashboard Pages */
body.child-dashboard,
body.child-dashboard-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    min-height: 100vh;
}

/* Ensure all text is white on dark backgrounds */
body.child-dashboard *,
body.child-dashboard-page *,
body.child-dashboard .container *,
body.child-dashboard-page .container *,
body.child-dashboard .tests-container *,
body.child-dashboard-page .tests-container *,
body.child-dashboard .tests-table *,
body.child-dashboard-page .tests-table *,
body.child-dashboard .summary-card *,
body.child-dashboard-page .summary-card *,
body.child-dashboard .pagination-container *,
body.child-dashboard-page .pagination-container * {
    color: inherit !important;
}

/* Override specific elements that should be white */
body.child-dashboard h1,
body.child-dashboard h2,
body.child-dashboard h3,
body.child-dashboard h4,
body.child-dashboard h5,
body.child-dashboard h6,
body.child-dashboard p,
body.child-dashboard span,
body.child-dashboard div,
body.child-dashboard td,
body.child-dashboard th,
body.child-dashboard li,
body.child-dashboard-page h1,
body.child-dashboard-page h2,
body.child-dashboard-page h3,
body.child-dashboard-page h4,
body.child-dashboard-page h5,
body.child-dashboard-page h6,
body.child-dashboard-page p,
body.child-dashboard-page span,
body.child-dashboard-page div,
body.child-dashboard-page td,
body.child-dashboard-page th,
body.child-dashboard-page li {
    color: #ffffff !important;
}

/* Keep badge colors and specific colored elements */
body.child-dashboard .badge,
body.child-dashboard .test-type-badge,
body.child-dashboard .status-badge,
body.child-dashboard-page .badge,
body.child-dashboard-page .test-type-badge,
body.child-dashboard-page .status-badge {
    color: inherit !important;
}

/* Fix button colors on child dashboard */
body.child-dashboard .btn-secondary,
body.child-dashboard-page .btn-secondary {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
}

body.child-dashboard .btn-secondary:hover,
body.child-dashboard-page .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

body.child-dashboard .btn-primary,
body.child-dashboard-page .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body.child-dashboard .btn-primary:hover,
body.child-dashboard-page .btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Fix all button text colors */
body.child-dashboard .btn,
body.child-dashboard button,
body.child-dashboard-page .btn,
body.child-dashboard-page button {
    color: #ffffff !important;
}

/* Override progress page specific dark text rules */
body.child-dashboard-page .progress-content *,
body.child-dashboard-page .summary-card *,
body.child-dashboard-page .subject-progress-card *,
body.child-dashboard-page .test-list *,
body.child-dashboard-page .mastery-item * {
    color: #ffffff !important;
}

body.child-dashboard-page .page-header h1,
body.child-dashboard-page .summary-number,
body.child-dashboard-page .summary-text,
body.child-dashboard-page .subject-progress h2,
body.child-dashboard-page .subject-header h3,
body.child-dashboard-page .recent-tests h2,
body.child-dashboard-page .test-info h4,
body.child-dashboard-page .topic-mastery h2,
body.child-dashboard-page .mastery-header h4,
body.child-dashboard-page .empty-state h2 {
    color: #ffffff !important;
}

/* Fix panel backgrounds on child progress page */
body.child-dashboard-page .summary-card,
body.child-dashboard-page .subject-progress-card,
body.child-dashboard-page .test-list,
body.child-dashboard-page .mastery-item {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

body.child-dashboard-page .summary-card:hover,
body.child-dashboard-page .subject-progress-card:hover,
body.child-dashboard-page .mastery-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Fix test item backgrounds */
body.child-dashboard-page .test-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1rem !important;
}

body.child-dashboard-page .test-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.child-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
}

.child-header .container {
    padding: 0 40px;
}

.child-header .logo h1 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-text {
    color: #ffffff;
    font-weight: 600;
}

.child-main {
    padding: 0;
}

/* Welcome Banner - Full Width */
.welcome-banner {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin: 2rem 0 0 0;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.banner-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.banner-text {
    flex: 1;
}

.banner-text h2 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.banner-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.banner-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float-shape 6s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 40%;
    right: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-shape {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

.learning-options {
    padding: 3rem 2rem;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* For 4 cards layout, ensure proper sizing */
@media (min-width: 1200px) {
    .option-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .option-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.option-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Assigned Tests Page Styles */
.assigned-tests-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
}

.assigned-tests-header h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.assigned-tests-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin: 0;
}

.tests-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Summary Cards */
.tests-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.summary-card.urgent {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.2) 0%, rgba(248, 113, 113, 0.1) 100%);
    border-color: rgba(248, 113, 113, 0.3);
}

.summary-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.summary-info h4 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.summary-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
}

/* Table Container */
.tests-table-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.tests-table {
    width: 100%;
    border-collapse: collapse;
}

.tests-table thead {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.tests-table th {
    padding: 1rem;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tests-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.tests-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tests-table tbody tr.urgent {
    background: rgba(248, 113, 113, 0.1);
    border-left: 3px solid #f87171;
}

.tests-table tbody tr.soon {
    background: rgba(251, 191, 36, 0.1);
    border-left: 3px solid #fbbf24;
}

.tests-table tbody tr.overdue {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
}

.tests-table td {
    padding: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
}

/* Table Cell Styles */
.test-title-cell {
    max-width: 300px;
}

.test-title-info strong {
    color: white;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.test-instructions-preview {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.test-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-type-badge.quick-practice {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.test-type-badge.mini-test {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.test-type-badge.full-challenge {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.assigned-by, .duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deadline-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.deadline-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-danger {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.current-range, .total-count {
    color: white;
    font-weight: 600;
}

.pagination {
    display: flex;
    gap: 0.5rem;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    min-width: 40px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.pagination-btn.active {
    background: rgba(59, 130, 246, 0.3);
    color: white;
    border-color: rgba(59, 130, 246, 0.5);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.test-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.test-title h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.test-type-badge {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.test-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.detail-item i {
    width: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.test-instructions {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid rgba(74, 222, 128, 0.5);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.test-instructions h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.test-instructions p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.test-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.deadline-status {
    flex: 1;
}

.deadline-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1rem;
}

.deadline-status.urgent .deadline-text {
    color: #f87171;
    animation: pulse 2s infinite;
}

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

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.error-message {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Test History Table Styles */
.test-history-table-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.test-history-table {
    width: 100%;
    border-collapse: collapse;
}

.test-history-table thead {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.test-history-table th {
    padding: 1rem;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.test-history-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.test-history-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.test-history-table td {
    padding: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    vertical-align: middle;
}

/* Test Type Cell */
.test-type-cell .test-type-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.test-subject {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.test-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Date Cell */
.date-cell .date-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date {
    font-weight: 500;
    color: white;
}

.time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Score Cell */
.score-cell .score-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-number {
    font-weight: 700;
    font-size: 1.1rem;
}

.score-icon {
    font-size: 1rem;
}

.score-number.excellent {
    color: #4ade80;
}

.score-number.good {
    color: #60a5fa;
}

.score-number.needs-improvement {
    color: #f87171;
}

/* Accuracy Cell */
.accuracy-cell .accuracy-display {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.accuracy-number {
    font-weight: 600;
    font-size: 0.95rem;
}

.accuracy-details {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Time Cell */
.time-cell .time-display {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.time-taken {
    font-weight: 500;
}

/* Status Cell */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.completed {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-badge.excellent {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.good {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.pass {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-badge.needs-practice {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* View All Tests Button */
.view-all-tests {
    text-align: center;
    margin-top: 1.5rem;
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.option-card h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.option-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.option-stats {
    display: flex;
    justify-content: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Child Test Page */
body.child-test-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    min-height: 100vh;
}

#visualContainer {
    width: 100%;
    overflow: visible;
}

#visualContainer svg {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.test-setup {
    padding: 2rem 0;
}

.setup-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.setup-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.setup-card h2 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.setup-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.test-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1200px) {
    .setup-card {
        max-width: 1200px !important;
    }
}

@media (max-width: 1024px) {
    .test-types {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .test-types {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.test-type {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.test-type:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.type-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.test-type h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.test-type p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.difficulty-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-badge.easy {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.difficulty-badge.medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.difficulty-badge.hard {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #64748b;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

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

.form-options {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.875rem;
    color: #64748b;
    flex-wrap: nowrap;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.terms-text {
    display: inline;
}

.checkbox-label a {
    display: inline;
    color: #3b82f6;
    text-decoration: underline;
}

.terms-and {
    display: inline;
}

.forgot-password {
    font-size: 0.875rem;
    color: #3b82f6;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    color: #64748b;
    font-size: 0.875rem;
}
