/* Fraction Quiz - Child-friendly Educational Website */
/* Inspired by squla.nl and junioreinstein.nl */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

/* Answer Feedback Styles */
.answer-feedback {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

.answer-feedback h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
}

.answer-result {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 6px;
    border-left: 4px solid;
}

.answer-result.correct {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.answer-result.incorrect {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.answer-status {
    font-weight: 600;
    margin-left: 10px;
}

.correct-answer {
    display: block;
    margin-top: 5px;
    font-weight: 600;
    color: #0066cc;
}

/* Question Blocks for All Questions on One Page */
.question-block {
    margin-bottom: 40px;
    padding: 25px;
    background: #ffffff;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.question-block .question-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    line-height: 1.5;
    padding-left: 35px;
}

.question-block .question-text::before {
    content: attr(data-question-number);
    position: absolute;
    left: 25px;
    top: 25px;
    font-weight: 700;
    color: #0073aa;
    font-size: 18px;
}

.question-block .answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-left: 20px;
}

.question-block .answer-option {
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.question-block .answer-option::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #0073aa;
    border-radius: 50%;
    flex-shrink: 0;
}

.question-block .answer-option:hover {
    background: #e9ecef;
    border-color: #0073aa;
    transform: translateX(5px);
}

.question-block .answer-option.selected {
    background: #0073aa;
    color: white;
    border-color: #005a87;
}

.question-block .answer-option.selected::before {
    background: white;
    border-color: white;
    position: relative;
}

.question-block .answer-option.selected::after {
    content: '✓';
    position: absolute;
    left: 6px;
    top: 2px;
    color: #0073aa;
    font-weight: bold;
    font-size: 12px;
}

.question-screenshot {
    margin: 15px 0;
    text-align: center;
}

.question-screenshot img {
    max-width: 100%;
    height: auto;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.practice-question-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e1e8ed;
    position: relative;
}

.practice-question-card::before {
    content: attr(data-question-number);
    position: absolute;
    top: 20px;
    left: 20px;
    width: 32px;
    height: 32px;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #5e72e4;
    font-size: 14px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    margin-left: 50px;
}

.question-number {
    font-weight: bold;
    color: #32325d;
    font-size: 1rem;
}

.difficulty-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-badge.easy {
    background: #e3f8e9;
    color: #00d68f;
}

.difficulty-badge.medium {
    background: #fff3cd;
    color: #ffab00;
}

.difficulty-badge.hard {
    background: #ffebe9;
    color: #ff3d71;
}

.source-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.source-badge {
    background: #e3f2fd;
    color: #2196f3;
}

.source-badge.sample {
    background: #f3e5f5;
    color: #9c27b0;
}

/* Practice Progress System */
.practice-progress {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e1e8ed;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-header h3 {
    color: #32325d;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.progress-stats {
    font-size: 1rem;
    color: #525f7f;
    font-weight: 500;
}

.progress-stats .completed-count {
    color: #00d68f;
    font-weight: 700;
}

.progress-stats .total-count {
    color: #5e72e4;
    font-weight: 700;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: #f0f4f8;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d68f 0%, #5e72e4 100%);
    border-radius: 20px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-percentage {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5e72e4;
    min-width: 50px;
    text-align: right;
}

.progress-actions {
    text-align: right;
}

.reset-button {
    background: #f0f4f8;
    color: #525f7f;
    border: 1px solid #d1d9e0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-button:hover {
    background: #e6ecf1;
    border-color: #b8c2cc;
    color: #32325d;
}

/* Question Status Icons */
.question-status {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.status-icon.not-completed {
    background: #f0f4f8;
    color: #8898aa;
    border: 2px solid #d1d9e0;
}

.status-icon.completed {
    background: #e3f8e9;
    color: #00d68f;
    border: 2px solid #00d68f;
}

/* Completion Message */
.completion-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1000;
    text-align: center;
    min-width: 300px;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.completion-content h3 {
    color: #00d68f;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.completion-content p {
    color: #525f7f;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.completion-content .close-button {
    background: #5e72e4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.completion-content .close-button:hover {
    background: #4c63d2;
}

/* Serial Question Navigation */
.practice-question-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e1e8ed;
    margin-bottom: 30px;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e6ecf1;
}

.question-navigation .nav-button {
    background: #5e72e4;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.question-navigation .nav-button:hover:not(:disabled) {
    background: #4c63d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 114, 228, 0.3);
}

.question-navigation .nav-button:disabled {
    background: #e6ecf1;
    color: #8898aa;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.question-navigation .nav-button.prev {
    background: #6c757d;
}

.question-navigation .nav-button.prev:hover:not(:disabled) {
    background: #5a6268;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.question-counter {
    font-size: 1.2rem;
    font-weight: 700;
    color: #32325d;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    border: 2px solid #5e72e4;
    min-width: 80px;
    text-align: center;
}

.question-counter #currentQuestionNum {
    color: #5e72e4;
}

.question-counter #totalQuestionsNum {
    color: #8898aa;
}

.question-display {
    margin-bottom: 30px;
}

.question-display .practice-question-card {
    margin-bottom: 0;
    box-shadow: none;
    border: 1px solid #e6ecf1;
}

.practice-question-container .practice-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.practice-question-container .practice-button {
    padding: 14px 28px;
    font-size: 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 150px;
}

.practice-question-container .practice-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.practice-question-container .practice-button.secondary {
    background: #f0f4f8;
    color: #525f7f;
    border: 1px solid #d1d9e0;
}

.practice-question-container .practice-button.secondary:hover {
    background: #e6ecf1;
    border-color: #b8c2cc;
    color: #32325d;
}

/* Enhanced feedback container for serial navigation */
.practice-question-container .feedback-container {
    margin: 20px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e6ecf1;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.practice-question-container .feedback-message {
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    border-left: 4px solid;
}

.practice-question-container .feedback-message.success {
    background: #e3f8e9;
    color: #00d68f;
    border-left-color: #00d68f;
}

.practice-question-container .feedback-message.error {
    background: #ffebe9;
    color: #ff3d71;
    border-left-color: #ff3d71;
}

.practice-question-container .feedback-message.warning {
    background: #fff3cd;
    color: #ffab00;
    border-left-color: #ffab00;
}

.practice-question-container .feedback-message.info {
    background: #e3f2fd;
    color: #2196f3;
    border-left-color: #2196f3;
}

/* Responsive design for navigation */
@media (max-width: 768px) {
    .question-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .question-navigation .nav-button {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .question-counter {
        order: -1;
    }
    
    .practice-question-container .practice-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .practice-question-container .practice-button {
        width: 100%;
        max-width: 250px;
    }
}

.practice-question-card .question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #32325d;
    margin-bottom: 20px;
    line-height: 1.5;
    margin-left: 50px;
}

.practice-question-card .answer-options {
    margin-bottom: 25px;
    margin-left: 50px;
}

.practice-question-card .answer-option {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    margin-bottom: 12px;
    background: #f8fafc;
    border: 2px solid #e6ecf1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.practice-question-card .answer-option:hover {
    background: #f0f4f8;
    border-color: #5e72e4;
    transform: translateY(-1px);
}

.practice-question-card .answer-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.practice-question-card .answer-option::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #d1d9e0;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.practice-question-card .answer-option:hover::before {
    border-color: #5e72e4;
}

.practice-question-card .answer-option.selected {
    background: #f0f4f8;
    border-color: #5e72e4;
}

.practice-question-card .answer-option.selected::before {
    border-color: #5e72e4;
    background: #5e72e4;
    position: relative;
}

.practice-question-card .answer-option.selected::before::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.practice-question-card .answer-option .option-text {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #525f7f;
    font-weight: 500;
    position: relative;
}

.practice-question-card .practice-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    margin-left: 50px;
}

