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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header Styles */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    padding: 100px 0;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn-primary::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-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #4f46e5;
}

.btn-full {
    width: 100%;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: white;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1f2937;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.feature-card p {
    color: #6b7280;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

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

.login-header h2 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #6b7280;
}

.login-form {
    margin-bottom: 2rem;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4f46e5;
}

.test-credentials {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.test-credentials h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.credential-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.login-footer a {
    color: #4f46e5;
    text-decoration: none;
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Dashboard Styles */
.dashboard-container {
    min-height: 100vh;
    background: #f9fafb;
}

.dashboard-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    color: #1f2937;
    font-size: 1.8rem;
}

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

.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

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

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.score-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.total-score h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

.score-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6b7280;
    min-width: 120px;
}

.score-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #4f46e5;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(79, 70, 229, 0.1);
}

.level-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4f46e5;
    white-space: nowrap;
}

.level-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

.level-badge {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

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

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #4f46e5;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Page Header */
.page-header {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    margin-top: 1rem;
}

.breadcrumb a {
    color: #4f46e5;
    text-decoration: none;
}

/* Subjects Page */
.subjects-container {
    min-height: 100vh;
    background: #f9fafb;
}

.subjects-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

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

.subject-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.subject-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.subject-card.disabled:hover {
    transform: none;
}

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

.subject-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.subject-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-available {
    background: #dcfce7;
    color: #166534;
}

.status-coming-soon {
    background: #fef3c7;
    color: #92400e;
}

/* Math Page Styles */
.math-container {
    min-height: 100vh;
    background: #f9fafb;
}

.math-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.math-section {
    margin-bottom: 2rem;
}

.section-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-card h2 {
    color: #1f2937;
    margin-bottom: 1rem;
}

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

.topic-card {
    background: #f3f4f6;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topic-card:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-2px);
}

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

.lesson-content {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.lesson-content h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.lesson-content ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.lesson-content li {
    margin-bottom: 0.5rem;
}

.question-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.question-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

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

.option-button {
    background: white;
    border: 2px solid #e5e7eb;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-button:hover {
    border-color: #4f46e5;
    background: #f0f9ff;
}

.option-button.selected {
    border-color: #4f46e5;
    background: #4f46e5;
    color: white;
}

.quiz-progress {
    text-align: right;
    color: #6b7280;
    font-weight: 600;
}

.results-content {
    text-align: center;
    padding: 2rem;
}

.score-display {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.score-display.perfect {
    color: #059669;
    text-shadow: 0 0 10px rgba(5, 150, 105, 0.3);
}

.score-display.excellent {
    color: #0284c7;
    text-shadow: 0 0 10px rgba(2, 132, 199, 0.3);
}

.score-display.good {
    color: #7c3aed;
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.score-display.needs-practice {
    color: #dc2626;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.motivational-message {
    margin-bottom: 1.5rem;
}

.motivational-message h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.results-details {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.points-earned {
    font-weight: 600;
    color: #059669;
    margin-top: 0.5rem;
}

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

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.quiz-theme-info {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-style: italic;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .lesson-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
} 