@keyframes spinner {
    0% {
        transform: translate3d(-50%, -50%, 0) rotate(0deg);
    }

    100% {
        transform: translate3d(-50%, -50%, 0) rotate(360deg);
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    background-color: #E5E5E5;
    font-family: 'typold';
    font-size: 14px;
}

#percentage {
    font-weight: bolder;
    color: #505AD6;
    font-size: 25px;
}

.full-div {
    min-height: calc(100vh - 90px);
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-width: thin;
}

.full-div-noscroll {
    overflow-y: hidden !important;
}

.outer-div {
    background-color: #E5E5E5
}

.progressTextDiv {
    pointer-events: none;
}

#imageType, #pdfType {
    display: none;
}

.automargin {
    margin-top: auto !important;
}

.modal-dialog, .modal-dialog > * {
    background-color: #FCFCFC;
    color: #9697AC;
}

.modal-warning {
    border-left: 7px solid #FFC107;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #E5E5E5;
}

.modal-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #DEE2E6;
    border-top-left-radius: calc(.3rem - 1px);
    border-top-right-radius: calc(.3rem - 1px);
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #E5E5E5;
}

.modal-warning {
    border-left: 7px solid #FFC107;
}

.modal-error {
    border-left: 7px solid #DC3545;
}

.modal-body {
    position: relative;
    padding: 15px;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-warning {
    border-left: 7px solid #FFC107;
}

.modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #E5E5E5;
}

.modal-footer {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: .75rem;
    border-top: 1px solid #DEE2E6;
    border-bottom-right-radius: calc(.3rem - 1px);
    border-bottom-left-radius: calc(.3rem - 1px);
}

.modal-dialog {
    max-width: 600px;
}

.imageFile {
    width: 100px !important;
}

.question-container {
    border: 1px solid #dee2e6;
    padding: 15px;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.question-title {
    font-weight: bold;
}

.btn-answer {
    outline: none;
    box-shadow: none;
    border: 1px solid white;
    color: #E5E5E5 !important;
}

.btn-answer:focus, .btn-answer:active, .btn-answer:focus:active {
    outline: none;
    box-shadow: none;
    border: 1px solid white;
    color: #E5E5E5 !important;
}

.btn-answer-group {
    width: auto !important;
    display: flex;
    flex-wrap: inherit;
    justify-content: center;
    box-sizing: border-box;
}

#confirmationDialogModel {
    display: flex;
    align-items: center;
    justify-content: center !important;
}

#confirmationDialogModel .modal-dialog {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    width: 100vw;
}

#confirmationDialogModel .modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#confirmationDialogModel .modal-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#confirmationDialogModel .modal-body-static {
    flex-shrink: 0;
}

#confirmationDialogModel .confirmation-block {
    flex-grow: 1;
    overflow-y: auto;
}

#confirmationDialogModel .modal-footer {
    flex-shrink: 0;
}

.progress {
    height: 10px
}

.previewCard {
    width: fit-content !important;
}

.infoButton, .infoButton:focus, .infoButton:active, .closeIcon, .closeIcon:focus, .closeIcon:active, closeIcon2, closeIcon2:focus, closeIcon2:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.closeIcon, .closeIcon2 {
    font-weight: bold;
    cursor: pointer;
    padding: 0;
}

.closeIconImage {
    margin-bottom: 4px;
}

.capture-box {
    border: 1.5px dashed #D7D9F2;
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    text-align: center;
    color: #9697AC;
    max-height: 200px;
    height: 130px;
    background: linear-gradient(180deg, #FAFAFF, #F4F5FC);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.capture-box:hover {
    border-color: #505AD6;
    background: #F1F2FD;
}

.capture-box i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #EDEEFA;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capture-image {
    border: 1.5px solid #E7E8F5;
    border-radius: 12px;
    padding: 0;
    margin: 10px 0;
    text-align: center;
    background: #EDEEF7;
    position: relative;
    align-items: center;
    overflow: hidden;
}

