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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: #0c1222;
    color: #e8e0d6;
    line-height: 1.5;
    padding: 20px;
}

.dawn-brand {
    position: fixed;
    top: 24px;
    left: 40px;
    font-size: 24px;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: -0.5px;
    z-index: 100;
    text-decoration: none;
}

.dawn-admin-link {
    position: fixed;
    top: 28px;
    right: 40px;
    font-size: 14px;
    color: #8a8070;
    text-decoration: none;
    z-index: 100;
    transition: color 0.2s;
}

.dawn-admin-link:hover {
    color: #f59e0b;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #131b2e;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    padding: 32px;
}

header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #2a3548;
}

header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #f59e0b;
}

.subtitle {
    color: #8a8070;
    font-size: 16px;
}

.loading {
    text-align: center;
    padding: 48px 0;
}

.spinner {
    border: 3px solid #2a3548;
    border-top: 3px solid #f59e0b;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.error {
    background-color: rgba(215, 58, 73, 0.15);
    border: 1px solid #d73a49;
    border-radius: 6px;
    padding: 16px;
    margin: 24px 0;
}

.error h2 {
    color: #f97316;
    font-size: 20px;
    margin-bottom: 8px;
}

.error p {
    color: #e8e0d6;
}

.info-card {
    background-color: #172036;
    border: 1px solid #2a3548;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #f59e0b;
}

.info-card p {
    margin: 4px 0;
    color: #8a8070;
}

.question {
    margin-bottom: 32px;
    padding: 20px;
    border: 1px solid #2a3548;
    border-radius: 6px;
    background-color: #172036;
}

.question-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #e8e0d6;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #2a3548;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #131b2e;
}

.option:hover {
    border-color: #f59e0b;
    background-color: #172036;
}

.option input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #f59e0b;
}

.option label {
    cursor: pointer;
    flex: 1;
    user-select: none;
    color: #e8e0d6;
}

.option.selected {
    border-color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.15);
}

.option.correct {
    border-color: #f97316;
    background-color: rgba(249, 115, 22, 0.15);
}

.option.incorrect {
    border-color: #d73a49;
    background-color: rgba(215, 58, 73, 0.15);
}

.submit-section {
    text-align: center;
    margin-top: 32px;
}

.submit-btn {
    background-color: #22c55e;
    color: #0c1222;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #16a34a;
}

.submit-btn:disabled {
    background-color: rgba(34, 197, 94, 0.5);
    cursor: not-allowed;
}

.results {
    margin-top: 32px;
}

.result-card {
    padding: 24px;
    border-radius: 6px;
    margin-bottom: 24px;
    text-align: center;
}

.result-card.passed {
    background-color: rgba(249, 115, 22, 0.15);
    border: 2px solid #f97316;
}

.result-card.failed {
    background-color: rgba(215, 58, 73, 0.15);
    border: 2px solid #d73a49;
}

.result-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.result-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.result-card.passed .result-title {
    color: #f97316;
}

.result-card.failed .result-title {
    color: #d73a49;
}

.result-score {
    font-size: 20px;
    margin-bottom: 8px;
    color: #e8e0d6;
}

.result-percentage {
    font-size: 16px;
    color: #8a8070;
}

.explanations {
    margin-top: 32px;
}

.explanations h3 {
    font-size: 24px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2a3548;
    color: #e8e0d6;
}

.explanation {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 6px;
    background-color: #172036;
    border-left: 4px solid #f59e0b;
}

.explanation-question {
    font-weight: 600;
    margin-bottom: 8px;
    color: #e8e0d6;
}

.explanation-answer {
    margin: 8px 0;
    padding: 8px;
    border-radius: 4px;
}

.explanation-answer.correct {
    background-color: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.explanation-answer.incorrect {
    background-color: rgba(215, 58, 73, 0.15);
    color: #d73a49;
}

.explanation-text {
    margin-top: 12px;
    color: #8a8070;
    font-size: 14px;
}

@media (max-width: 768px) {
    .dawn-brand {
        position: static;
        display: block;
        text-align: center;
        margin-bottom: 16px;
    }

    .dawn-admin-link {
        position: static;
        display: block;
        text-align: center;
        margin-bottom: 24px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 16px;
    }

    header h1 {
        font-size: 24px;
    }

    .question-header {
        font-size: 16px;
    }
}
