﻿input[type='radio'] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-left: 5px;
    margin-right: 5px;
}

input[type='checkbox'] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-left: 5px;
    margin-right: 5px;
}

select {
    cursor: pointer;
    margin-left: 5px;
    margin-right: 5px;
}

/* Tooltip container */
#statusNetWork {
    z-index: 1000;
}

    /* Tooltip text */
    #statusNetWork .tooltiptext {
        visibility: hidden;
        width: 200px;
        background-color: #555;
        color: #fff;
        text-align: center;
        padding: 5px 0;
        border-radius: 6px;
        /* Position the tooltip text */
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        margin-left: -10px;
        /* Fade in tooltip */
        opacity: 0;
        transition: opacity 0.3s;
    }

        /* Tooltip arrow */
        #statusNetWork .tooltiptext::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -50px;
            border-width: 5px;
            border-style: solid;
            border-color: #555 transparent transparent transparent;
        }

    /* Show the tooltip text when you mouse over the tooltip container */
    #statusNetWork:active .tooltiptext {
        visibility: visible;
        opacity: 1;
    }

    #statusNetWork img {
        display: block;
        opacity: 1;
        visibility: visible;
    }

.confirm-modal {
    width: 400px;
    max-width: 100%;
    min-height: 100px;
    margin: auto;
    background-color: #006fe5;
    padding: 10px;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
}

.answer-info {
    float: left;
    display: block;
    width: 86px;
    height: 20px;
    border-radius: 4px;
    border: solid 1px #d4d4d4;
    font-size: 8pt;
    cursor: pointer;
}
.answer-info:hover {
    background-color: #e8f4f8;
    border-color: #4CAF50;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.answer-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    text-align: center;
    height: 28px;
    border-radius: 50%;
    border: #d4d4d4;
    background-color: #fff;
    font-size: 8pt;
    text-decoration: none;
    margin: 2px
}

    .answer-circle .answer-circle-label,
    .answer-circle span {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding-top: 0 !important;
        line-height: 1 !important;
        margin: 0;
    }

    .answer-circle a {
        text-decoration: none;
    }

.answered-circle {
    color: #fff !important;
    background-color: #006fe5 !important;
}
.answer-circle:hover {
    background-color: #e8f5e9;
    border-color: #4caf50;
}

.notanswer-circle {
    color: #007cff;
    background-color: #fff;
}

.mark-question {
    display: block;
    width: 22px;
    height: 22px;
    right: 0;
    padding: 0;
    line-height: 20px;
    text-align: center;
    float: right;
    cursor: pointer;
    border: 1px solid #ffffff;
    position: relative;
    box-sizing: border-box;
    border-radius: 50%;
    background-color: #999999;
    color: #fff !important;
    z-index: 1;
}

.question-mark-cell {
    position: relative !important;
    padding-right: 30px !important;
}

.question-mark-cell .mark-question {
    position: absolute !important;
    top: 3px !important;
    right: 4px !important;
    float: none !important;
    margin: 0 !important;
}

#div-test-content .question-mark-row > td,
#div-test-content .question-pin-row > td {
    border-top: 1px solid #d7dee8;
    padding-top: 9px !important;
    padding-bottom: 8px !important;
}

#div-test-content .question-mark-row:first-child > td,
#div-test-content .question-pin-row:first-child > td {
    border-top: 0;
}

.question-mark-cell > .question-mark-content-last {
    margin-bottom: 0 !important;
}

/* The legacy renderer emits the marker as a direct sibling after the question
   HTML. Keep a CSS-only fallback for browsers where the post-load normalizer
   is delayed or unavailable. */
#div-test-content td[style*="nowrap"] {
    position: relative;
    padding-right: 30px !important;
}

#div-test-content td[style*="nowrap"] > .mark-question {
    position: absolute !important;
    top: 3px !important;
    right: 4px !important;
    float: none !important;
    margin: 0 !important;
}

#div-test-content td[style*="nowrap"] > p {
    margin-bottom: 0;
}

.marked-question {
    background-color: #f40 !important;
    color: #fff !important;
}

