.pratice-container {
    font-size: 1.5rem;
    font-weight: bold;
    background-color: #4a94ab;
    width: 200px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    border-left: 6px solid #ffd700;
    /* gold/yellow bar */
    margin-top: 20px;
}

.section-container {
    margin-top: 50px;
    margin-left: 10px;
    /* ❌ Remove left margin */
    margin-right: 0;
    /* ❌ Remove right margin */
    padding-left: 0;
    /* Optional: remove left padding */
    /* padding-right: 0;     Optional: remove right padding */
    display: flex;
    gap: 40px;
    width: 500px;
    flex-wrap: wrap;
}



.section {
    font-family: Arial, sans-serif;
    font-size: 14px;
    flex: 1 1 200px;
    /* ✅ Makes sections flexible */
    min-width: 200px;
    max-width: 300px;
}

label {
    display: block;
    /* font-weight: bold; */
    margin-bottom: 4px;
    color: #0d4364;
    text-align: left;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
    text-align: left;
}

ul li {
    font-size: 14px;
    margin-bottom: 8px;

}

ul li a {
    text-decoration: none;
    color: #000;
}

ul li a:hover {
    color: #007BFF;
}

.columns {
    margin-top: 50px;
    float: left;
    width: 30.2%;
    padding: 5px 2px;
    font-size: large;
    box-sizing: border-box;
}

/* ✅ Media Queries for Mobile Devices */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        padding: 10px;
        gap: 20px;
    }

    .section-container {
        flex-direction: column;
        gap: 20px;
    }

    .pratice-container,
    .total-test {
        width: 100%;
    }

    .section {
        max-width: 100%;
    }

    .columns {
        width: 100%;
        /* Full width on small screens */
        float: none;
        /* Disable float to stack elements vertically */
    }

    .container {
        padding: 10px;
        /* Add some padding for better mobile look */
        border-radius: 8px;
    }
}

.custom-swal-input {
    width: 100% !important;
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin-top: 10px;
    border-radius: 5px;
}

.custom-swal-input:first-child {
    margin-top: 10px;
}

/* NEW: Add this for button gap */
.custom-swal-button {
    margin-top: 20px;
    /* bigger gap between inputs and button */
    background-color: #00bcd4;
    width: 100%;
    height: 30px;
    font-size: 15px;
}


/* Custom Swal popup button styles */
.swal2-popup.swal-profile-popup {
    border-radius: 1rem;
    padding: 20px 25px;
    background: #fff;
}

.swal-tabs-custom {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.swal-tab-btn {
    flex: 1;
    padding: 8px 0;
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    font-weight: 600;
    color: #333;
    transition: all 0.3s;
}

.swal-tab-btn.active {
    border-bottom: 3px solid #007bff;
    color: #007bff;
}

.swal-form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    display: block;
}

.swal-input-group {
    position: relative;
    margin-bottom: 10px;
}

.swal-input-group img {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 18px;
    opacity: 0.7;
}

.swal-input {
    width: 100%;
    padding: 8px 8px 8px 35px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

.swal-checkbox {
    margin: 10px 0;
    font-size: 0.85rem;
}

.swal-save-btn {
    background-color: #007bff;
    border: none;
    padding: 8px 15px;
    width: 100%;
    font-weight: 600;
    color: white;
    border-radius: 6px;
    margin-top: 10px;
}

.swal-save-btn:hover {
    background-color: #0056b3;
}

.swal-warning {
    color: red;
    font-size: 0.8rem;
}

/* Adjust checkbox alignment */
.swal-agree-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
}

/* Keep checkbox slightly smaller and nicely aligned */
.swal-agree-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Modify active tab underline */
.swal-tabs .tab.active::after {
    content: "";
    display: block;
    margin: 5px auto 0 auto;
    height: 3px;
    width: 50px;
    background-color: #0d6efd;
    border-radius: 2px;
}

