html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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 var(--light-blue);
}

html {
  position: relative;
    height: 100%;
    margin: 0;
}

html, body {
    touch-action: pan-y; /* Allow vertical scrolling only */
    overscroll-behavior-x: none; /* Prevent left/right swipe gestures */
    overscroll-behavior-y: contain;
}

.cursor-display * {
    cursor: none !important;
}

/******************** Theme ********************/
:root {
    --primary-colour: #265186; /* Blue */
    --secondary-colour: #444444; /* Grey */
    --tertiary-colour: #FFFFFF; /* White */
    --quaternary-colour: #33353D;
    /*    --display-font: "Inter", sans-serif;*/
    --display-font: 'Poppins', Arial, sans-serif;
    --primary-black: #111111;
    --black-colour: #24252b;
    --primary-white: #FFFFFF;
    --light-blue: #3E86DF;
    --dark-blue: #152D4C;
    --darker-blue: #0D1C2F;
}

/******************** Layout ********************/
.accept_btn, .cancel_btn {
    display: flex;
    width: 100%;
    max-width: 300px;
    height: 50px;
    padding: 6px 14px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
    background-color: #265186;
    color: white;
    text-align: center;
}

.cancel_btn {
    background-color: red;
}

.accept_btn:hover, .cancel_btn:hover {
    color: white;
}

.button_selected {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/*.line-md--confirm-circle {
    display: inline-block;
    width: 120px;
    height: 120px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%2325ff00' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath stroke-dasharray='64' stroke-dashoffset='64' d='M3 12c0 -4.97 4.03 -9 9 -9c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9Z'%3E%3Canimate attributeName='stroke-dashoffset' dur='1.2s' values='64;0'/%3E%3C/path%3E%3Cpath stroke-dasharray='14' stroke-dashoffset='14' d='M8 12l3 3l5 -5'%3E%3Canimate fill='freeze' attributeName='stroke-dashoffset' begin='1.2s' dur='0.4s' values='14;0'/%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
}*/

.dash_btn {
    transition: background-color 0.3s ease, transform 0.1s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.dash_btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) inset;
}

