/* Modern Exam UI - Amerikan Kültür Dil Okulları */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.modern-exam {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    line-height: 1.5;
}

.exam-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.exam-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    padding: 36px 32px;
    color: #333;
    position: relative;
    overflow: hidden;
}

.exam-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4361ee, #7c3aed, #4361ee);
}

/* ==================== LOGO ==================== */
.logo-container {
    text-align: center;
    margin-bottom: 24px;
}

.logo-container img {
    max-width: 180px;
    height: auto;
}

.logo-text {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin-top: 4px;
}

/* ==================== PROGRESS BAR ==================== */
.progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    padding: 0 8px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid #d1d5db;
    background: #fff;
    color: #9ca3af;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-circle.active {
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    color: #fff;
    border-color: #4361ee;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.step-circle.completed {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    white-space: nowrap;
}

.step-label.active {
    color: #4361ee;
    font-weight: 700;
}

.step-label.completed {
    color: #10b981;
    font-weight: 600;
}

.step-connector {
    width: 50px;
    height: 2px;
    background: #d1d5db;
    margin: 0 10px;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.step-connector.completed {
    background: #10b981;
}

/* ==================== SECTION INSTRUCTION ==================== */
.section-instruction {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #eff6ff, #f0f4ff);
    border-radius: 10px;
    border-left: 4px solid #4361ee;
    font-weight: 500;
}

/* ==================== QUESTION HEADER ==================== */
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.question-counter {
    font-size: 13px;
    font-weight: 700;
    color: #4361ee;
    background: #eff6ff;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ==================== QUESTION DOTS ==================== */
.question-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dot:hover {
    transform: scale(1.3);
}

.dot.active {
    background: #4361ee;
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.dot.answered {
    background: #10b981;
}

.dot.active.answered {
    background: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* ==================== QUESTION CONTENT ==================== */
.question-container {
    display: none;
    animation: fadeIn 0.3s ease;
}

.question-container.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-text {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
    color: #1f2937 !important;
    padding: 0 4px;
}

.question-text *,
.question-text span,
.question-text font,
.question-text p,
.question-text div,
.question-text b,
.question-text strong,
.question-text i,
.question-text em {
    color: #1f2937 !important;
}

/* ==================== OPTIONS ==================== */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.option-card:hover {
    border-color: #93a3f8;
    background: #f8f9ff;
}

.option-card.selected {
    border-color: #4361ee;
    background: linear-gradient(135deg, #eff6ff, #e8ecff);
    box-shadow: 0 0 0 1px #4361ee;
}

.option-card input[type="radio"] {
    display: none;
}

.option-letter {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    background: #f3f4f6;
    color: #6b7280;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.option-card.selected .option-letter {
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    color: #fff;
}

.option-text {
    font-size: 14px;
    line-height: 1.5;
    color: #374151 !important;
}

.option-text *,
.option-text span,
.option-text font {
    color: #374151 !important;
}

/* ==================== READING PASSAGE ==================== */
.reading-passage {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 220px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
    color: #374151 !important;
}

.reading-passage *,
.reading-passage span,
.reading-passage font,
.reading-passage p,
.reading-passage div,
.reading-passage b,
.reading-passage strong {
    color: #374151 !important;
}

.reading-passage::-webkit-scrollbar {
    width: 6px;
}

.reading-passage::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.reading-passage::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.reading-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: #1a1a2e;
}

/* ==================== AUDIO PLAYER ==================== */
.audio-container {
    margin-bottom: 20px;
    text-align: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.audio-container audio {
    width: 100%;
    max-width: 420px;
    height: 44px;
}

/* ==================== NAVIGATION BUTTONS ==================== */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.nav-left, .nav-right {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-prev {
    background: #f3f4f6;
    color: #374151;
}

.btn-prev:hover {
    background: #e5e7eb;
}

.btn-next {
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    color: #fff;
}

.btn-next:hover {
    background: linear-gradient(135deg, #3f37c9, #3a0ca3);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.btn-finish {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.btn-finish:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-start {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(67, 97, 238, 0.45);
}

/* ==================== LANDING PAGE ==================== */
.landing-content {
    text-align: center;
}

.landing-content h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.landing-content .subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 28px;
    font-weight: 500;
}

.exam-steps {
    text-align: left;
    margin: 24px 0;
}

.exam-step-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.exam-step-item:last-child {
    border-bottom: none;
}

.exam-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.exam-step-text {
    font-size: 15px;
    color: #374151;
    font-weight: 500;
}

.note-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    color: #92400e;
    margin: 24px 0;
    text-align: left;
    line-height: 1.6;
}

.note-box strong {
    color: #78350f;
}

/* ==================== FORM STYLES ==================== */
.form-grid {
    display: grid;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-input, .form-select {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    transition: all 0.2s ease;
    background: #fff;
    outline: none;
}

.form-input:focus, .form-select:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.required-star {
    color: #ef4444;
    margin-left: 2px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

/* ==================== SUCCESS PAGE ==================== */
.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.success-message {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.success-description {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 28px;
}

.success-link {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.success-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

/* ==================== ERROR MESSAGE ==================== */
.error-message {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

/* ==================== FOOTER ==================== */
.exam-footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-weight: 400;
}

/* ==================== NOSCRIPT ==================== */
.noscript-warning {
    background: #fef2f2;
    border: 2px solid #f87171;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #991b1b;
    font-size: 15px;
    font-weight: 600;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
    body.modern-exam {
        padding: 12px 8px;
        align-items: center;
    }

    .exam-card {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .progress-bar {
        gap: 2px;
    }

    .step-connector {
        width: 24px;
        margin: 0 4px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .step-label {
        font-size: 10px;
    }

    .section-title {
        font-size: 16px;
    }

    .question-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .question-text {
        font-size: 14px;
    }

    .option-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .option-letter {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .option-text {
        font-size: 13px;
    }

    .nav-buttons {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .nav-left, .nav-right {
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .landing-content h1 {
        font-size: 20px;
    }

    .reading-passage {
        max-height: 180px;
        padding: 14px;
    }

    .question-dots {
        gap: 4px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}