/* Optional - make tabs slightly bolder */
.swal-tabs .tab {
    font-weight: 500;
    font-size: 16px;
}

/* Keep modal compact and unified */
.swal2-popup {
    border-radius: 10px !important;
    padding: 15px !important;
}



/* Responsive Design for Smaller Screens */

/* Tablets */
@media (max-width: 768px) {
    .swal-form-fields {
        max-width: 80%;
        /* Reduced max-width for tablet devices */
    }

    .swal-custom-button {
        font-size: 14px;
        /* Smaller button font size */
    }

    .swal-custom-title {
        font-size: 20px;
        /* Smaller title font size */
    }

    .tab {
        padding: 4px 12px;
        /* Smaller padding for tab buttons */
        font-size: 14px;
        /* Smaller font for tabs */
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .swal-form-fields {
        max-width: 90%;
        /* Form will occupy almost all screen width but with some margin */
    }

    .swal-checkbox-container {
        font-size: 12px;
        /* Smaller checkbox label font */
    }

    .swal-checkbox-container input[type="checkbox"] {
        transform: scale(1.2);
        /* Smaller checkbox size */
    }

    .swal-tabs {
        flex-direction: column;
        /* Stack tabs vertically on mobile */
    }

    .tab {
        width: 100%;
        /* Tabs will take full width on mobile */
        margin-bottom: 5px;
        /* Add spacing between tabs */
    }

    .swal-custom-button {
        font-size: 13px;
        /* Smaller button font size for mobile */
        padding: 10px 0;
        /* More padding for mobile buttons */
    }

    .swal-custom-title {
        font-size: 18px;
        /* Smaller title font size for mobile */
    }
}

/* Css start for progress bar in right side responsive */
/* .nav-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.left-tabs,
.right-tabs {
    display: flex;
    gap: 10px;
}

.nav-a {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-bottom: none;
    background-color: #fff;
    cursor: pointer;
    text-align: center;
    border-radius: 6px 6px 0 0;
}

.nav-a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
} */


/* Css End for progress bar in right side responsive */

.question-wrapper {
    margin-bottom: 10px;
}

.question-label {
    font-weight: bold;
    margin-bottom: 5px;
}



/* .textQDescPra {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
} */

.desc-left {
    flex: 1;
    flex: 1;
    border-left: 5px solid #0d6efd;
    padding-left: 5px;
    margin-bottom: 5px;
    height: 19px;
    display: flex;
}

.desc-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-weight: bold;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-weight: bold;
    white-space: nowrap;
}

.time-line {
    display: flex;
    align-items: flex-start;
    margin-left: 1px;
    gap: 0;
    /* Explicitly set gap to 0 */
    display: flex;
    align-items: flex-start;
    margin-left: 1px;
    gap: 0;
    /* Explicitly set gap to 0 */
}

.time-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* space between rows */
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* space between rows */
}

.time-row {
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
    /* example font */
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
    /* example font */
}

.label {
    width: 80px;
    /* fixed width for label text */
    text-align: right;
    padding-right: 1px;
    font-weight: 200;
    font-size: 13px;
    width: 80px;
    /* fixed width for label text */
    text-align: right;
    padding-right: 1px;
    font-weight: 200;
    font-size: 13px;
}

.colon {
    width: 10px;
    /* fixed width for colon */
    text-align: center;
    font-weight: 500;
    width: 10px;
    /* fixed width for colon */
    text-align: center;
    font-weight: 500;
}

.time-value {
    width: 40px;
    /* fixed width for time */
    /* text-align: left; */
    font-weight: 200;
    width: 40px;
    /* fixed width for time */
    text-align: right;
    font-weight: 200;
}


.clock-icon {
    width: 40px;
    /* Adjust size as needed */
    height: 40px;
    margin-top: 2px;
    /* Optional: align vertically with text */
    /* margin-right: 7px; Adjust this to control spacing */
    padding: 0;
    margin-right: -11px;
    padding-right: 0;
    /* Remove any right padding */
    width: 40px;
    /* Adjust size as needed */
    height: 40px;
    margin-top: 2px;
    /* Optional: align vertically with text */
    /* margin-right: 7px; Adjust this to control spacing */
    padding: 0;
    margin-right: -11px;
    padding-right: 0;
    /* Remove any right padding */
}