.pinButton {
    display: block;
    width: 20px;
    height: 20px;
    right: 0;
    padding: 2px;
    text-align: center;
    top: 6px;
    float: none;
    cursor: pointer;
    border: 1px solid #ffffff;
    background-color: #999999;
    color: #fff !important;
    position: relative;
    border-radius: 50%;
    z-index: 1;
}
#pnlSubmitAnswers a{
    width:136px;
    height:46px;
}

.pinParagraph p {
    width: 98%;
}

.file-answer-content {
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #f8fbff;
}

.file-answer-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.file-answer-toolbar .btn-upload {
    width: auto !important;
    min-width: 170px;
    margin: 0;
}

.file-answer-hint {
    flex: 1 1 260px;
    min-width: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.file-answer-content .student-answer-container {
    min-height: 44px;
    padding: 9px 10px;
    border: 1px dashed #93c5fd;
    border-radius: 6px;
    background: #fff;
    overflow-wrap: anywhere;
}

.file-answer-content .student-answer-container a {
    display: inline-block;
    max-width: 100%;
    margin: 3px 8px 3px 0;
}

.speaking-answer-content {
    width: 100%;
}

.speaking-recorder-card {
    width: 100%;
    gap: 12px;
    padding: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #f8fbff;
}

.speaking-recorder-main {
    flex: 1 1 320px;
    min-width: 0;
}

.speaking-empty-hint,
.recording-dialog-subtitle,
.recording-preview-hint {
    margin-top: 6px;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.speaking-recorder-action {
    flex: 0 0 auto;
}

.speaking-record-trigger {
    padding: 8px 14px;
    font-weight: 700;
}

.recording-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.62);
}

.recording-dialog-card {
    position: absolute;
    box-sizing: border-box;
    width: min(560px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 18px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.question-pin-host {
    position: relative !important;
    box-sizing: border-box;
    min-height: 30px;
    padding-right: 30px !important;
}

.question-pin-host > .pinButton {
    position: absolute !important;
    right: 4px;
    top: 4px;
    float: none !important;
    margin: 0;
}

.recording-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #fee2e2;
    color: #b91c1c;
}

.recording-dialog-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-right: 38px;
}

.recording-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 20px;
}

.recording-dialog-title {
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.recording-dialog-status {
    margin: 0 0 12px;
    padding: 9px 11px;
    font-size: 13px;
    line-height: 1.4;
}

.recording-preview-box {
    min-height: 96px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.recording-dialog-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.recording-dialog-actions .btn {
    padding: 8px 14px;
    font-weight: 700;
}

.recording-floating-card {
    position: fixed;
    top: 132px;
    z-index: 999999999999;
    width: min(260px, calc(100vw - 16px));
    padding: 10px;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.35);
}

.recording-floating-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
}

.recording-dot-live {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4444;
    animation: recordingPulse 1.2s infinite;
}

.recording-time-left {
    margin-left: auto;
    color: #bfdbfe;
    white-space: nowrap;
}

.recording-live-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 68px;
    margin-bottom: 10px;
    padding: 7px 8px;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.recording-live-wave span {
    display: block;
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    opacity: .35;
    transition: height .08s linear, opacity .08s linear;
}

@keyframes recordingPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .75); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@media (max-width: 768px) {
    .recording-floating-card {
        top: 72px;
    }
}
/* Shrinking the sidebar from 250px to 80px and center aligining its content*/
#sidebar {
    z-index: 999999999;
    display: none;
}

    #sidebar.active {
        width: 200px !important;
        min-width: 200px !important;
        text-align: center;
        display: block;
    }

        /* Changing the arrow position to bottom center position, 
           translateX(50%) works with right: 50% 
           to accurately  center the arrow */
        #sidebar.active .dropdown-toggle::after {
            top: auto;
            bottom: 10px;
            right: 50%;
            -webkit-transform: translateX(50%);
            -ms-transform: translateX(50%);
            transform: translateX(50%);
        }

#tdNavigation {
    width: 200px;
    bottom: 0px;
    position: fixed;
    top: 0px;
    left: 0px;
    text-align: center;
    background-color: #00539c;
}

