/* ===== Solving Test Styles - MathCompass Blue Theme ===== */

.pref-card {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 36px 32px;
    width: 100%;
    max-width: 800px;
    margin: 60px auto 40px auto;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
    border: 1px solid #e2e8f0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.pref-active {
    display: block;
}

.pref-hidden {
    display: none;
}

.pref-title {
    text-align: center;
    margin-top: 0;
    font-size: 22px;
    color: #1a0a0a;
    font-weight: 700;
}

.pref-question {
    text-align: center;
    font-size: 18px;
    margin-top: 12px;
    color: #334155;
}

.pref-content {
    margin-top: 16px;
    text-align: center;
    color: #64748b;
    font-size: 15px;
}

.pref-options {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pref-option-btn {
    font-size: 16px;
    padding: 14px 20px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    background-color: #f8fafc;
    color: #1e293b;
    text-align: left;
    transition: all 0.25s ease;
    font-weight: 500;
}

.pref-option-btn:hover {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #B22222;
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .pref-card {
        margin-top: 40px;
        padding: 24px 20px;
    }

    .pref-option-btn {
        font-size: 15px;
    }
}

.solving-card {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 36px 32px;
    width: 100%;
    max-width: 800px;
    margin: 60px auto 40px auto;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
    border: 1px solid #e2e8f0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.solving-active {
    display: block;
}

.solving-title {
    text-align: center;
    margin-top: 0;
    font-size: 22px;
    color: #1a0a0a;
    font-weight: 700;
}

.solving-question {
    text-align: center;
    font-size: 17px;
    margin-top: 12px;
    color: #64748b;
}

.solving-content {
    margin-top: 24px;
    text-align: center;
    font-size: 20px;
    color: #1e293b;
    line-height: 1.7;
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.solving-input-area {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.solving-input-area input {
    width: 140px;
    font-size: 18px;
    padding: 12px 16px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color 0.2s;
    outline: none;
}

.solving-input-area input:focus {
    border-color: #DC143C;
}

.solving-submit-btn {
    font-size: 16px;
    padding: 14px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #DC143C, #B22222);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(220, 20, 60, 0.3);
}

.solving-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.4);
}

/* Mobile */
@media (max-width: 768px) {
    .solving-card {
        margin-top: 40px;
        padding: 24px 20px;
    }

    .solving-submit-btn {
        font-size: 16px;
        width: 100%;
        max-width: 240px;
    }
}

#ans-num {
    width: 120px;
    text-align: center;
    font-size: 18px;
    padding: 10px;
}