.blue-time {
    color: #000;
    font-weight: 400;
    color: #000;
    font-weight: 400;
}

.time-container {
    margin-left: -11px;
    /* Adjust this value as needed */
    padding-left: 0;
    /* Remove any left padding */
}

/******CSS STart for practiceModule file css question loaded *****/
.main-layout {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0px;
    height: auto;
    max-height: 130vh;

}

.question-section {
    display: flex;
    flex-direction: column;
    flex: 2;
    min-width: 72%;
    /* height: 30rem; */
    margin-top: -1.4%;
    border: 1px solid #ddd;
    background: white;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* CHANGED: Improved question box scrolling */
.question-box-wrapper {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

/* CHANGED: Completely redesigned button bar */
#buttonBarWrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* CHANGED: Better spacing */
    background: #fff;
    padding: 10px 15px;
    /* CHANGED: Added padding */
    height: 50px;
    /* CHANGED: Increased height */
    /* margin: 10px 0 20px; */
    /* border-radius: 10px;
    border: 1px solid #ddd; /* CHANGED: Added border */
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); CHANGED: Added shadow */
}

.button-group-left,
.button-group-right {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 100%;
}

/* CHANGED: Spacer now flexible */
.spacer {
    flex-grow: 1;
    min-width: 20px;
}

/* CHANGED: Added proper button styling */
.navBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    background-color: #0d6efd;
    /* CHANGED: Added blue background */
    color: white;
    /* CHANGED: White text */
    font-weight: 500;
}

/* CHANGED: Added icon button styling */
.iconBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background-color: transparent;
}

/* CHANGED: Standardized icon sizes */
.iconBtn img {
    height: 30px;
    width: 30px;
}

/* NEW: Added search input styling */
.search-input {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    min-width: 100px;
}

.blueBtn {
    background-color: rgb(65, 108, 116);
    color: white;
    border: none;
    padding: 8px 16px;
    margin-right: 8px;
    border-radius: 12px;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.blueBtn:hover:not(:disabled):not(.activeBtn) {
    background-color: rgb(58, 105, 158);
    transform: scale(1.02);
}

.blueBtn:disabled {
    background-color: rgb(35, 118, 207);
    opacity: 0.6;
    cursor: not-allowed;
}

.activeBtn {
    background-color: rgb(57, 125, 146) !important;
    box-shadow: 0 0 3px rgba(0, 86, 179, 0.7);
    transform: scale(1.05);
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 180px;
    font-size: 14px;
    height: 30px;
}

/* .progress-card {
    width: 300px;
    height: 400px;
    border: 1px solid #007bff;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    background: #f9f9f9;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
} */

.progress-card h3 {
    margin-top: 0;
    color: #007bff;
}

.card-header {
    font-weight: bold;
    background-color: #e1f0f7;
    padding: 10px;
    margin-bottom: 15px;
}

.progress-card input,
.progress-card button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.progress-card button {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.progress-card button:hover {
    background-color: #0056b3;
}

/* @media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .question-box-wrapper,
    .subscription-box {
        width: 100%;
    }
} */

.iconBtn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.iconBtn img {
    height: 30px;
    vertical-align: middle;
}

.textQDescPra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 0;
    border: none;
    position: relative;
}

.textQDescPra::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, transparent, #007bff, #007bff, transparent);
    opacity: 0.6;
}

.desc-left h6 {
    /* margin-bottom: 28px; */
    /* Remove top and bottom margin from h6 */
    font-weight: 400;
    font-size: 14px;
    margin-right: 30px;
    /* line-height: 1.2; */
    /* border-left: 5px solid #0d6efd;  */
}