.right-button-holder {
    z-index: 99999;
    position: fixed;
    top: 60px;
    right: 17px;
    width: 140px;
    display: flex;
    flex-flow: row-reverse;
}

    .right-button-holder > a {
        width: 140px;
    }

    .right-button-holder > div {
        margin: 1px;
    }

.button-holder {
    text-align: center;
    position: fixed;
    left: 0px;
    bottom: 0px;
    right: 0px;
    height: 60px;
    background-color: #e1e1e1;
    display: block;
    padding-top: 4px;
    text-align: center;
    z-index: 99999999999;
}
    .button-holder .progress {
        background-color: #ffffff !important;
    }
    .button-holder .progress-bar {
        background: #007ab5 !important;
    }
        .button-holder .progress-bar.progress-0 {
            background: #3d9c01 !important;
        }
        .button-holder .progress-bar.progress-1 {
            background: #509c01 !important;
        }
        .button-holder .progress-bar.progress-2 {
            background: #74ac00 !important;
        }
        .button-holder .progress-bar.progress-3 {
            background: #a0a000 !important;
        }
        .button-holder .progress-bar.progress-4 {
            background: #af8800 !important;
        }
        .button-holder .progress-bar.progress-5 {
            background: #c40000 !important;
        }
.right-button-holder-2{
    display:block;
}

#btn-prev-question {
    margin-left: auto;
    margin-right: auto;
}

#btn-next-question {
    margin-left: auto;
    margin-right: auto;
}

.clock-countdown {
    width: 135px;
    height: 50px;
    background-color: #2c3e50; /* Xanh đậm chuyên nghiệp */
    border: 1px solid #3498db; /* Viền xanh dương sáng */
    z-index: 999999;
    border-radius: 4px;
    position: fixed;
    top: 5px;
    right: 20px;
}

.clock-countdown span {
    line-height: 50px;
}

.clock-countdown-2 {
    width: 135px;
    height: 40px;
    background-color: #2c3e50;
    border: 1px solid #3498db;
    z-index: 999999;
    border-radius: 4px;
    position: fixed;
    top: 5px;
    right: 10px;
}

.clock-countdown-2 span {
    line-height: 40px;
}

.clock-timer-countdown {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    margin: auto;
    font-weight: bold;
    font-size: 18pt;
    color: #ecf0f1; /* Chữ trắng xám sáng */
}

.header-div {
    position: fixed;
    left: 0px;
    height: 120px;
    right: 0px;
    z-index: 99999;
    background-color: #01579B;
    color: white;
    padding-left: 10px;
}

    .header-div > div {
        padding-right: 180px
    }

.hiden-small {
}

.show-small {
    display: none;
}

.incorrect-label {
    float: left;
    display: block;
    width: 66px;
    height: 20px;
    border-radius: 4px;
    border: solid 1px #d4d4d4;
    background-color: #f40;
    font-size: 8pt;
    margin-left: 1px;
    color: white
}

.correct-label {
    float: left;
    display: block;
    width: 66px;
    height: 20px;
    border-radius: 4px;
    border: solid 1px #d4d4d4;
    color: #fff;
    background-color: #006fe5;
    font-size: 8pt;
    margin-left: 2px;
}
#toggleSlideBarBtn {
    position: fixed;
    z-index: 999999999;
    color: white;
    top: 10px;
    font-size: 18pt;
    margin-left: 10px;
}

    #toggleSlideBarBtn.active {
        position: fixed;
        z-index: 9999999999;
        color: white;
        top: 10px;
        margin-left: -30px;
    }

.user-avatar {
    border-radius: 50%;
    border: #ffffff 2px solid !important;
    z-index: 9999;
    position: relative;
    right: 0px;
    height: 160px;
    width:160px;
    object-fit:cover;
}

.avatar-box {
    left: 10px;
    top: 5px;
    margin-left: 10px;
    z-index: 9999;
    position: absolute;
}

.q-nav-list {
    background-color: #e6e6e6;
    position: absolute;
    top: 119px;
    bottom: 0px;
    right: 0px;
    left: 0px;
    padding-top: 70px;
}

.main-question-list {
    margin-top: 130px;
    margin-bottom: 80px;
    width: 100%;
}

