.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    flex-wrap: nowrap; /* Prevents wrapping */
    overflow-x: auto; /* Allows scrolling if necessary */
}

.page-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
    position: relative;
    min-width: 70px; /* Ensures proper width */
}

.page-link {
    text-decoration: none;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 14px;
    white-space: nowrap;
    /*background-color: #f0f0f0;*/
    /*transition: all 0.3s ease-in-out;*/
}



#desktopdates .page-item.active .page-link {
    font-weight: bold;
    color: white;
    background-color: #007bff;
    border-radius: 10px;
    min-width: 80px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}




li.page-item.next.desktop {
    display: inline-block;
}

li.page-item.next.mobile {
    display: none;
}

li.page-item.previous.desktop {
    display: inline-block;
}

li.page-item.previous.mobile {
    display: none;
}


#kt_app_header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 105; /* Ensure it's above other content */
}

body {
    padding-top: 60px; /* Adjust based on header height */
}

.otp-input {
    font-size: 1.5rem;
    height: 60px;
    width: 50px;
    padding: 0;
    line-height: 1.4;
    text-align: center;
    border: 2px solid #0d6efd;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}

#kt_datatable_example_1 th,
#kt_datatable_example_1 td {
    text-align: center;     /* center all columns */
    vertical-align: middle; /* middle align vertically */
}

#kt_datatable_example_1 th:last-child,
#kt_datatable_example_1 td:last-child {
    text-align: center; /* or right if you want Actions aligned differently */
}



@media (min-width: 992px) {
    #appointmentDetailsCard {
        position: sticky;
        top:70px;
        z-index: 1020; /* keep it above other items */
        background-color: #f5f8fa;
        margin: 0;

    }

}

.staff-divider {
    border-bottom: 2px solid #000000;
    width: 35%;
    margin: 0 auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#first_available.form-check-input {
    width: 3rem;
    height: 1.6rem;
    cursor: pointer;
    border: 2px solid #444;   /* Dark outline */
    box-shadow: 0 0 4px rgba(0,0,0,0.3); /* Subtle shadow */
}

/* Checked state with a stronger outline */
#first_available.form-check-input:checked {
    background-color: #0d6efd;  /* Green when ON */
    border-color: #0d6efd;      /* Darker green border */
    box-shadow: 0 0 6px rgb(42, 79, 205);
}

/* Responsive Fixes */
@media (max-width: 768px) {


    .pagination {
        justify-content: space-between;
        width: 100%;
        padding: 0 10px;
    }

    .page-item {
        flex: 1;
        text-align: center;
    }

    .page-item:not(.active):not(.previous):not(.next) {
        display: none;
    }



    li.page-item.next.desktop {
        display: none;
    }

    li.page-item.next.mobile {
        display: inline-block;
    }

    li.page-item.previous.desktop {
        display: none;
    }

    li.page-item.previous.mobile {
        display: inline-block;
    }


    .order-mobile-first {
        order: -1;
    }

    #appointmentDetailsCard {
        position: fixed !important;
        top: 60px; /* below header */
        left: 0;
        right: 0;
        z-index: 1050;
        background-color: #f5f8fa;
        padding: 0.5rem 0.75rem;
        margin: 0;
        border-radius: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    }

    #appointmentDetailsCard .card {
        margin: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    #appointmentDetailsCard .card-body {
        padding: 0.5rem; /* was 0 */
    }

    #appointmentDetailsCard .fs-2 {
        font-size: 1rem !important;
        margin: 0.25rem 0;
    }

    body {
        padding-top: 30px; /* 70 (header) + ~60 (card) */
    }

    #form_block {
        padding-top: 90px; /* 70 (header) + ~60 (card) */
    }

    #appt_icon {
        display: none;
    }


    .mobile-max-width {
        max-width: 400px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .mobile-container-wrapper {
        max-width: 400px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 10px;
        padding-right: 10px;
    }

    .mobile-container-wrapper .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #appointmentDetailsCard .fs-1 {
        font-size: 1.25rem !important; /* override big headings */
    }

    #appointmentDetailsCard .fs-6 {
        font-size: 0.85rem !important;
    }

    #appointmentDetailsCard .text-gray-800 {
        font-weight: 600; /* remove extra bold on small screen */
    }


    #appointmentDetailsCard .px-4 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    #appointmentDetailsCard .py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    #appointmentDetailsCard .me-6 {
        margin-right: 0.5rem !important;
    }

    #appointmentDetailsCard .mb-3 {
        margin-bottom: 0.5rem !important;
    }

    #appointmentDetailsCard .mb-5 {
        margin-bottom: 0.5rem !important;
    }

    #header_address {
        display: none !important;
    }

    .timeoptionbuttons{
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    .responsive-embed {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
        overflow: hidden;
        max-width: 100vw;
        margin: 1em 0;
    }

    .responsive-embed iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }
    /*#practice_name_header_title {
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }*/

    #practice_name_header_title {
        font-size: 14px;             /* smaller text on phone */
        display: -webkit-box;        /* enable flexbox for clamp */
        -webkit-line-clamp: 2;       /* max 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;            /* hide overflow text */
        text-overflow: ellipsis;     /* add ... at the end */
        line-height: 1.2;            /* tighter line spacing */
        max-height: calc(1.2em * 2); /* match 2 lines height */
    }

    #kt_datatable_example_1 th:nth-child(4),
    #kt_datatable_example_1 td:nth-child(4) {
        display: none;
    }

}
