/* Test Navigation Styles */
.test-navigation {
    background: #f0f2f5;
    border-radius: 8px;
    padding: 0.5rem;
    height: calc(100vh - 0.5rem);
    position: sticky;
    top: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.test-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.test-header h4 {
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    line-height: 1.2;
}

/* Horizontally align all MCQ options in free mock test */

/* Ensure question number and text are on the same line for MCQ questions */
.question-container .question-number,
.question-container p {
    display: inline;
    margin-right: 0.5em;
    vertical-align: middle;
}

.mcq-options-form {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}
.mcq-options-form .form-check {
    margin-bottom: 0 !important;
    margin-right: 2rem;
}
.mcq-options-form .form-check-label {
    margin-left: 0.3rem;
    margin-right: 1.5rem;
}

/* For MCQ options with image and text */
.option-media-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}
.option-media-row img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
    display: inline-block;
}
.option-media-row span, .option-media-row p, .option-media-row div {
    display: inline-block;
    vertical-align: middle;
}



.test-header p {
    color: #444444;
    font-weight: 500;
}

.section-item {
    background: #ffffff;
    border-radius: 4px;
    margin-bottom: 0.4rem;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.section-header {
    padding: 0.3rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #f0f2f5;
    pointer-events: none;
}

.section-icon {
    font-size: 1rem;
}

.section-title {
    color: #000000;
    font-weight: 500;
    font-size: 0.9rem;
}

.section-parts {
    padding: 0.3rem 0.5rem 0.5rem;
}

.part-item {
    padding: 0.25rem 0.4rem;
    margin: 0.1rem 0;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-left: 2px solid transparent;
    color: #000000;
    background: #ffffff;
    font-size: 0.85rem;
    line-height: 1.2;
}

.part-item:hover {
    background: #e4e6e9;
}

.part-item.active {
    background: rgba(74, 144, 226, 0.1);
    border-left-color: #4a90e2;
}

/* Test Content Styles */
.test-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    min-height: calc(100vh - 0.5rem);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.welcome-content h3 {
    color: #000000;
    font-weight: 600;
}

.welcome-content p {
    color: #444444;
    font-weight: 500;
}

/* Styles for example questions */
.example-question {
    background-color: rgba(13, 110, 253, 0.03);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    border-left: 3px solid #0d6efd;
}

/* Style for correct answer in example questions */
.example-question .correct-answer {
    color: #0d6efd;  /* Bootstrap primary blue */
    font-weight: 600;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 4px;
    padding: 2px 8px;
    display: inline-block;
    margin: 2px 0;
    transition: all 0.2s ease;
}

/* Style the radio button for selected correct answer */
.example-question input[type="radio"]:checked {
    border-color: #0d6efd !important;
    background-color: #0d6efd !important;
}

/* Ensure proper spacing for options */
.example-question .option {
    margin: 6px 0;
    display: flex;
    align-items: center;
}

.example-question input[type="radio"] {
    margin-right: 8px;
}

.test-info-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #000000;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.question-container {
    background: #ffffff;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.question-context {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    color: #000000;
}

/* Updated options styling for side-by-side display */
.question-container .options {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin: 0.75rem 0 !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Updated option styling for side-by-side display */
.question-container .option {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    padding: 0.35rem 0.5rem !important;
    border-radius: 3px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #000000 !important;
    flex: 1 1 calc(30% - 0.5rem) !important;
    min-width: 120px !important;
    max-width: calc(30% - 0.5rem) !important;
    margin: 0 !important;
    position: relative !important;
}

.question-container .option:hover {
    background: #e4e6e9 !important;
}

.question-container .option label {
    color: #000000 !important;
    font-weight: 500 !important;
    margin: 0 !important;
    flex: 1 !important;
    padding: 0 !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    line-height: 1.1 !important;
}

.question-container .option input[type="radio"] {
    margin: 0 !important;
    cursor: pointer !important;
    transform: scale(0.8) !important;
}

/* --- MCQ Option Alignment Fix --- */
.option label {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem;
    width: 100%;
}
.option label p {
    margin: 0 !important;
    display: inline !important;
}
/* --- END MCQ Option Alignment Fix --- */

/* Loading Spinner and Progress Bar */
.swal2-popup .swal2-html-container {
    max-height: none !important;
    overflow: visible !important;
}

.swal2-popup .progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
    margin: 1rem 0;
}

.swal2-popup .progress-bar {
    background-color: #4a90e2;
    transition: width 0.3s ease;
}

.swal2-popup .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.25em;
}

.swal2-popup .text-primary {
    color: #4a90e2 !important;
}

.swal2-popup .fa-check-circle {
    color: #28a745;
}

/* Add responsive styles for options */
@media (max-width: 768px) {
    .question-container .option {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* Submit button container */
/* Email Question Styles */
.email-question-block {
    background: #ffffff;
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.email-question-block h5 {
    color: #000000;
    margin-bottom: 1rem;
    font-weight: 600;
}

.email-answer {
    width: 100%;
    min-height: 200px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.email-answer:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.submit-button-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.submit-reminder {
    font-size: 0.9rem;
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 0.4rem 0.75rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.submit-reminder i {
    color: #0c5460;
    font-size: 1rem;
}

/* Add a subtle animation to draw attention */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Apply the animation to the reminder */
.form-field-question-form .submit-reminder {
    animation: pulse 2s infinite;
}

.test-controls {
    position: sticky;
    bottom: 0;
    background: #f0f2f5;
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Make the timer more compact */
.timer-display {
    padding: 0.3rem 0.5rem !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.9rem;
}

/* Adjust the section list to take remaining space */
.section-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.25rem;
    margin-right: -0.25rem;
}

/* Custom scrollbar for the section list */
.section-list::-webkit-scrollbar {
    width: 4px;
}

.section-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.section-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.section-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.part-header h3 {
    color: #000000;
    font-weight: 600;
}

.part-header p {
    color: #444444;
    font-weight: 500;
}

.alert {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
    font-weight: 500;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.text-light {
    color: #000000 !important;
}

.text-white {
    color: #000000 !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .test-navigation {
        height: auto;
        position: relative;
        top: 0;
        margin-bottom: 1rem;
    }

    .test-content {
        min-height: auto;
    }
}

/* Audio Restrictions */
.audio-container {
    position: relative;
    margin: 1rem 0;
}

.restricted-audio {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.restricted-audio::-webkit-media-controls {
    display: none !important;
}

.restricted-audio::-webkit-media-controls-enclosure {
    display: none !important;
}

.restricted-audio::-webkit-media-controls-panel {
    display: none !important;
}

.restricted-audio::-webkit-media-controls-timeline {
    display: none !important;
}

.restricted-audio::-webkit-media-controls-current-time-display,
.restricted-audio::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.restricted-audio::-webkit-media-controls-rewind-button,
.restricted-audio::-webkit-media-controls-return-to-realtime-button,
.restricted-audio::-webkit-media-controls-toggle-closed-captions-button {
    display: none !important;
}

/* Prevent text selection */
.audio-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Custom play button styling */
.restricted-audio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
    pointer-events: none;
} 