.desc-right {
    white-space: nowrap;
    font-weight: bold;
    font-size: 14px;
    /* margin-top: 0;
    margin-left: 30px; */
}

.instruction-text {
    margin-bottom: 5px;
    font-weight: 500;
    color: #000;
    margin-top: 2px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 17px;
    margin-top: 8px;
}

.blue-time {
    color: #007bff;
}

.correct {
    border: 2px solid #28a745;
    background-color: #e6ffe6;
}

.incorrect {
    border: 2px solid #dc3545;
    background-color: #ffe6e6;
}

.feedback-bubble {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    vertical-align: middle;
}

.correct-bubble {
    background-color: #d1f2eb;
    color: #117a65;
}

.incorrect-bubble {

    color: #a94442;
}


.answer-box {
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    margin-bottom: 10px;
}

.answer-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-info {
    font-size: 14px;
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-answer {
    font-size: 16px;
    margin-top: 4px;
}

.score-badge {
    display: inline-block;
    background-color: #e0f7fa;
    color: #007b8f;
    border: 1px solid #b2ebf2;
    border-radius: 20px;
    padding: 2px 12px;
    font-size: 13px;
    width: fit-content;
}

#prevBtnPrac:disabled,
#nxtBtnPrac:disabled {
    /* background-color: #f0f0f0 !important;
    color: #999 !important; */
    cursor: not-allowed;

}

#containerA1 {
    background-color: rgb(245, 243, 243);
    border: 1px solid #000;
    padding-right: 2.1%;
    padding-left: 2%;
    padding-top: 0.1%;
    padding-bottom: 0.3%;
    margin-right: 0.3%;
    cursor: pointer;
}

/* CSS for Reading-Blanks */
#containerQFIB {
    background-color: transparent;
    width: 100%;
    margin-top: 1%;
    margin-left: 0%;
    min-height: 50px;
    display: flex;
    /* Use Flexbox */
    align-items: center;
    /* Vertically center items */

    flex-wrap: wrap;
    /* Allow items to wrap to next line */
}

[id^="containerA"] {
    display: inline-block;
    padding: 2px;
    min-width: 150px;
    min-height: 20px;
    margin-left: 2px;
    margin-right: 2px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
}


[id^="cssRFIBOp"] {
    border: 1px solid #6AC2E6;
    border-radius: 5px;
    background-color: transparent;
    font-size: 14px;
    color: #222;
    padding: 0.6%;
    margin: 9px;
    /* Adjust margin for spacing between items */
    cursor: pointer;
}

[id^="cssRFIBOp"] {

    background-color: transparent;
    font-size: 14px;
    color: #222;
    padding: 0.6%;
    margin: 9px;
    /* Adjust margin for spacing between items */
    cursor: pointer;
}

.answer-bubble {
    color: #1E90FF;
    margin-left: 6px;
    font-size: 13px;
}

.correct {
    border: 2px solid #00C9A7 !important;
    background-color: #E0FFFF !important;
}

.incorrect {
    border: 2px solid red !important;
    background-color: #fff0f0 !important;
}


/******CSS End of practiceModule file  *****/

/* Wrapper to push time-line right */
.timer-wrapper {
    margin-left: auto;
}

/* Clock + Time rows */
.time-line {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

/* Vertical time values */
.time-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-row {
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
}

.time-value {
    width: 40px;
    text-align: left;
    font-weight: 200;
}

.clock-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    margin-top: 2px;
}

.blue-time {
    color: #000;
    font-weight: 400;
}

.time-container {
    margin-left: -2px;
    /* Adjust this value as needed */
    padding-left: 0;
    /* Remove any left padding */
}

.time-slash {
    margin-right: 3px;
    font-weight: 400;
}



.drop-container {
    padding: 10px;
    background: #fafafa;
    border: 1px solid #ccc;
    min-height: 300px;
}

.draggable-box {
    border: 1px dashed #888;
    background-color: #fff;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    cursor: move;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: break-word;
}

