/* PostTest Container */
.fceu-posttest-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.fceu-posttest-wrapper {
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
    overflow: hidden;
}

/* PostTest Header */
.fceu-posttest-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 40px;
}

.fceu-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.fceu-back-link:hover {
    opacity: 1;
}

.fceu-posttest-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.fceu-posttest-subtitle {
    font-size: 18px;
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.fceu-posttest-instructions {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Progress Bar */
.fceu-posttest-progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.fceu-posttest-progress-fill {
    background: white;
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.fceu-posttest-progress-text {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    opacity: 0.9;
}

/* PostTest Form */
.fceu-posttest-form {
    padding: 40px;
}

/* Question Card */
.fceu-posttest-question {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.2s ease;
}

.fceu-posttest-question:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.fceu-question-answered {
    border-color: #2563eb;
    background: #eff6ff;
}

.fceu-question-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.fceu-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: #2563eb;
    color: white;
    border-radius: 8px;
    font-weight: 700;
    margin-right: 12px;
}

/* Question Options */
.fceu-question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fceu-option-label {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.fceu-option-label:hover {
    border-color: #2563eb;
    background: #f0f9ff;
    transform: translateX(4px);
}

.fceu-option-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.fceu-option-label input[type="radio"]:checked ~ .fceu-option-marker {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.fceu-option-label input[type="radio"]:checked ~ .fceu-option-text {
    font-weight: 600;
    color: #1e293b;
}

.fceu-option-label:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.fceu-option-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    color: #64748b;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.fceu-option-text {
    flex: 1;
    font-size: 16px;
    color: #334155;
    line-height: 1.5;
}

/* Actions */
.fceu-posttest-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.fceu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

.fceu-btn-primary {
    background: #2563eb;
    color: white;
}

.fceu-btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.fceu-btn-primary:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.6;
}

.fceu-btn-secondary {
    background: #64748b;
    color: white;
}

.fceu-btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
}

.fceu-btn-lg {
    padding: 18px 48px;
    font-size: 18px;
}

/* Loading State */
.fceu-posttest-loading {
    text-align: center;
    padding: 40px;
}

.fceu-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: fceu-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes fceu-spin {
    to { transform: rotate(360deg); }
}

.fceu-posttest-loading p {
    font-size: 18px;
    color: #64748b;
    margin: 0;
}

/* Results Display */
.fceu-posttest-results {
    padding: 60px 40px;
    text-align: center;
}

.fceu-results-header {
    margin-bottom: 40px;
}

.fceu-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 48px;
    font-weight: 700;
}

.fceu-icon-success {
    background: #f0fdf4;
    color: #10b981;
}

.fceu-icon-failure {
    background: #fef2f2;
    color: #ef4444;
}

.fceu-results-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.fceu-results-passed .fceu-results-title {
    color: #10b981;
}

.fceu-results-failed .fceu-results-title {
    color: #ef4444;
}

/* Score Circle */
.fceu-results-score {
    margin-bottom: 40px;
}

.fceu-score-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.fceu-circular-chart {
    display: block;
    width: 100%;
    height: 100%;
}

.fceu-circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3;
}

.fceu-circle-result {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    animation: fceu-progress 1s ease-out forwards;
}

@keyframes fceu-progress {
    from {
        stroke-dasharray: 0, 100;
    }
}

.fceu-percentage-result {
    fill: #1e293b;
    font-size: 0.5em;
    font-weight: 700;
    text-anchor: middle;
}

.fceu-score-text {
    font-size: 18px;
    color: #334155;
    margin: 0 0 12px 0;
}

.fceu-score-required {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* Results Actions */
.fceu-results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fceu-posttest-container {
        padding: 20px 10px;
    }

    .fceu-posttest-header {
        padding: 30px 20px;
    }

    .fceu-posttest-title {
        font-size: 28px;
    }

    .fceu-posttest-form {
        padding: 20px;
    }

    .fceu-posttest-question {
        padding: 20px;
    }

    .fceu-question-title {
        font-size: 18px;
    }

    .fceu-option-label {
        padding: 14px 16px;
        gap: 12px;
    }

    .fceu-option-marker {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .fceu-option-text {
        font-size: 15px;
    }

    .fceu-btn-lg {
        padding: 14px 32px;
        font-size: 16px;
    }

    .fceu-posttest-results {
        padding: 40px 20px;
    }

    .fceu-results-title {
        font-size: 26px;
    }
}

@media (max-width: 640px) {
    .fceu-question-number {
        min-width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .fceu-results-actions {
        flex-direction: column;
        width: 100%;
    }

    .fceu-btn {
        width: 100%;
    }
}
