body {
    background-color: #F7F9FAE6 !important;
}

#zoomBox {
    margin-top: 10px;
    display: none;
}

#zoomSlider {
    width: 100%;
}

#videoContainer {
    position: relative;
    max-height: 70vh;
    overflow: hidden;
    display: none;
}

#webcam-preview {
    width: 100%;
    height: 70vh;
    object-fit: cover;
}

@media (max-width: 576px) {
    #videoContainer {
        max-height: 58vh;
    }

    #webcam-preview {
        height: 58vh;
    }
}

#videoContainer #divQRSection {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    padding: 8px 10px;
    width: calc(100% - 20px);
    max-width: 360px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-sizing: border-box;
}

#divQRSection {
    display: none;
}

#manualEntryOverlay #divQRSection {
    display: flex !important;
}

#manualEntryDock #divQRSection {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 360px;
}

#scannerCard {
    min-height: 400px;
    background-color: #ffffff;
    border-radius: 0.50rem;
    border: 0;
}

#outputMessage {
    margin-top: 1.5rem;
}

#outputMessage .scan-desktop-message {
    color: #000;
}

#outputMessage .scan-desktop-icon {
    width: 96px;
    height: 96px;
    border: 3px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem auto;
}

#outputMessage .scan-desktop-icon-inner {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 56px;
    line-height: 56px;
}

#outputMessage .scan-desktop-icon-camera {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    line-height: 1;
}

#outputMessage .scan-desktop-icon-slash {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 74px;
    height: 8px;
    background: #000;
    border-radius: 6px;
}

#targetBox {
    position: absolute;
    height: 120px;
    width: 280px;
    top: 55%;
    bottom: auto;
    left: 50%;
    z-index: 1;
    background-color: transparent;
    border: none;
    transform: translate(-50%, -50%);
    display: block;
    background:
        linear-gradient(yellow, yellow) left top / 32px 2px no-repeat,
        linear-gradient(yellow, yellow) left top / 2px 32px no-repeat,
        linear-gradient(yellow, yellow) right top / 32px 2px no-repeat,
        linear-gradient(yellow, yellow) right top / 2px 32px no-repeat,
        linear-gradient(yellow, yellow) left bottom / 32px 2px no-repeat,
        linear-gradient(yellow, yellow) left bottom / 2px 32px no-repeat,
        linear-gradient(yellow, yellow) right bottom / 32px 2px no-repeat,
        linear-gradient(yellow, yellow) right bottom / 2px 32px no-repeat;
}

#targetPlus {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 26px;
    height: 26px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#targetPlus:before,
#targetPlus:after {
    content: "";
    position: absolute;
    background: yellow;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#targetPlus:before {
    width: 2px;
    height: 26px;
}

#targetPlus:after {
    width: 26px;
    height: 2px;
}

#scanLine {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background: rgba(255, 255, 0, 0.9);
    pointer-events: none;
}

#barcodeBox {
    position: absolute;
    z-index: 2;
    background-color: transparent;
    border: 2px solid yellow;
    display: none;
    pointer-events: none;
    box-sizing: border-box;
}

#eidCoachmark {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 10;
    display: none;
    width: calc(100% - 132px);
    max-width: 520px;
    pointer-events: auto;
}

#eidCoachmark .coachmark-pill {
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    font-size: 0.95rem;
    line-height: 1.2;
}

#eidCoachmark .coachmark-arrow {
    font-size: 18px;
    animation: coachmarkBounce 1.1s infinite;
}

#eidCoachmarkHelp {
    position: absolute;
    right: 12px;
    bottom: 16px;
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

#manualEntryHelp {
    position: absolute;
    left: 50%;
    top: 12px;
    z-index: 10;
    height: 34px;
    border-radius: 999px;
    border: none;
    transform: translateX(-50%);
    padding: 0 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    font-size: 0.85rem;
    line-height: 1;
}

#manualEntryOverlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    background: rgba(0, 0, 0, 0.20);
    backdrop-filter: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    pointer-events: none;
}

#pwaInstallModal {
    z-index: 3010;
}

#eidConfirmModal {
    z-index: 3010;
}

.modal-backdrop {
    z-index: 3000;
}

#manualEntryOverlayContent {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    pointer-events: auto;
}

#manualEntryOverlayHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

