/* General Quiz Container */
.mehruedu-quiz-container {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    border: 2px solid #28a745; 
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center; 
}

/* Initial Quiz Info Styling */
.mehruedu-quiz-initial-info {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #e9f5fe; 
    border: 1px solid #bde0fe; 
    border-radius: 6px;
    text-align: center; 
}

.mehruedu-quiz-initial-info p {
    margin: 5px 0;
    font-size: 1.1em;
    color: #0056b3; 
    font-weight: 500;
}

.mehruedu-quiz-initial-info p span {
    font-weight: bold;
    color: #004085; 
}

/* Timer Display */
.timer-display {
    font-size: 1.2em;
    font-weight: bold;
    color: #ff5722;
    text-align: center;
    margin-bottom: 10px;
}

/* Progress Bar Container */
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Progress Indicator */
.progress-bar .progress {
    height: 100%;
    width: 0; 
    background-color: #28a745;
    transition: width 0.4s ease;
}

/* Each Quiz Question */
.mehruedu-quiz-question {
    display: none; 
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: left; 
}

/* Styling for the top line of each question */
.question-top-line {
    font-size: 1.25em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #aa2394;
}

/* Description line styling */
.question-description {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #666;
}

/* Standard True/False Radio Buttons */
.mehruedu-quiz-question label { 
    display: block;
    margin: 10px 0;
    cursor: pointer;
}

.mehruedu-quiz-question input[type="radio"] { 
    margin-right: 10px;
    vertical-align: middle;
}

/* Fill in the Blanks Input */
.mehruedu-quiz-question input.fill-blank {
    width: 100px;
    padding: 5px;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Pair Matching */
.pair-matching-container {
    display: flex;
    justify-content: space-between;
}

.left-pairs, .right-pairs {
    width: 48%;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 6px;
    min-height: 100px;
}

.pair-item {
    padding: 8px;
    background-color: #fff;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pair-item.selected {
    background-color: #ffd700; 
}

.pair-item.correct { 
    color: white; 
}

.pair-item.incorrect { 
    background-color: #dc3545; 
    color: white;
}

/* Rearrange */
.re-disordered, .re-order-target { 
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap; 
    padding: 10px;    
    min-height: 50px; 
    border-radius: 6px;
}

.re-disordered {
    background-color: #e9ecef; 
    border: 1px solid #ced4da;
}

.re-order-target { 
    margin-top: 15px; 
    border: 2px dashed #007bff; 
    background-color: #f8f9fa; 
}

.re-item {
    padding: 8px 12px; 
    background-color: #fff; 
    border: 1px solid #adb5bd; 
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: inline-block; 
}

.re-item:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-2px); 
    border-color: #0056b3;
}

.re-order-container p { 
    margin-bottom: 5px;
    font-weight: bold;
    color: #495057;
}


/* MCQ Button Styling */
.mehruedu-mcq-option {
    display: block;
    padding: 10px 20px;
    margin-bottom: 10px;
    background-color: #b1cfec;
    border-color: #a1c4e4; 
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, font-size 0.3s, color 0.3s, border-color 0.3s;
    text-align: center;
    font-size: 1em;
    border: 1px solid #a1c4e4; 
}

.mehruedu-mcq-option:hover {
    background-color: #cf7de7;
    color: #fff;
}

.mehruedu-mcq-option.selected {
    background-color: #e754cf; 
    color: #fff; 
    font-size: 1.1em; 
    border-color: #c445b0; 
}

.mehruedu-mcq-option input[type="radio"] {
    display: none;
}

/* "Review and Next" Button */
.mehruedu-submit-quiz {
    display: block;
    width: 100%;
    padding: 12px; 
    background-color: #28a745; 
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em; 
    transition: background-color 0.3s;
    margin-top: 20px; 
}

.mehruedu-submit-quiz:hover {
    background-color: #218838; 
}

/* "Understood" Button Styling */
.mehruedu-understood-button {
    display: block;
    width: 100%; 
    padding: 12px;
    background-color: #007bff; 
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s;
    margin-top: 10px; 
    margin-bottom: 10px; 
}

.mehruedu-understood-button:hover {
    background-color: #0056b3; 
}