#answerDisplay {
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
}

#answerKeyText {
    font-weight: bold;
    color: #000;
}

/* RO csss  **************/
#containerQ {
    display: block;
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    /* Align heading and blocks to the left */
}

#containerQ h5 {
    text-align: center;
    /* Optional: keep heading centered */
}


#userAnswerDisplay {
    max-height: 300px;
    overflow-y: auto;
}

.BigText p {
    font-size: large !important;
}

#historyTab {
    background-color: #007b8f;
    color: #ffffff !important;
    padding: 6px 14px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;

    display: inline-block;
    font-size: 15px;
    cursor: pointer;
}

#historyTab:hover {
    background-color: #005f6b;
}

.site-header {
    background-color: #066D8D;
}

.header-logo {
    height: 40px;
    margin-right: 10px;
}

.brand-name {
    font-weight: bold;
    font-size: 1.3rem;
    color: #fff;
    margin-right: 20px;
}

.nav-link-home {
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 25px;
    gap: 3px;
    /* Add this line for spacing */
}


/* .nav-link-home i {
    margin-right: 6px;
  } */
.nav-link-home {
    color: white !important;
    background-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: larger;
    padding: 0.4rem 0.5rem;
    /* margin-top: 10px; */
}

/* .nav-link-home img {
  display: inline-block;
} */



.user-profile-btn {
    color: #ffffff !important;
}


.user-profile-btn:hover {
    color: #ffffff !important;
}





.dropdown-menu a.dropdown-item {
    font-size: 0.95rem;
}


@media (max-width: 768px) {
    .site-header .container-fluid {
        flex-direction: column;
        align-items: flex-start;
    }

    .dropdown {
        width: 100%;
        margin-top: 10px;

    }

    .dropdown .btn {
        width: 100%;
        justify-content: center;
    }
}



/* Responsive button bar */
@media (max-width: 768px) {
    #buttonBarWrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        height: auto;
    }

    .button-group-left,
    .button-group-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .navBtn,
    .blueBtn {
        flex: 1 1 100%;
        width: 100%;
        justify-content: center;
    }

    .iconBtn {
        width: 40px;
        height: 40px;
    }

    .search-input {
        width: 100%;
        min-width: unset;
        font-size: 1rem;
    }

    .spacer {
        display: none;
    }
}