.capture-image .previewImage {
    width: 100%;
    display: block;
}

.capture-image .btn-rotate {
    width: 28px;
    height: 28px;
    position: absolute;
    right: 6px;
    padding: 0px;
    top: 6px;
}

.capture-image .btn-recapture {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    position: absolute;
    bottom: 6px;
    padding: 0px;
    right: 6px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 1px 3px rgba(16,24,64,.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.capture-image .btn-recapture:hover {
    background: #fff;
}

.capture-image .btn-recapture img {
    filter: invert(30%) sepia(54%) saturate(1800%) hue-rotate(226deg) brightness(92%) contrast(93%);
}

.capture-image .scanxm-file-badge {
    position: absolute;
    left: 7px;
    top: 7px;
    z-index: 1;
}

.btn-grey {
    background-color: #9697AC;
    color: #FCFCFC;
}

.btn-grey:hover {
    background-color: #717283;
    color: #FCFCFC;
}

/* Shared modal redesign (error / confirm / reset-confirm / information) - icon-led header instead of
   the old colored left-border bar, rounded card, and scanxm-branded footer buttons. */
.scanxm-modal-content {
    border-radius: 16px;
    overflow: hidden;
    border: none;
}

.scanxm-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, #FAFAFF, #fff);
}

.scanxm-modal-icon {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanxm-modal-icon-warning {
    background: #FFF4E0;
    color: #B8740A;
}

.scanxm-modal-icon-error {
    background: #FDECEC;
    color: #DC3545;
}

.scanxm-modal-icon-info {
    background: #EDEEFA;
    color: #505AD6;
}

.scanxm-modal-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #1F2430;
    flex: 1;
}

.scanxm-modal-close {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #9697AC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanxm-modal-close:hover {
    background: #F1F2FD;
    color: #505AD6;
}

.scanxm-modal-body {
    font-size: 13.5px;
    color: #5C5F72;
    line-height: 1.55;
}

.scanxm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.scanxm-btn-danger-ghost {
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 700;
    background: #fff;
    color: #DC3545;
    border: 1.5px solid #F4C7CC;
}

.scanxm-btn-danger-ghost:hover {
    background: #FDECEC;
    border-color: #DC3545;
    color: #DC3545;
}

/* Answer-confirmation modal (fullscreen): review/fix empty or multiple-marked questions before saving. */
#confirmationDialogModel .modal-content {
    border-radius: 0;
}

.scanxm-confirm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, #FAFAFF, #fff);
}

.scanxm-confirm-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #FFF8EE;
    border: 1px solid #F3E6CC;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.scanxm-confirm-notice-icon {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #FFF0D6;
    color: #B8740A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanxm-confirm-notice p {
    margin: 0;
    font-size: 13px;
    color: #5C5F72;
    line-height: 1.5;
}

.scanxm-confirm-notice p + p {
    margin-top: 4px;
}

.scanxm-confirm-section-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #9697AC;
    margin: 20px 0 12px;
}

.question-container {
    border: 1.5px solid #E7E8F5;
    border-radius: 14px;
    padding: 16px 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16,24,64,.03);
}

.question-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #1F2430;
    margin-bottom: 12px;
}

.btn-answer-group {
    display: flex !important;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
}

.btn-answer {
    /* Bootstrap's .btn-group gives each .btn `flex: 1 1 auto`, which stretches every button to fill
       the row - that's what was turning these into ovals instead of circles. Pin them to a fixed,
       non-growing, non-shrinking box so width always equals height. */
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 0;
    max-width: 36px;
    border-radius: 50% !important;
    font-size: 13px;
    font-weight: 700;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .12s, border-color .12s, color .12s, transform .12s;
}

.btn-answer:active {
    transform: scale(.92);
}

.btn-answer.btn-grey {
    background: #F7F7FB !important;
    border: 1.5px solid #E7E8F5 !important;
    color: #9697AC !important;
}