/* "Play Again" Button Styling */
.mehruedu-play-again-button {
    display: block;
    width: 50%; 
    margin: 25px auto 10px auto; 
    padding: 12px 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    background-color: #17a2b8; 
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mehruedu-play-again-button:hover {
    background-color: #138496; 
    transform: translateY(-1px);
}


/* Feedback Messages */
.feedback-message {
    display: none; 
    margin-top: 15px; 
    margin-bottom: 10px; 
    padding: 12px 15px; 
    border-radius: 6px; 
    font-size: 1em;
    text-align: center; 
}

.feedback-correct {
    background-color: #d4edda; 
    color: #155724; 
    border: 1px solid #c3e6cb;
}

.feedback-incorrect {
    background-color: #f8d7da; 
    color: #721c24; 
    border: 1px solid #f5c6cb;
}

/* Inactive "Review and Next" Button */
.mehruedu-submit-quiz[disabled] {
    background-color: #e9ecef; 
    color: #6c757d; 
    cursor: not-allowed;
    border: 1px solid #ced4da;
}

/* Scorecard Styling */
.mehruedu-scorecard {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: left; 
}

.scorecard-content h2 {
    text-align: center;
    color: #007bff; 
    margin-bottom: 20px;
}

.scorecard-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #495057;
}

.scorecard-content p strong {
    color: #343a40;
}

/* Question and Answer Review List in Scorecard */
.question-answer-list {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.question-answer-list h3 {
    text-align: center;
    color: #28a745; 
    margin-bottom: 20px;
}

.question-answer-list ul {
    list-style-type: none;
    padding-left: 0;
}

.question-answer-list li {
    background-color: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-size: 1em;
    line-height: 1.5;
}
.question-answer-list li strong {
    color: #007bff;
}


/* Social Share Section */
.social-share {
    margin-top: 30px; 
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee; 
}

.social-share p {
    font-size: 1.1em; 
    font-weight: bold;
    margin-bottom: 15px; 
    color: #343a40; 
}

.social-share-btn {
    display: inline-flex; 
    align-items: center; 
    margin: 5px 8px; 
    padding: 10px 18px; 
    font-size: 0.95em; 
    font-weight: 500; 
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.social-share-btn i { 
    margin-right: 8px;
    font-size: 1.2em; 
}

/* Facebook Button */
.social-share-btn[data-platform="facebook"] {
    background-color: #3b5998;
}
.social-share-btn[data-platform="facebook"]:hover {
    background-color: #304a7d;
}

/* WhatsApp Button */
.social-share-btn[data-platform="whatsapp"] {
    background-color: #25D366;
}
.social-share-btn[data-platform="whatsapp"]:hover {
    background-color: #1da851;
}

/* X (Twitter) Button */
.social-share-btn[data-platform="x"] {
    background-color: #000000;
}
.social-share-btn[data-platform="x"]:hover {
    background-color: #333333;
}


/* Hover Effects for social buttons */
.social-share-btn:hover {
    transform: translateY(-2px); 
    opacity: 0.95;
}

/* Start Quiz Button (Main button, text is dynamic) */
.start-quiz {
    display: block;
    width: auto;
    min-width: 200px;
    margin: 20px auto; 
    padding: 15px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    background-color: #007bff; 
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.start-quiz:hover {
    background-color: #0056b3; 
    transform: translateY(-2px);
}

/* --- Styles for Knowledge Slides --- */
.mehruedu-knowledge-slides-area {
    padding: 20px;
    border: 1px dashed #007bff;
    background-color: #f0f8ff;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 6px;
}

.slide-text-display {
    padding: 25px; 
    margin-bottom: 20px; 
    border: 1px solid #bde0fe; 
    background: #e7f5ff;
    text-align: center; 
    font-size: 1.4em;
    color: #004085;
    min-height: 80px;
    border-radius: 6px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mehruedu-knowledge-slides-area button {
    padding: 10px 20px;
    margin: 8px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    color: white;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.mehruedu-knowledge-slides-area button:hover {
    transform: translateY(-1px);
}

.mehruedu-skip-slides-button {
    background-color: #ffc107;
    color: #212529;
}
.mehruedu-skip-slides-button:hover {
    background-color: #e0a800;
}

.mehruedu-previous-slide-button {
    background-color: #6c757d; /* Grey color for previous button */
}
.mehruedu-previous-slide-button:hover {
    background-color: #5a6268;
}

.mehruedu-next-slide-button {
    background-color: #28a745;
}
.mehruedu-next-slide-button:hover {
    background-color: #218838;
}

/* "See Knowledge Slides Again" Button Styling */
.mehruedu-see-slides-again-button {
    display: block;
    width: auto;
    min-width: 250px;
    margin: 25px auto 10px auto; 
    padding: 12px 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    background-color: #17a2b8;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mehruedu-see-slides-again-button:hover {
    background-color: #138496; 
    transform: translateY(-1px);
}