/* Responsive styles for question metadata */
@media (max-width: 768px) {
    #buttonBarWrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .button-group-left,
    .button-group-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .navBtn,
    .blueBtn {
        width: 100%;
        padding: 10px 0;
        font-size: 15px;
        border-radius: 8px;
    }

    .iconBtn {
        width: 38px;
        height: 38px;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .iconBtn img {
        width: 20px;
        height: 20px;
    }

    .search-input {
        width: 50%;
        padding: 8px 10px;
        font-size: 14px;
        box-sizing: border-box;
    }

    .spacer {
        display: none;
    }
}

@media (max-width: 768px) {
    .textQDescPra {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: 13px;
    }

    .desc-left {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding-left: 6px;
        border-left: 4px solid #007bff;
    }

    .desc-left h6 {
        margin: 0;
        font-size: 13px;
        word-break: break-word;
        white-space: normal;
    }

    .instruction-text {
        flex-direction: column;
        align-items: flex-start;
        font-size: 14px;
        gap: 5px;
    }

    .time-line {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 4px;
    }

    .timer-wrapper {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .time-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 4px;
    }

    .time-value,
    .time-slash {
        font-size: 13px;
        white-space: nowrap;
    }

    .clock-icon {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
}

/* Responsive styling for header */
@media (max-width: 768px) {
    .site-header .container-fluid {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        gap: 5px;
    }

    .dropdown {
        width: 100%;
        margin-left: 10px;
    }

    .dropdown .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-link-home {
        margin-top: 5px;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
    }

    .nav-link-home img {
        width: 20px;
        height: 20px;
    }
}

/* Make sure the parent has a relative position if needed */
.drop-down-head {
    position: absolute;
    top: 5px;
    /* adjust based on spacing */
    right: 10px;
    /* align to right edge */
    z-index: 1000;
}


@media (max-width: 768px) {
    .drop-down-head {
        margin-left: 0;
    }
}


@media (max-width: 768px) {
    .dropdown-custom {
        width: 40vw !important;
        min-width: unset !important;
    }
}

.pagination-container {
    margin-top: 15px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.page-btn {
    border: 1px solid #ccc;
    background-color: white;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.page-btn:hover {
    background-color: #f0f0f0;
}

.page-btn.active {
    border-color: #00d1b2;
    color: #00d1b2;
    font-weight: bold;
    box-shadow: 0 0 0 1px #00d1b2 inset;
}

.ellipsis {
    padding: 5px 8px;
    color: #888;
}


/* Container wrapper */
.attempted-wrapper {
    font-family: Arial, sans-serif;
    font-size: 13px;
}

/* Header */
.attempted-heading {
    margin-top: 10px 0;
    font-size: 15px;
    color: #333;
}

/* Button row */
.filter-buttons {
    margin-bottom: 8px;
}

.filter-buttons button,
.filter-buttons input[type="date"] {
    margin-right: 6px;
    padding: 4px 10px;
    font-size: 12px;
}

/* List container */
.attempted-list {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

/* Each row */
.attempted-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.attempted-row:hover {
    background-color: #f5fafd;
}

/* QID */
.qid {
    width: 12%;
    color: #00aa88;
    font-weight: 600;
}

.qid a {
    text-decoration: none;
    color: #00aa88;
}

.qid a:hover {
    text-decoration: underline;
}

/* Title */
.qtitle {
    flex-grow: 1;
    margin-left: 10px;
    color: #333;
}

.qUnPratitle {

    margin-left: 0px;
    color: #333;
}

/* Status Badge */
/* 
.filter-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
} */

.reset-prac-status {

    align-items: right;
    text-decoration: none;
    color: #ff4d4d;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.3s ease;
    margin-left: 60%;
}

.reset-prac-status:hover {
    color: #cc0000;
}

.pracStatus {
    background-color: #00d1b2;
    color: white;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
}


.swal2-close {
    font-size: 1.8rem !important;
    color: red !important;
}

.fixed-height-popup {
    min-height: 700px !important;
    max-height: 90vh !important;
    padding: 5px 5px !important;
}

/* Headline and layout styling */
h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Date input styling */
#calendarDate {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #f9f9f9;
    background-size: 22px 22px;
    padding: 4px 4px 4px 10px;
    font-size: 15px;
    border: 2px solid #4a90e2;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

#calendarDate:hover {
    background-color: #eef6ff;
    border-color: #2e77d0;
}

#calendarDate:focus {
    outline: none;
    border-color: #2e77d0;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

/********progress table nad unattempted and attempted question table css below********/
.attempted-wrapper {
    padding: 10px;
    font-family: Arial, sans-serif;

    overflow-y: auto;
}

.attempted-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #007bff;
    padding-left: 12px;
    margin-bottom: 12px;
}

.attempted-header h4 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.right-controls {
    font-size: 14px;
    margin-right: 10px;
}

.right-controls a {
    color: red;
    text-decoration: none;
    font-weight: bold;
}

.attempted-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.attempted-table th {

    background-color: #f0f0f0;
    color: #333;
    font-weight: 600;
    text-align: left;
    padding: 6px 8px;
    border: 1px solid #ddd;
}

.attempted-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover effect */
.attempted-table tbody tr:hover {
    background-color: #e6f7ff;
}

.attempted-table th,
.attempted-table td {

    border: 1px solid #eee;
    padding: 8px;
    vertical-align: top;
}

.attempted-table th.id-col,
.attempted-table td.id-col {
    width: 60px;
    white-space: nowrap;
}

.attempted-table th.status-col,
.attempted-table td.status-col {
    width: 100px;
    text-align: center;
}

.pagination-container {
    margin-top: 10px;
    text-align: center;
}

.page-btn {
    padding: 5px 10px;
    margin: 2px;
    font-size: 13px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.page-btn.active {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
}

.goto-input {
    width: 60px;
    padding: 5px;
    font-size: 13px;
    margin-left: 6px;
}



.pagination-container {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.page-btn.active {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
}

.goto-input {
    width: 60px;
    padding: 6px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* SweetAlert popup */
.swal2-popup.swal-compact-popup {
    padding: 10px !important;
    width: auto !important;
    max-width: 750px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 12px;
}

/* Table wrapper */
.progress-container {
    overflow-x: hidden;
    margin: 10px 0;
}

/* Table */
.progress-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;
    background-color: #fff;
}

/* Header */
.progress-table th {
    background-color: #f0f0f0;
    color: #333;
    font-weight: 600;
    text-align: left;
    padding: 6px 8px;
    border: 1px solid #ddd;
}

/* Data cells */
.progress-table td {
    padding: 6px 8px;
    border: 1px solid #eee;
    color: #333;
    word-wrap: break-word;
}

/* Column width adjustments */
.progress-table th:nth-child(1),
.progress-table td:nth-child(1) {
    width: 60%;
    /* queTypeName wider */
}

.progress-table th:nth-child(2),
.progress-table th:nth-child(3),
.progress-table th:nth-child(4),
.progress-table td:nth-child(2),
.progress-table td:nth-child(3),
.progress-table td:nth-child(4) {
    width: 13%;
    text-align: center;
}

/* Zebra stripes */
.progress-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover effect */
.progress-table tbody tr:hover {
    background-color: #e6f7ff;
}

/* Selected row */
.selected-row {
    background-color: #d1ecf1 !important;
}

/* Links */
.progress-table a {
    color: #007bff;
    text-decoration: none;
}

.progress-table a:hover {
    text-decoration: underline;
}

/* Custom SweetAlert popup layout with no outer padding/margin */
.swal2-popup.fixed-height-popup {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 850px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    box-shadow: none;
    border-radius: 6px;
    overflow: hidden;
}

/* Scrollable content area */
.popup-scroll-wrapper {
    max-height: none !important;
    overflow-y: visible !important;
}


.no-padding-popup {
    padding: 0 !important;
    margin: 0 !important;
}

.popup-scroll-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    max-height: 70vh;
    overflow-y: auto;
}

.swal2-popup {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.attempted-wrapper {
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
    max-height: 110vh;
    overflow-y: none;
}

.filter-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #007bff;
    padding-left: 12px;
    margin-bottom: 12px;
}

.filter-buttons h4 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.textUserANs {
    background-color: rgb(245, 238, 238);
    width: 80%;
    margin-top: 0%;
    margin-left: 6%;
    border: 0.5px rgb(241, 232, 232);
    outline: 0.5px dotted rgb(20, 20, 20);
    font-size: small;
    padding: 0.5%;

}

.textareaContainer {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    left: 1%;
}

.wordCount {
    position: absolute;
    top: -20px;
    /* Adjust as necessary to position above the textarea */
    right: 15%;
    color: #05697a;
    font-size: small;
}

#timerWritingSpan {
    position: absolute;
    top: -20px;
    /* Adjust as necessary to position above the textarea */
    left: 7%;
    color: #05697a;
    font-size: small;
}

.buttonContainer {
    display: flex;
    justify-content: space-between;
    margin-left: 10%;
    margin-right: 10%;
    width: 70%;
}

.buttonContainer button {
    padding: 2px 5px;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    flex-grow: 0;
    /* Prevents buttons from stretching too wide */
    flex-basis: 150px;
    /* Sets a reasonable button width */
    margin-right: 10px;
    /* Adds space between buttons */
}

.buttonContainer button:last-child {
    margin-right: 0;
    /* Removes right margin from the last button */
}

.buttonContainer button:hover {
    background-color: #e0e0e0;
}

#bigText {
    width: 98%;
    height: auto;
    padding: 0.1% 0.1% 0.1% 0.1%;
    display: flex;
    flex-direction: row;
    margin-left: 0%;
    margin-bottom: 0.5%;
    display: inline-block;
    position: relative;
    font-size: 16px;
    line-height: 20px;
}

.textUserANs {
    background-color: rgb(245, 238, 238);
    width: 80%;
    margin-top: 0%;
    margin-left: 6%;
    border: 0.5px rgb(241, 232, 232);
    outline: 0.5px dotted rgb(20, 20, 20);
    font-size: small;
    padding: 0.5%;

}

.textareaContainer {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    left: 1%;
}

.wordCount {
    position: absolute;
    top: -20px;
    /* Adjust as necessary to position above the textarea */
    right: 15%;
    color: #05697a;
    font-size: small;
}

#timerWritingSpan {
    position: absolute;
    top: -20px;
    /* Adjust as necessary to position above the textarea */
    left: 7%;
    color: #05697a;
    font-size: small;
}

.buttonContainer {
    display: flex;
    justify-content: space-between;
    margin-left: 10%;
    margin-right: 10%;
    width: 70%;
}

.buttonContainer button {
    padding: 2px 5px;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    flex-grow: 0;
    /* Prevents buttons from stretching too wide */
    flex-basis: 150px;
    /* Sets a reasonable button width */
    margin-right: 10px;
    /* Adds space between buttons */
}

.buttonContainer button:last-child {
    margin-right: 0;
    /* Removes right margin from the last button */
}

.buttonContainer button:hover {
    background-color: #e0e0e0;
}

/* #bigText {
    
    width: 70%;
    height: auto;
    padding: 0.1% 0.1% 0.1% 0.1%;
    display: flex;
    flex-direction: row;
    margin-left: 7%;
    margin-bottom: 0.5%;
    display: inline-block;
   
    position: relative;
    font-size: 16px;
    line-height: 20px;
} */

.audio-box {
    border: 1px solid #ccc;
    width: 400px;
    height: 120px;
    margin-left: 25%;
    margin-top: 2%;
    margin-bottom: 1%;
}

#prepare-text {
    font-size: 14px;
    color: red;
    margin-bottom: 5px;
    margin-left: 5px;
    margin-top: 8px;
}