.btn-answer.btn-success {
    background: #505AD6 !important;
    border: 1.5px solid #505AD6 !important;
    color: #fff !important;
}

.scanxm-camera-modal {
    border-radius: 16px;
    overflow: hidden;
}

.scanxm-camera-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(180deg, #FAFAFF, #fff);
}

.scanxm-camera-logo {
    flex: none;
}

.scanxm-camera-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #1F2430;
    padding-left: 14px;
    border-left: 1px solid #E7E8F5;
}

.scanxm-camera-tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.scanxm-camera-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: #5C5F72;
    font-weight: 600;
}

.scanxm-camera-tip-icon {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #F1F2FD;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanxm-camera-footer {
    display: flex;
    gap: 10px;
}

.scanxm-camera-footer .scanxm-btn-ghost {
    flex: 1;
    justify-content: center;
}

.scanxm-camera-submit {
    flex: 1.4;
    justify-content: center;
}

#video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: black;
    overflow: hidden;
}

#previewVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#border-box {
    position: absolute;
    pointer-events: none;
    box-sizing: border-box;
}

#orientation-warning {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 15px;
    text-align: center;
}

#cameraCaptureModal .modal-dialog{
    max-width:100% !important;
}

#btnCapture {
    position: absolute;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
}

#btnCloseCustomCapture, #btnCloseCustomCapture:focus, #btnCloseCustomCapture:active {
    position: absolute;
    top: 0%;
    left: 0px;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #FFFF;
    font-weight:bolder;
    font-size: 20px;
}

.cameraButton img{
    width:24px;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-canvas{
    width: 400px;
    height: 300px;
}



#imageModal .swiper-image {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.modal-close-icon {
    color: #9697AC;
}

#image-modal-loader {
    display: grid;
    place-content: center;
    height: 100%;
}

#imageModal .modal-dialog {
    max-width: 1140px;
    background-color: unset !important;
}

.center-page {
    display: grid;
    place-content: center;
    height: 100%;
    text-align:center;
}
/* ===== ScanXM upload area + progress redesign (replaces loader*.gif) ===== */

/* Header row: exam chip + optional info button */
.scanxm-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.scanxm-exam-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #505AD6;
}

.scanxm-exam-chip-label {
    font-size: 10.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #9697AC;
    font-weight: 700;
}

.scanxm-exam-chip-value {
    font-size: 14.5px;
    font-weight: 700;
    color: #1F2430;
}

.scanxm-info-btn {
    padding: 0;
    border: none;
}

.scanxm-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EDEEFA;
    color: #505AD6;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    margin-left: auto;
}

/* Hide the badge shell until #pages actually has text, so it doesn't sit in the header as a bare icon
   before a file is selected. */
.scanxm-page-badge:has(#pages:empty) {
    display: none;
}

/* Empty dropzone */
.scanxm-dropzone {
    border: 2px dashed #C7C9E8;
    border-radius: 16px;
    background: #FAFAFF;
    transition: border-color .2s ease, background-color .2s ease;
    padding: 34px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.scanxm-dropzone:hover {
    border-color: #505AD6;
    background: #F1F2FD;
}

.scanxm-dz-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #F1F2FD;
    color: #505AD6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanxm-dz-title {
    font-size: 14px;
    font-weight: 700;
    color: #1F2430;
}

.scanxm-dz-sub {
    font-size: 12px;
    color: #9697AC;
}

