/* sentence-completion-check.css */
/* Standalone stylesheet for sentence completion and writing practice */
/* Consistent with Biling-USCIS-QA.css conventions */

body {
    font-family: Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    color: #111;
}

h1 {
    font-size: 1.5em;
    color: #003366;
    border-bottom: 3px solid #003366;
    padding-bottom: 10px;
    margin-bottom: 8px;
}

/* Instructions block */
#instructions {
    background-color: #fff;
    border-left: 4px solid #003366;
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.97em;
    line-height: 1.6;
}

#instructions p {
    margin: 4px 0;
}

.spanish-text {
    display: none;
    color: black;
    background-color: #e8f0fb;
    font-size: 0.93em;
    margin-top: 2px;
}

.spanish-text em {
    font-style: italic;
}

/* Toggle Spanish button */
#toggle-spanish {
    background-color: #e8f0fb;
    color: #003366;
    border: 1px solid #003366;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    margin-bottom: 20px;
}

#toggle-spanish:hover {
    background-color: #cddcf5;
}

/* Individual sentence item card */
.sentence-item {
    background-color: #fff;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sentence-number {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 6px;
}

.sentence-display {
    font-size: 1.1em;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Blank placeholder in sentence */
.blank {
    display: inline-block;
    min-width: 80px;
    border-bottom: 2px solid #003366;
    text-align: center;
    color: #003366;
    font-weight: bold;
    padding: 0 4px;
}

/* Multiple choice options */
.mc-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.mc-btn {
    background-color: #f0f4fa;
    color: #111;
    border: 1px solid #aac;
    border-radius: 4px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 0.97em;
}

.mc-btn:hover {
    background-color: #dce8f7;
}

.mc-btn.correct {
    background-color: #d4edda;
    border-color: #388e3c;
    color: #1b5e20;
    font-weight: bold;
}

.mc-btn.incorrect {
    background-color: #fde8e8;
    border-color: #c62828;
    color: #7f0000;
}

.mc-btn:disabled {
    cursor: default;
    opacity: 0.85;
}

/* Writing phase prompt */
.writing-prompt {
    margin-top: 12px;
    padding: 10px 14px;
    background-color: #f0f4fa;
    border-radius: 4px;
    border-left: 3px solid #003366;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.writing-prompt-text {
    font-size: 0.97em;
    color: #003366;
}

.prompt-yes-btn, .prompt-no-btn {
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.93em;
    border: 1px solid #aaa;
}

.prompt-yes-btn {
    background-color: #d4edda;
    color: #1b5e20;
    border-color: #388e3c;
}

.prompt-yes-btn:hover {
    background-color: #b8dfc2;
}

.prompt-no-btn {
    background-color: #f5f5f5;
    color: #333;
}

.prompt-no-btn:hover {
    background-color: #e0e0e0;
}

.practice-later-btn {
    background-color: #e8f0fb;
    color: #003366;
    border: 1px solid #003366;
    border-radius: 4px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 0.88em;
    margin-top: 8px;
}

.practice-later-btn:hover {
    background-color: #cddcf5;
}


.writing-section {
    display: none;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

.writing-label {
    font-size: 1em;
    color: #003366;
    margin-bottom: 6px;
}

.writing-label .spanish-text {
    font-size: 0.9em;
}

.speak-btn {
    background-color: #e8f0fb;
    color: #003366;
    border: 1px solid #003366;
    border-radius: 4px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.speak-btn:hover {
    background-color: #cddcf5;
}

.writing-input {
    width: 100%;
    box-sizing: border-box;
    font-size: 1em;
    padding: 8px;
    border: 1px solid #aaa;
    border-radius: 4px;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
}

.writing-input:focus {
    outline: 2px solid #003366;
    border-color: #003366;
}

.word-correct {
    color: #1b5e20;
}

.word-wrong {
    color: #c62828;
    font-weight: bold;
    text-decoration: underline wavy #c62828;
}

/* Action buttons row */
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.check-btn {
    background-color: #003366;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 7px 16px;
    cursor: pointer;
    font-size: 0.95em;
}

.check-btn:hover {
    background-color: #0055a5;
}

.hint-btn, .reveal-btn {
    background-color: #fff8e1;
    color: #5d4037;
    border: 1px solid #bcaaa4;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.88em;
    display: none;
}

.hint-btn:hover, .reveal-btn:hover {
    background-color: #ffecb3;
}

/* Feedback messages */
.feedback-msg {
    font-size: 0.95em;
    margin-top: 4px;
    min-height: 1.2em;
}

.feedback-correct {
    color: #1b5e20;
    font-weight: bold;
}

.feedback-hint {
    color: #5d4037;
    background-color: #fff8e1;
    border-left: 3px solid #f9a825;
    padding: 6px 10px;
    border-radius: 3px;
    margin-top: 6px;
}

.feedback-hint .spanish-text {
    display: none;
}

.revealed-answer {
    background-color: #e8f4f8;
    border-left: 3px solid #0066cc;
    padding: 6px 10px;
    border-radius: 3px;
    margin-top: 6px;
    font-size: 0.95em;
}

/* Completed state */
.sentence-item.completed {
    border-left: 4px solid #388e3c;
}

@media (max-width: 600px) {
    .mc-options {
        flex-direction: column;
    }
    .mc-btn {
        width: 100%;
    }
}