#manualEntryOverlayHeader .font-weight-bold {
    font-size: 1.05rem;
    letter-spacing: 0.1px;
}

#manualEntryOverlayNotice {
    color: rgba(0, 0, 0, 0.68);
    font-size: 0.9rem;
    line-height: 1.35;
}

#manualEntryOverlayNotice .text-muted {
    color: rgba(0, 0, 0, 0.62) !important;
}

#manualEntryOverlayNotice .small {
    font-size: 0.9rem;
}

#manualEntryOverlayBody #manualEntryValidationMessage {
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.22);
    color: rgba(220, 53, 69, 0.95);
    font-size: 0.9rem;
    line-height: 1.25;
    box-sizing: border-box;
    margin-top: -4px;
    margin-bottom: clamp(10px, 2.5vw, 16px);
}

#btnBackToCamera {
    border-radius: 999px;
    padding-left: 12px;
    padding-right: 12px;
}

#manualEntryOverlayBody #divQRSection {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2.5vw, 16px);
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

@supports not (gap: 1rem) {
    #manualEntryOverlayBody #divQRSection {
        gap: 0;
    }

    #manualEntryOverlayBody #divQRSection > * + * {
        margin-top: clamp(10px, 2.5vw, 16px);
    }
}

#manualEntryOverlayBody #divQRSection input {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    padding: 10px 12px;
    font-size: 1rem;
    box-sizing: border-box;
    margin-bottom: 0;
}

#manualEntryOverlayBody #divQRSection button {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    margin-top: 0;
}

#manualEntryOverlayBody #divQRSection #btnQRCode {
    margin-bottom: 0;
}

#manualEntryOverlayBody #divQRSection #scanSessionFooter {
    width: 100%;
    margin-top: 0 !important;
}

#manualEntryOverlayBody #divQRSection #scanSessionFooter .btn {
    width: 100%;
    height: 44px;
    border-radius: 10px;
}

#cameraLoadingOverlay {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(1px);
    pointer-events: none;
}

#cameraLoadingOverlay .cameraLoadingInner {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    color: #111;
    font-size: 0.95rem;
}

@keyframes coachmarkBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.gc-login-wrap {
    min-height: calc(100vh - 140px);
}

.gc-login-card {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.gc-login-title {
    font-weight: 600;
    letter-spacing: 0.2px;
}

.input-validation-error {
    border-color: #dc3545 !important;
}

.field-validation-error {
    color: #dc3545;
}

.form-control {
    border-color: #D5DADD;
    border-radius: 4px;
    height: 42px;
}

label {
    font-weight: 500;
    color: #4A4A4A;
}

.card {
    border-radius: 8px;
}

.btn-primary {
    background-color: #001422 !important;
    border-color: #001422 !important;
}

.btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.section-title {
    font-size: 17px;
    font-weight: 600;
    margin-top: 25px;
    color: #001422;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(247, 249, 250, 0.9);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.signup-title {
    font-weight: 600;
    color: #001422;
}

.signup-eid-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.signup-eid-scan-btn {
    background-color: #91d46c;
    border-color: #91d46c;
    color: #0F172A;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.success-card {
    border-radius: 10px;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 167, 69, 0.12);
    color: #28a745;
    font-size: 34px;
}

.provision-success-hero {
    background: linear-gradient(180deg, rgba(0, 20, 34, 0.06), rgba(255,255,255,0));
}

.provision-success-title {
    color: #001422;
}

.whn-card {
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.whn-title {
    color: #001422;
    font-weight: 700;
    font-size: 16px;
}

.whn-alert {
    font-size: 13px;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.whn-success {
    background: rgba(40, 167, 69, 0.10);
    border: 1px solid rgba(40, 167, 69, 0.25);
}

.whn-success-title {
    color: #1E7E34;
    font-weight: 700;
    font-size: 14px;
}

.whn-success-body {
    color: #145A2A;
    font-size: 14px;
}

.whn-success-note {
    color: #145A2A;
    font-size: 12px;
}

.whn-body {
    font-size: 14px;
    color: #0F172A;
}

.whn-question {
    font-size: 14px;
    color: #0F172A;
    font-weight: 600;
}

.whn-muted {
    font-size: 12px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

#map {
    height: 100%;
    width: 100%;
}