/* File card (selected state) */
.scanxm-file-card {
    border: 1.5px solid #E7E8F5;
    border-radius: 16px;
    background: linear-gradient(180deg, #FAFAFF, #fff);
}

.scanxm-file-card-pdf {
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.scanxm-file-thumb {
    position: relative;
    flex: none;
    width: 92px;
    height: 118px;
    border-radius: 10px;
    overflow: hidden;
    background: #EDEEF7;
    color: #9697AC;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(16,24,64,.10), 0 4px 12px rgba(16,24,64,.08);
}

.scanxm-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.scanxm-file-badge {
    position: absolute;
    left: 7px;
    top: 7px;
    background: #505AD6;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 3px 6px;
    border-radius: 5px;
}

.scanxm-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 2px;
}

.scanxm-file-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.scanxm-file-name {
    font-size: 14px;
    font-weight: 700;
    color: #1F2430;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scanxm-file-meta {
    font-size: 12px;
    color: #9697AC;
}

.scanxm-file-remove {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #9697AC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanxm-file-remove:hover {
    background: #EDEEFA;
    color: #505AD6;
}

/* Image (studentportal front/back) file cards */
.scanxm-file-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.scanxm-file-card-image {
    flex: 1 1 260px;
    max-width: 340px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scanxm-file-thumb-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    border-radius: 10px;
}

/* Full-frame camera/gallery photos can be any orientation/aspect ratio and the form can sit anywhere
   in the shot, so show the whole photo (letterboxed) rather than cropping it into the 4:3 box - cover
   cropping was cutting the actual answer sheet out of frame in favor of the surrounding background. */
.scanxm-file-thumb-image .scanxm-thumb-img {
    object-fit: contain;
    background: #1F2430;
}

.scanxm-file-thumb-image .scanxm-file-remove {
    position: absolute;
    right: 6px;
    top: 6px;
    background: rgba(255,255,255,.92);
}

/* Action row under the dropzone/file card - buttons sit flush right now that the page-count text has
   moved up into the header badge (it used to be a flex:1 spacer living in this row). */
.scanxm-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #F0F0F6;
}


.scanxm-btn-primary, .scanxm-btn-ghost {
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.scanxm-btn-primary {
    background: #505AD6;
    color: #fff;
    border: none;
}

.scanxm-btn-primary:hover {
    background: #3F49C4;
    color: #fff;
}

.scanxm-btn-primary.disabled {
    background: #C7C9E8;
    pointer-events: none;
}

.scanxm-btn-ghost {
    background: #fff;
    color: #505AD6;
    border: 1.5px solid #D7D9F2;
}

.scanxm-btn-ghost:hover {
    background: #F1F2FD;
    border-color: #505AD6;
    color: #505AD6;
}

/* Round icon-only button (e.g. the footer "Reset session" button) matching the ghost button's palette. */
.scanxm-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #D7D9F2;
    background: #fff;
    color: #505AD6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, border-color .15s ease;
}

.scanxm-icon-btn:hover {
    background: #F1F2FD;
    border-color: #505AD6;
}

.scanxm-icon-btn img {
    filter: invert(30%) sepia(54%) saturate(1800%) hue-rotate(226deg) brightness(92%) contrast(93%);
}

/* Icons like camera.svg are authored white (fill="#FFFFFF") for use on the solid purple button;
   tint them to match the ghost button's purple text so they stay visible on its white background. */
.scanxm-btn-ghost img {
    filter: invert(30%) sepia(54%) saturate(1800%) hue-rotate(226deg) brightness(92%) contrast(93%);
}

.scanxm-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
}

.scanxm-idle-icon {
    width: 56px;
    height: 56px;
    color: #C7C9E8;
}

/* Uploading phase: real byte progress via xhr.upload.onprogress */
.scanxm-upload-bar-wrap {
    width: 100%;
    max-width: 320px;
}

.scanxm-upload-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #717283;
    margin-bottom: 4px;
}

.scanxm-upload-track {
    height: 8px;
    border-radius: 999px;
    background: #E5E5E5;
    overflow: hidden;
}

.scanxm-upload-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #505AD6, #7F8AF5, #505AD6);
    background-size: 200% 100%;
    animation: scanxm-stripe 1.4s linear infinite;
    transition: width .25s ease;
}

@keyframes scanxm-stripe {
    0% { background-position: 200% 0; }
    100% { background-position: 0 0; }
}

