/* Public styles for Simple Quiz and Polls v1.2 */
.sqap-container { background-color: #f9f9f9; border: 1px solid #ddd; padding: 20px; margin-bottom: 20px; border-radius: 5px; }
.sqap-container h3 { margin-top: 0; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.sqap-question { margin-bottom: 20px; }

/* v1.2: Styles for the question image on the frontend */
.sqap-question-image {
    margin-bottom: 15px;
    text-align: center;
}
.sqap-question-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sqap-question-text { font-size: 1.1em; margin-bottom: 10px; }
.sqap-option-label { display: block; background-color: #fff; padding: 10px; border: 1px solid #ccc; margin-bottom: 5px; border-radius: 3px; cursor: pointer; transition: background-color 0.2s ease-in-out; }
.sqap-option-label:hover { background-color: #f0f0f0; }
.sqap-option-label input { margin-right: 10px; }
.sqap-submit-button { background-color: #0073aa; color: white; border: none; padding: 10px 20px; font-size: 1em; border-radius: 3px; cursor: pointer; }
.sqap-submit-button:hover { background-color: #005a87; }

/* Unchanged from v1.1 */
.sqap-final-score { font-size: 1.2em; font-weight: bold; color: #333; background-color: #eef7ff; border-left: 4px solid #2196F3; padding: 10px 15px; }
.sqap-results-container h4 { margin-top: 0; }
.sqap-result-question { margin-bottom: 20px; padding-top: 15px; border-top: 1px dashed #ddd; }
.sqap-result-question:first-child { border-top: none; padding-top: 0; }
.sqap-result-option { margin-bottom: 10px; position: relative; }
.sqap-result-option.user-correct::before, .sqap-result-option.user-incorrect::before { font-weight: bold; font-family: 'dashicons'; display: inline-block; vertical-align: middle; margin-right: 8px; font-size: 20px; }
.sqap-result-option.user-correct::before { content: "\f147"; color: #4CAF50; }
.sqap-result-option.user-incorrect::before { content: "\f158"; color: #F44336; }
.sqap-result-option.actual-correct { background: #e8f5e9; border-radius: 3px; }
.sqap-result-option.user-incorrect.actual-correct { background: #ffebee; }
.sqap-option-text-and-feedback { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.sqap-option-text { flex-grow: 1; }
.sqap-percentage { font-size: 0.9em; color: #555; font-weight: bold; padding-left: 10px; }
.sqap-progress-bar-container { width: 100%; background-color: #e0e0e0; border-radius: 4px; height: 24px; overflow: hidden; }
.sqap-progress-bar { background-color: #2196F3; height: 100%; border-radius: 4px; text-align: right; color: white; font-weight: bold; font-size: 13px; line-height: 24px; padding-right: 8px; transition: width 0.6s ease-in-out; white-space: nowrap; box-sizing: border-box; }