.dash_btn::after {
    content: "";
    position: absolute;
    background: rgba(365,365,365,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.dash_btn:active::after {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
    transition: 0s;
}


.dash_btn:hover {
    transform: scale(1.1);
}

.dash_btn:focus {
    box-shadow: none;
}

.dash_icon {
    position: absolute;
    right: 95px;
}

.fullscreen_btn {
    font-size: 20px;
    position: absolute;
    right: 20px;
    top: 20px;
    padding-right: 5px;
    padding-left: 5px;
    padding-top: 1px;
    padding-bottom: 1px;
}

.fullscreen_btn:focus {
    box-shadow: 0 0 0 .25rem rgba(66,70,73,.5) !important;
}

/*Scrollbar*/
.custom-scroll::-webkit-scrollbar {
    width: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #e1e1e1;
    border-radius: 8px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #63A2FF;
    border-radius: 8px;
}

    .custom-scroll::-webkit-scrollbar-thumb:hover {
        background: #4a87e0;
    }

/* This hides the up/down buttons */
.custom-scroll::-webkit-scrollbar-button {
    display: none !important;
    height: 0;
    width: 0;
}

/******************** Display ********************/
.display {
    display: flex;
    width: 100%;
    height: 100vh;
    background-color: var(--quaternary-colour);
}

/* Pulse */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.pulsating-icon {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Shake */
@keyframes pulsating-shake {
    0% {
        transform: scale(1) translateX(0);
    }

    20% {
        transform: scale(1.25) translateX(-3px);
    }

    40% {
        transform: scale(1.5) translateX(3px);
    }

    60% {
        transform: scale(1.35) translateX(-2px);
    }

    80% {
        transform: scale(1.1) translateX(2px);
    }

    100% {
        transform: scale(1) translateX(0);
    }
}

.shaking-cross {
    animation: pulsating-shake 0.8s infinite ease-in-out;
    display: inline-block;
}


/* Cross */
.icomoon-free--cross {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23f30000' d='M15.854 12.854L11 8l4.854-4.854a.503.503 0 0 0 0-.707L13.561.146a.5.5 0 0 0-.707 0L8 5L3.146.146a.5.5 0 0 0-.707 0L.146 2.439a.5.5 0 0 0 0 .707L5 8L.146 12.854a.5.5 0 0 0 0 .707l2.293 2.293a.5.5 0 0 0 .707 0L8 11l4.854 4.854a.5.5 0 0 0 .707 0l2.293-2.293a.5.5 0 0 0 0-.707'/%3E%3C/svg%3E");
}

/*Slider*/
.slider-track {
    display: flex;
    animation: slideImages 9s infinite ease-in-out;
    width: 100%
}

.slider-img {
    width: 200px;
    height: 200px;
    margin: 0 80px;
    opacity: 0;
    transform: translateX(-100%);
    animation: imageIn 30s infinite;
}

    /* Animates each image separately */
    .slider-img:nth-child(1) {
        animation-delay: 5s;
    }

    .slider-img:nth-child(2) {
        animation-delay: 8s;
    }

    .slider-img:nth-child(3) {
        animation-delay: 11s;
    }

/* Animation Keyframes */
@keyframes imageIn {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    10% {
        transform: translateX(0);
        opacity: 1;
    }

    40% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/******************** Kiosk ********************/
.kiosk {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', sans-serif;
    padding: 0;
}

.kiosk-header {
    height: 10%;
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 60px;
    width: auto;
}

.clock-container {
    display: flex;
    gap: 7px;
    font-size: 25px;
}

.kiosk-body {
    position: relative;
    z-index: 1;
    gap: 40px;
    height: 90%;
    border-radius: 16px;
}

.kiosk-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/Qflow tran.png') no-repeat center center;
    background-size: contain;
    opacity: 0.08;
    filter: blur(10px);
    z-index: 0;
    pointer-events: none;
    background-attachment: fixed
}

.intro-text {
    text-align: center;
}

    .intro-text h1 {
        font-size: 32px;
        color: #1c1c1c;
    }

    .intro-text p {
        font-size: 1.2rem;
        color: #666;
    }

.assistance-text {
    display: flex;
    gap: 7px;
    justify-content: center;
    align-items: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    align-items: stretch;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scrollbar-color: transparent transparent;
}

.service-container {
    overflow-y: auto;
    scrollbar-color: #265186 transparent;
    max-height: 75%;
}

.service_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border-radius: 15px;
    border: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    height: 100%;
}
    .service_card.selected {
        transform: scale(0.97);
        box-shadow: 0 2px 8px rgb(1, 59, 117, 0.15);
        z-index: 1;
        position: relative;
    }

.icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #ebebeb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo-wrapper {
    padding: 5px;
    padding-right: 12px;
    background-color: #ffffff7a;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service_icon {
    font-size: 3.2rem;
    color: #265186;
}

.service_card h5 {
    margin: 10px 0 5px;
    font-size: 1.3rem;
    color: #1c1c1c;
}

.service_card p {
    font-size: 1rem;
    color: #666;
}

/* Generate Ticket */
.confirm-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.confirm-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.confirm-header p {
    font-size: 1.2rem;
    color: black;
}

.confirm-card {
    flex-direction: column;
    background-color: white;
    backdrop-filter: blur(6px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title {
    font-size: 2rem;
    color: #3b3b3b;
    font-weight: 300;
    margin-bottom: 10px;
}

.service-name {
    font-size: 1.8rem;
    margin: 20px 0 40px 0;
    color: black;
    text-align: center;
}

.kiosk-btn, .kiosk-btn-cancel {
    display: flex;
    width: 100%;
    max-width: 300px;
    padding: 6px 14px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1.4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
/*    cursor: pointer;*/
    text-decoration: none !important;
    background-color: #265186;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    border: none;
    text-wrap: wrap;
}

.button_selected:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) inset;
}

.button_selected::after {
    content: "";
    position: absolute;
    background: rgba(365,365,365,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.button_selected:active::after {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
    transition: 0s;
}

.kiosk-btn-cancel {
    background-color: red;
}

.kiosk-btn:hover, .kiosk-btn-cancel:hover {
    color: white;
}

.footer-note {
    gap: 10px;
    color: #265186;
    font-size: 1rem;
}

    .footer-note i {
        font-size: 1.2rem;
    }


@media (max-width: 480px) {
    .confirm-header h1 {
        font-size: 1.8rem;
    }

    .confirm-header p {
        font-size: 1rem;
    }

    .service-name {
        font-size: 1.5rem;
    }

    .accept_btn,
    .cancel_btn {
        font-size: 0.95rem;
        height: 45px;
    }
}

/*Modal*/
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal_object {
    background: white;
    padding: 60px 100px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.loader {
    margin-bottom: 40px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #21E90F;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/******************** Teller ********************/
.teller-body {
    position: relative;
    z-index: 1;
}

.teller-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/Qflow tran.png') no-repeat center center;
    background-size: contain;
    opacity: 0.08;
    filter: blur(6px);
    z-index: 0;
    pointer-events: none;
    background-attachment: fixed
}

.teller_container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    position: fixed;

}

.teller-btn {
    height: 60px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.4rem;
}

.teller-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.teller-icon {
    font-size: 1.5rem;
    margin-right: 5px;
}

.ticket-container {
    background-color: #336dd524; /* semi-transparent brand blue */
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), /* soft all-around */
    0 8px 16px rgba(0, 0, 0, 0.2); /* more prominent bottom shadow */
    backdrop-filter: blur(6px);
}

.up-tickets-bar {
    background-color: #a8cfff0f; /* translucent blue tint */
    border-left: 3px solid #67abff;
    border-top: 2px solid #67abffd6;
    border-bottom: 2px solid #67abffd6;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    box-shadow: -6px 0 10px rgba(38, 81, 134, 0.15); /* soft glowing blue shadow */
    backdrop-filter: blur(10px); /* frosted glass look */
}

.up-tickets-container {
    height: 560px;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #67abff transparent;
}

.up-ticket-pill {
    height: 5%;
    width: 80%;
    display: flex;
    border-radius: 15px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), /* soft all-around */
    0 6px 12px rgba(0, 0, 0, 0.15); /* more prominent bottom shadow */
}

.up-ticket {
    color: black;
    font-size: 20px;
    text-align: center;
    margin-bottom: 0;
    font-weight: 600;
}

@media (max-width: 1496px) {
    .teller_container {
        position: relative;
    }
}



    /***************DataTables***************/
    .div.dt-buttons div.dropdown-menu .dt-button {
        color: var(--primary-colour);
    }

    .dropdown-item {
        color: var(--primary-colour);
        padding: 8px 20px;
        transition: all 0.2s ease;
    }

        .dropdown-item:hover, .dropdown-item:focus {
            background-color: rgba(255, 204, 0, 0.1);
            color: var(--primary-colour);
        }

    .dropdown-divider {
        border-top: 1px solid var(--primary-gray);
        margin: 8px 0;
    }

    .page-item.active .page-link {
        background-color: var(--dark-blue);
        border-color: var(--dark-blue);
    }

    .pagination .page-link {
        color: var(--dark-blue);
    }

    .datatable_wrapper {
        margin-top: 60px;
    }

    /* Data tables  export buttons*/
    div.dt-buttons.btn-group.flex-wrap {
        gap: 1rem;
    }

        div.dt-buttons.btn-group.flex-wrap > button.btn,
        div.dt-buttons.btn-group.flex-wrap > div > button.buttons-collection {
            background-color: var(--secondary-colour) !important;
            border-color: var(--secondary-colour);
            border-radius: .5rem;
        }