@media (max-width: 768px) {
    /* 80px and its content aligned to centre. Pushing it off the screen with the
       negative left margin
    */
    body {
        font-size: large !important;
        overflow-x:auto;
    }
    .main-question-list {
        margin-top: 80px;
        width: 100%;
    }
    .main-question-list img {
        max-width: 100%;
    }
    .main-question-list table {
        max-width: 100%;
    }
    .q-nav-list {
        top: 50px;
        padding-top: 60px;
    }

    .mark-question {
        width: 26px;
        height: 26px;
        line-height: 24px;
    }

    .question-mark-cell {
        padding-right: 34px !important;
    }

    #div-test-content td[style*="nowrap"] {
        padding-right: 34px !important;
    }

    #toggleSlideBarBtn.active {
        margin-left: 10px;
    }

    .avatar-box {
        margin: auto;
        right: 0px;
        left: 0px;
    }

    .user-avatar {
        float: right;
        height: 80px;
        width: 80px;
    }

    .hiden-small {
        display: none;
    }

    .show-small {
        display: inherit;
    }

    .header-div {
        height: 60px;
    }

        .header-div > div {
            padding-left: 32px;
            padding-right: 400px;
        }

    .clock-countdown {
        height: 44px;
        width: 120px;
        top: 5px;
        right: 10px
    }

        .clock-countdown span {
            line-height: 46px;
        }

    .right-button-holder {
        display: flex;
        top: 5px;
        right: 150px;
        height: 40px;
        width: 180px;
    }

        .right-button-holder a {
            height: 38px !important;
            line-height: 38px !important;
            text-align: center;
            padding: 0px 10px 0px 10px !important;
            display: block;
            width: 140px;
        }

    .answer-info {
        font-size: 14pt;
        width: 49%;
        height: 40px;
    }

    .answer-circle {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: #d4d4d4;
        background-color: #fff;
        font-size: 20pt;
        text-decoration: none;
    }

    #sidebar.active {
        width: 100%;
        text-align: center;
        z-index: 999999999
    }

    #tdNavigation {
        width: 100%;
        bottom: 0px;
        right: 0px;
        position: fixed;
        top: 0px;
        left: 0px;
        text-align: center;
    }

    /* Reappearing the sidebar on toggle button click */
    #sidebar {
        width: 0;
        position: fixed;
    }

        /* Toggling the sidebar header content, 
       hide the big heading [h3] and showing the small heading [strong] and vice versa
    */
        #sidebar .sidebar-header strong {
            display: none;
        }

        #sidebar.active .sidebar-header h3 {
            display: none;
        }

        #sidebar.active .sidebar-header strong {
            display: block;
        }

        /* Downsize the navigation links font size */
        #sidebar.active ul li a {
            padding: 20px 10px;
            font-size: 0.85em;
        }

            #sidebar.active ul li a i {
                margin-right: 0;
                display: block;
                font-size: 1.8em;
                margin-bottom: 5px;
            }

        /* Adjust the dropdown links padding*/
        #sidebar.active ul ul a {
            padding: 10px !important;
        }

    /* Changing the arrow position to bottom center position, 
      translateX(50%) works with right: 50% 
      to accurately  center the arrow */
    .dropdown-toggle::after {
        top: auto;
        bottom: 10px;
        right: 50%;
        -webkit-transform: translateX(50%);
        -ms-transform: translateX(50%);
        transform: translateX(50%);
    }
}
.btn-upload {
    width: 120px;
}
.pin-bottom{
    position:fixed;
    max-height:50%;
    bottom:0px;
    right:0px;
}

.student-answer-content img {
    max-width: 100% !important
}

.mobile-image-item {
    position: relative;
}
.pids-wrapper {
    width: 100%;
}

.pid {
    width: calc(10% - 14px);
    height: 10px;
    display: inline-block;
    margin: 5px;
}
.rowqs-alt {
    background-color: #f7f7f7;
}

.row-answers {
    border-bottom: #e0e0e0 solid 0.5px;
}

.rowqs-alt .rowsqs.row-answers {
    border-bottom: #c3c3c3 solid 0.5px;
}