#prepareText {
    font-size: 14px;
    color: rgb(48, 72, 225);
    margin-bottom: 5px;
    margin-left: 5px;
    margin-top: 8px;
}

.seekbar-container {
    width: 100%;
    height: 6px;
    background-color: #eee;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
}

.seekbar {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, #bec0c1, #c0c1c3);
    border-radius: 15px;
    transition: width 0.3s linear;
}

.highlight {
    background-color: yellow;
}

/* Shared base style for all result word types */
.correct-word,
.wrong-word,
.missed-word {
    position: relative;
    display: inline-block;
    padding: 4px 10px 4px 10px;
    margin-right: 10px;
    margin-left: 2px;
    border-radius: 6px;
    font-weight: normal;
    line-height: 1.6;
}

/* ✅ Correct - green background with tick */
.correct-word {
    background-color: #fff8b3;
    /* soft green */
    color: #000;
}

.correct-word::after {
    content: "✔";
    color: #2ecc71;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
}

/* ❌ Wrong - red background with cross */
.wrong-word {
    background-color: #fffce6;
    /* soft red */
    color: #000;
}

.wrong-word::after {
    content: "✘";
    color: #e74c3c;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
}

/* ⚠ Missed correct - gray with warning */
.missed-word {
    background-color: #F1F3F4;
    /* light gray */
    color: #000;
}

.missed-word::after {
    content: "⚠";
    color: #f39c12;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
}

.hidden {
    display: none;
}