/* Processing phase: circular ring + status + stat cards + step tracker */
.scanxm-processing-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.scanxm-processing-top {
    display: flex;
    align-items: center;
    gap: 24px;
}

.scanxm-ring-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    flex: none;
}

.scanxm-ring {
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
}

.scanxm-ring-track {
    fill: none;
    stroke: #EEEFF7;
    stroke-width: 11;
}

.scanxm-ring-progress {
    fill: none;
    stroke: #505AD6;
    stroke-width: 11;
    stroke-linecap: round;
    stroke-dasharray: 376.99;
    stroke-dashoffset: 376.99;
    transition: stroke-dashoffset .5s cubic-bezier(.4,0,.2,1);
}

.scanxm-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scanxm-ring-pct {
    font-weight: 800;
    font-size: 26px;
    color: #505AD6;
    line-height: 1;
}

.scanxm-ring-sub {
    font-size: 10.5px;
    color: #9697AC;
    font-weight: 600;
    margin-top: 3px;
}

.scanxm-status-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.scanxm-status-title {
    font-size: 15px;
    font-weight: 700;
    color: #1F2430;
}

.scanxm-status-detail {
    font-size: 12.5px;
    color: #9697AC;
    margin-top: 3px;
}

.scanxm-stat-row {
    display: flex;
    gap: 10px;
}

.scanxm-stat-card {
    flex: 1;
    background: #F7F7FB;
    border-radius: 12px;
    padding: 9px 13px;
}

.scanxm-stat-value {
    font-size: 17px;
    font-weight: 800;
    color: #1F2430;
}

.scanxm-stat-label {
    font-size: 10.5px;
    color: #9697AC;
    font-weight: 600;
    margin-top: 2px;
}

.scanxm-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.scanxm-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    position: relative;
}

.scanxm-step-line {
    position: absolute;
    top: 10px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: #E2E3EF;
    z-index: 0;
    transition: background-color .25s ease;
}

.scanxm-step:first-child .scanxm-step-line {
    visibility: hidden;
}

.scanxm-step-line.scanxm-step-line-done {
    background: #505AD6;
}

.scanxm-step-dot {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #E2E3EF;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.scanxm-step-dot svg {
    opacity: 0;
    transition: opacity .15s ease;
}

.scanxm-step-label {
    font-size: 11px;
    font-weight: 500;
    color: #B6B8C6;
    text-align: center;
    transition: color .2s ease, font-weight .2s ease;
}

@keyframes scanxm-step-glow {
    0%, 100% { box-shadow: 0 0 0 4px rgba(80,90,214,.16); }
    50% { box-shadow: 0 0 0 8px rgba(80,90,214,.26); }
}

.scanxm-step-active .scanxm-step-dot {
    border-color: #505AD6;
    animation: scanxm-step-glow 1.7s ease-in-out infinite;
}

.scanxm-step-active .scanxm-step-label {
    color: #505AD6;
    font-weight: 700;
}

.scanxm-step-done .scanxm-step-dot {
    background: #505AD6;
    border-color: #505AD6;
}

.scanxm-step-done .scanxm-step-dot svg {
    opacity: 1;
}

.scanxm-step-done .scanxm-step-label {
    color: #5C5F72;
    font-weight: 600;
}

/* Live activity feed */
.scanxm-feed {
    border-top: 1px solid #F0F0F6;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.scanxm-feed-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #9697AC;
    font-weight: 700;
    margin-bottom: 2px;
}

@keyframes scanxm-feed-pulse {
    0% { box-shadow: 0 0 0 0 rgba(30,158,90,.55); }
    70% { box-shadow: 0 0 0 6px rgba(30,158,90,0); }
    100% { box-shadow: 0 0 0 0 rgba(30,158,90,0); }
}

.scanxm-feed-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1E9E5A;
    animation: scanxm-feed-pulse 1.8s ease-out infinite;
}