.practice-question-card .practice-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.practice-question-card .practice-button {
    background: #5e72e4;
    color: white;
}

.practice-question-card .practice-button:hover {
    background: #4c63d2;
    transform: translateY(-1px);
}

.practice-question-card .practice-button.secondary {
    background: #f0f4f8;
    color: #525f7f;
    border: 1px solid #d1d9e0;
}

.practice-question-card .practice-button.secondary:hover {
    background: #e6ecf1;
    border-color: #b8c2cc;
}

.practice-question-card .feedback-container {
    margin-top: 20px;
    margin-left: 50px;
}

.practice-question-card .feedback-message {
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    border-left: 4px solid;
}

.practice-question-card .feedback-message.success {
    background: #e3f8e9;
    color: #00d68f;
    border-left-color: #00d68f;
}

.practice-question-card .feedback-message.error {
    background: #ffebe9;
    color: #ff3d71;
    border-left-color: #ff3d71;
}

.practice-question-card .feedback-message.warning {
    background: #fff3cd;
    color: #ffab00;
    border-left-color: #ffab00;
}

.practice-question-card .feedback-message.info {
    background: #e3f2fd;
    color: #2196f3;
    border-left-color: #2196f3;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

h2 {
    font-size: 2rem;
    color: #2980b9;
    margin-bottom: 1rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #555;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    margin-bottom: 40px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    text-align: start;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.3;
}

.cta-button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Button Group for Hero Section */
.button-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.button-group .cta-button {
    margin: 0;
}

.button-group .cta-button.sign-out {
    background: #6c757d;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    padding: 18px 30px;
    font-size: 1.1rem;
}

.button-group .cta-button.sign-out:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.hero-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.math-illustration {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.fraction-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    border: 3px solid rgba(255,255,255,0.4);
    animation: float 3s ease-in-out infinite;
}

.fraction-circle:nth-child(2) {
    animation-delay: 1s;
}

.fraction-circle:nth-child(3) {
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* How It Works Section */
.how-it-works {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 40px;
}

.how-it-works h2 {
    color: #3498db;
    margin-bottom: 3rem;
}

.steps {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-icon {
    font-size: 2rem;
    margin: 0 auto 15px;
    text-align: center;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-icon::before {
    content: "📝";
    font-size: 2rem;
}

.step h3 {
    color: #2980b9;
    margin-bottom: 1rem;
}

.step p {
    color: #666;
}

/* Hide WordPress theme entry-title */
.entry-title {
    display: none !important;
}

/* Explanation Content */
.explanation-content {
    padding: 20px;
}

.explanation-block {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.explanation-block h2 {
    color: #3498db;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

/* Fraction Examples */
.fraction-example {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.fraction {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
}

.numerator {
    color: #e74c3c;
}

.denominator {
    color: #3498db;
}

.fraction-bar {
    width: 60px;
    height: 4px;
    background: #34495e;
    margin: 5px 0;
}

.fraction-explanation {
    flex: 1;
}

.fraction-explanation p {
    margin-bottom: 10px;
    padding: 10px;
    background: #ecf0f1;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

/* Visual Examples */
.visual-examples {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.visual-example {
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.pizza-container {
    margin-bottom: 15px;
}

.pizza-slices {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f39c12;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.3);
}

.slice {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: right bottom;
}

.slice.filled {
    background: #e67e22;
}

.slice:nth-child(1) {
    transform: rotate(0deg);
    clip-path: polygon(100% 100%, 0 100%, 100% 0);
}

.slice:nth-child(2) {
    transform: rotate(90deg);
    clip-path: polygon(100% 100%, 0 100%, 100% 0);
}

.slice:nth-child(3) {
    transform: rotate(180deg);
    clip-path: polygon(100% 100%, 0 100%, 100% 0);
}

.slice:nth-child(4) {
    transform: rotate(270deg);
    clip-path: polygon(100% 100%, 0 100%, 100% 0);
}

.chocolate-bar {
    display: flex;
    gap: 2px;
    justify-content: center;
    margin-bottom: 15px;
}

.chocolate-piece {
    width: 40px;
    height: 40px;
    background: #8b4513;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(139, 69, 19, 0.3);
}

.chocolate-piece.filled {
    background: #d2691e;
}

/* Calculation Examples */
.calculation-example {
    background: #ecf0f1;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.calculation-step {
    font-size: 1.5rem;
    margin: 10px 0;
    color: #2c3e50;
    font-weight: 600;
}

/* Question Text */
.question-text {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-option {
    background: #ecf0f1;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    font-size: 1.1rem;
}

.answer-option:hover {
    background: #d5dbdd;
    transform: translateX(5px);
}

.answer-option.selected {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

.answer-option.correct {
    background: #27ae60;
    color: white;
    border-color: #229954;
}

.answer-option.incorrect {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
}

/* Practice and Quiz Controls */
.practice-controls,
.quiz-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.practice-button,
.quiz-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.practice-button:hover,
.quiz-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.practice-button:disabled,
.quiz-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* Quiz Progress */
.quiz-progress {
    margin-bottom: 30px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

#progressText {
    font-weight: 600;
    color: #3498db;
}

/* Feedback */
.feedback-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-success {
    background: #d5f4e6;
    color: #27ae60;
    border: 2px solid #27ae60;
}

.feedback-error {
    background: #fadbd8;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

/* Results */
.results-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.results-container h2 {
    color: #3498db;
    margin-bottom: 20px;
}

.score-display {
    font-size: 3rem;
    font-weight: bold;
    color: #27ae60;
    margin: 20px 0;
}

.score-message {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
}

/* Checkout Page */
.checkout-section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.checkout-section h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.checkout-form-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e1e1e1;
}

.checkout-form-container h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 600;
}

.checkout-form-container .form-group {
    margin-bottom: 20px;
}

.checkout-form-container label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.checkout-form-container input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.checkout-form-container input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.checkout-form-container .payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.checkout-form-container .payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-form-container .payment-method:hover {
    border-color: #ff6b6b;
    background: #fff5f5;
}

.checkout-form-container .payment-method input[type="radio"] {
    margin-bottom: 8px;
}

.checkout-form-container .method-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.checkout-form-container .method-name {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
}

.checkout-form-container .security-info {
    text-align: center;
    margin: 25px 0;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
    border: 1px solid #d1e7ff;
}

.checkout-form-container .security-info p {
    margin: 0;
    color: #2c3e50;
    font-weight: 500;
}

.checkout-button {
    width: 100%;
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.checkout-button:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.order-summary {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e1e1e1;
}

.order-summary h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 600;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #e0e6ff;
    transition: all 0.3s ease;
}

.badge:hover {
    background: #e8ecff;
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.badge span:last-child {
    font-size: 11px;
    color: #666;
    text-align: center;
    line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .checkout-form-container .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkout-section {
        padding: 20px 15px;
    }
}

/* Pricing Section */
.pricing-section {
    padding: 40px 20px;
    text-align: center;
}

.pricing-section h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.pricing-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    border-color: #ff6b6b;
    transform: scale(1.05);
}

.most-chosen-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b6b;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 5px;
}

.period {
    color: #666;
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
}

.pricing-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.pricing-button {
    width: 100%;
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #e1e1e1;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.pricing-button:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    transform: translateY(-2px);
}

.pricing-button.primary {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.pricing-button.primary:hover {
    background: #ff5252;
    border-color: #ff5252;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e1e1e1;
    background: #f8f9fa;
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 30px;
}

.order-section {
    margin-bottom: 30px;
}

.order-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
    border-top: 2px solid #e1e1e1;
    margin-top: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #ff6b6b;
    background: #fff5f5;
}

.payment-method input[type="radio"] {
    margin-bottom: 8px;
}

.payment-method input[type="radio"]:checked + .method-icon {
    transform: scale(1.2);
}

.method-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.method-name {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
}

.security-info {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
    border: 1px solid #d1e7ff;
}

.security-info p {
    margin: 0;
    color: #2c3e50;
    font-weight: 500;
}

.payment-button {
    width: 100%;
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.payment-button:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Access Code Page */
.access-code-container {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.access-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.access-code-container h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 700;
}

.access-code-container p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.access-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

#accessCodeInput {
    padding: 18px 20px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: border-color 0.3s ease;
}

#accessCodeInput:focus {
    outline: none;
    border-color: #ff6b6b;
}

.access-button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.access-button:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.no-code-link {
    margin-top: 20px;
}

.no-code-link a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
}

.no-code-link a:hover {
    text-decoration: underline;
}

.access-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
}

.access-message .success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.access-message .error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Worksheets Page */
.worksheets-section {
    padding: 40px 20px;
}

.worksheets-section h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.worksheets-section p {
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.1rem;
}

.worksheets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.worksheet-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.worksheet-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.worksheet-card.unlocked {
    border-color: #27ae60;
}

.worksheet-card.locked {
    border-color: #e1e1e1;
    opacity: 0.8;
}

.worksheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.worksheet-header h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.difficulty-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 10px;
}

.difficulty-badge.comfortable {
    background: #e3f8e9;
    color: #00d68f;
}

.difficulty-badge.average {
    background: #fff3cd;
    color: #ffab00;
}

.difficulty-badge.difficult {
    background: #ffebe9;
    color: #ff3d71;
}

.worksheet-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.worksheet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-count {
    color: #888;
    font-size: 0.9rem;
}

.download-button {
    background: #27ae60;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-button:hover {
    background: #219653;
    transform: translateY(-1px);
}

.locked-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-weight: 500;
}

.locked-indicator .lock-icon {
    font-size: 1rem;
}

/* Locked Worksheets Section */
.worksheets-locked {
    text-align: center;
    padding: 40px 20px;
}

.worksheets-locked .lock-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.worksheets-locked h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 700;
}

.worksheets-locked p {
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.worksheets-preview {
    margin-bottom: 40px;
}

.unlock-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.unlock-button {
    background: #ff6b6b;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.unlock-button:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.access-code-button {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #e1e1e1;
    transition: all 0.3s ease;
}

.access-code-button:hover {
    background: #e9ecef;
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: translateY(-2px);
}

/* Success Message Container */
.success-message-container {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 20px;
}

.success-message-container h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 700;
}

.success-message-container p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.access-code-box {
    background: #f8f9fa;
    border: 2px solid #27ae60;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.access-code-box p {
    margin: 0 0 15px 0;
    font-weight: 600;
    color: #2c3e50;
}

.access-code-box .code {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #27ae60;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #27ae60;
    letter-spacing: 2px;
    margin: 15px 0;
}

.code-info {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .worksheets-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .worksheet-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .worksheet-header h3 {
        text-align: left;
    }
    
    .difficulty-badge {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .unlock-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .unlock-button, .access-code-button {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .access-code-container {
        padding: 40px 15px;
    }
    
    .success-message-container {
        padding: 40px 15px;
    }
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.navigation-buttons a {
    color: white;
}

.nav-button {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.nav-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    color: #3498db;
    margin-bottom: 20px;
}

.modal-content input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.modal-content input:focus {
    outline: none;
    border-color: #3498db;
}

.modal-content button {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.modal-content button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.error-message {
    color: #e74c3c;
    margin-top: 15px;
    font-weight: 600;
}

/* Student Form Modal Styles */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group.checkbox-group {
    display: flex;
    align-items: center;
}

.form-group.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    font-weight: 500;
}

.form-group.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.submit-button {
    width: 100%;
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

.submit-button:hover {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.4);
}

.access-code-display {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.access-code-display h3 {
    color: #27ae60;
    margin-bottom: 15px;
}

.code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border: 2px dashed #27ae60;
    border-radius: 8px;
}

.code-box span {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 2px;
}

.copy-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-button:hover {
    background: #2980b9;
}

.use-code-button {
    width: 100%;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    margin-top: 15px;
}

.use-code-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .math-illustration {
        margin-top: 30px;
    }
    
    .fraction-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 20px;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        width: 100%;
        max-width: 400px;
    }
    
    .fraction-example {
        flex-direction: column;
        text-align: center;
    }
    
    .visual-examples {
        flex-direction: column;
        align-items: center;
    }
    
    .practice-controls,
    .quiz-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .practice-button,
    .quiz-button {
        width: 100%;
        max-width: 300px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 20% auto;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .answer-option {
        padding: 12px 15px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .hero-section,
    .page-header {
        background: none !important;
        color: #000 !important;
    }
    
    .practice-controls,
    .quiz-controls,
    .navigation-buttons {
        display: none;
    }
    
    .modal {
        display: none !important;
    }
}

/* Pricing Page Styles */
.pricing-section {
    text-align: center;
    padding: 40px 20px;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e1e1e1;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
}

.pricing-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.period {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.pricing-features li::before {
    content: "✓";
    color: #27ae60;
    margin-right: 10px;
    font-weight: bold;
}

.pricing-button {
    display: inline-block;
    padding: 12px 30px;
    background: #ecf0f1;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pricing-button.primary {
    background: #3498db;
    color: white;
}

.pricing-button:hover {
    background: #bdc3c7;
}

.pricing-button.primary:hover {
    background: #2980b9;
}

/* Checkout Styles */
.checkout-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.checkout-form-container, .order-summary {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    cursor: pointer;
}

.payment-method:hover {
    background: #f9f9f9;
}

.checkout-button {
    width: 100%;
    padding: 15px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.checkout-button:hover {
    background: #219a52;
}

/* Download Button */
.download-section {
    text-align: center;
    margin: 30px 0;
}

.download-button {
    display: inline-block;
    padding: 15px 30px;
    background: #e67e22;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
    transition: transform 0.2s ease;
}

.download-button:hover {
    transform: translateY(-2px);
    color: white;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* Worksheets Page Styles */
.worksheets-section {
    text-align: center;
    padding: 40px 20px;
}

.worksheets-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.worksheet-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 300px;
    width: 100%;
    transition: transform 0.3s ease;
    border: 1px solid #e1e1e1;
}

.worksheet-card:hover {
    transform: translateY(-5px);
}

.worksheet-card h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.worksheet-card p {
    margin-bottom: 25px;
    color: #666;
}

/* Modern Login Form Design */
.login-section {
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-section::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
    opacity: 0.3;
}

.login-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 100%;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: translateY(0);
    transition: all 0.4s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(102, 126, 234, 0.08) 50%, transparent 70%);
    pointer-events: none;
    border-radius: 23px;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.login-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.login-icon:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 20px 45px rgba(102, 126, 234, 0.5);
}

.login-icon span {
    font-size: 45px;
    filter: brightness(0) invert(1);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

/* Form */
.login-form {
    background: #ffffff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(112, 62, 219, 0.18);
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Input */
.login-form input {
    flex: 1;
    padding: 14px 16px;
    font-size: 15px;
    border: 1.5px solid #e2e2e2;
    border-radius: 10px;
    outline: none;
    transition: 0.3s ease;
    background: #ffffff;
    color: #2c3e50;
}

.login-form input::placeholder {
    color: #aaa;
}

.login-form input:focus {
    border-color: #703EDB;
    box-shadow: 0 0 0 3px rgba(112, 62, 219, 0.15);
}

/* Button */
.login-button {
    padding: 14px 26px;
    background: linear-gradient(135deg, #703EDB, #E33D5C);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Button Text */
.login-button .button-text {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

/* Hover Effect */
.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(227, 61, 92, 0.35);
}

.login-button::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 ease;
}

.login-button:hover::before {
    left: 100%;
}

/* Loader */
.button-loader {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none;
}

/* Loader Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.login-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.login-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    pointer-events: none;
}

.login-message.success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(32, 201, 151, 0.15));
    color: #155724;
    border: 2px solid #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.login-message.error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(192, 35, 51, 0.15));
    color: #721c24;
    border: 2px solid #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

/* 📱 Mobile Responsive */
@media (max-width: 600px) {
    .login-form {
        flex-direction: column;
        gap: 15px;
    }

    .login-button {
        width: 100%;
    }
    
    .login-card {
        margin: 20px;
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .login-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .login-icon span {
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 20px 15px;
    }
    
    .login-card {
        border-radius: 18px;
        padding: 30px 20px;
        margin: 15px;
    }
    
    .login-icon {
        width: 60px;
        height: 60px;
    }
    
    .login-icon span {
        font-size: 30px;
    }
}

/* Video Styles */
.videos-section {
    padding: 40px 0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    font-size: 48px;
    color: white;
    opacity: 0.9;
}

.video-content {
    padding: 20px;
}

.video-content h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.video-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.category-badge, .grade-badge, .topic-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge.Explanation {
    background: #e3f2fd;
    color: #1976d2;
}

.category-badge.Practice {
    background: #f3e5f5;
    color: #7b1fa2;
}

.category-badge.Example {
    background: #e8f5e8;
    color: #388e3c;
}

.grade-badge {
    background: #fff3e0;
    color: #f57c00;
}

.topic-badge {
    background: #fce4ec;
    color: #c2185b;
}

.video-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.video-duration {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

.video-actions {
    margin-top: 15px;
}

.watch-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.watch-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Locked Video Styles */
.video-card.locked {
    position: relative;
}

.video-card.locked .video-thumbnail {
    filter: grayscale(100%);
    opacity: 0.7;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px 15px 0 0;
}

.locked-overlay .lock-icon {
    font-size: 32px;
    color: white;
}

.videos-locked {
    text-align: center;
    padding: 60px 20px;
}

.videos-locked .lock-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.videos-locked h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.videos-locked p {
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}

.videos-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.unlock-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.unlock-button, .access-code-button {
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.unlock-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.access-code-button {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.unlock-button:hover, .access-code-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive Video Styles */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .videos-preview {
        grid-template-columns: 1fr;
    }
    
    .unlock-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .unlock-button, .access-code-button {
        width: 250px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .video-thumbnail {
        height: 180px;
    }
    
    .video-content {
        padding: 15px;
    }
    
    .video-content h3 {
        font-size: 16px;
    }
    
    .play-icon {
        font-size: 36px;
    }
}
