/* Results container */
.result-container {
    margin-top: 30px;
    display: none;
}

.result-container.show {
    display: block;
}

/* Individual step styling */
.step {
    background: #f8f9fa;
    border-left: 4px solid #37516f;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-10px);
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step label (e.g., "Step 1 of 5") */
.step-label {
    font-weight: 600;
    color: #37516f;
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Step content */
.step-text {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

/* Make MathJax expressions stand out */
.step-text .MathJax {
    font-size: 1.1em !important;
}

/* Center displayed math ($$...$$) */
.step-text .MathJax_Display {
    margin: 15px 0 !important;
}

/* Progress indicator */
.progress-indicator {
    text-align: center;
    color: #37516f;
    font-size: 14px;
    margin-top: 15px;
    font-weight: 500;
}

/* Error styling */
.error {
    color: #dc3545;
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 20px;
    border-radius: 8px;
}

/* Target the textarea by its ID */
#question {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fafafa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    line-height: 1.6;
}

#question:focus {
    outline: none;
    border-color: #37516f;
    background: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

#question:hover:not(:focus) {
    border-color: #b8c1ec;
    background: #fff;
}