@keyframes scanxm-feed-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.scanxm-feed-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: #5C5F72;
    border-radius: 10px;
    padding: 5px 10px 16px 4px;
    animation: scanxm-feed-in .3s ease both;
}

.scanxm-feed-item:last-child {
    padding-bottom: 5px;
}

/* The newest entry gets a soft purple glow + filled icon so the live stream of events reads clearly
   at a glance, instead of every row looking the same. */
.scanxm-feed-item:first-child {
    background: #F1F2FD;
    box-shadow: 0 0 0 1px rgba(80,90,214,.14), 0 0 16px rgba(80,90,214,.2);
}

/* Timeline rail connecting this item's icon down to the next one's. */
.scanxm-feed-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 27px;
    bottom: 0;
    width: 2px;
    background: #E7E8F5;
    border-radius: 1px;
}

.scanxm-feed-icon {
    position: relative;
    z-index: 1;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E7F7EC;
    color: #1E9E5A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanxm-feed-item:first-child .scanxm-feed-icon {
    background: #505AD6;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(80,90,214,.16);
}

.scanxm-feed-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 3px;
}

.scanxm-feed-text {
    flex: 1;
    min-width: 0;
    font-weight: 500;
}

.scanxm-feed-item:first-child .scanxm-feed-text {
    font-weight: 700;
    color: #1F2430;
}

.scanxm-feed-time {
    flex: none;
    margin-left: auto;
    color: #B6B8C6;
    font-size: 11px;
}

/* Complete phase: CSS-drawn checkmark (pop + stroke-draw animation) */
@keyframes scanxm-pop {
    0% { transform: scale(.6); opacity: 0; }
    70% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

.scanxm-check-wrap {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #EAFBF1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scanxm-pop .45s cubic-bezier(.34,1.56,.64,1) both;
}

.scanxm-check {
    width: 40px;
    height: 40px;
}

.scanxm-check-mark {
    stroke: #1E9E5A;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: scanxm-check-mark .35s .3s ease forwards;
}

@keyframes scanxm-check-mark {
    to { stroke-dashoffset: 0; }
}

.scanxm-complete-title {
    font-size: 16px;
    font-weight: 800;
    color: #1F2430;
    margin-top: 14px;
}

/*Media Queries*/
@media (min-width: 767px) {
    body {
        font-size: 16px;
    }
    #imageModal .modal-body {
        height: calc(100vh - 132px);
    }
}

@media (max-width: 767px) {
    .imageFile {
        width: 70px !important;
    }

    .btn {
        font-size: 13px;
    }

    .progress {
        height: 8px;
    }

    .cameraButton img {
        width: 20px;
    }
  
}

@media (min-width: 767px) and (max-width: 992px) {
    .imageFile {
        width: 90px !important;
    }

    .progress {
        height: 8px;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .imageFile {
        width: 80px !important;
    }

    p {
        font-size: 14px;
        margin: 5px 0px;
    }

    .btn {
        font-size: 14px;
    }

    .progress {
        height: 10px;
    }

    .cameraButton img {
        width: 21px;
    }
}

@media (min-width: 1200px) and (max-width: 1400px) {
    .imageFile {
        width: 105px !important;
    }

    p {
        font-size: 16px;
        margin: 10px 0px;
    }

    .btn {
        font-size: 16px;
    }

    .progress {
        height: 15px;
    }

    .cameraButton, .infoButton {
        padding: 7px 10px
    }

    .cameraButton img {
        width: 22px;
    }
}

@media (min-width: 1600px) {
    .imageFile {
        width: 150px !important;
    }

    p {
        font-size: 16px;
        margin: 10px 0px;
    }

    .btn {
        font-size: 16px;
    }

    .progress {
        height: 15px;
    }

    .cameraButton, .infoButton {
        padding: 7px 10px
    }

    .cameraButton img {
        width: 22px;
    }
}
