#calendar {
    --fc-button-active-bg-color: #15bcd3; /*#40bfff;*/
    --fc-button-active-border-color: #15bcd3; /*#40bfff;*/

    --fc-button-bg-color: transparent; /*#15bcd3;*/
    --fc-button-border-color: transparent; /*#15bcd3;*/
}
#calendar2 {
    --fc-button-active-bg-color: #15bcd3; /*#40bfff;*/
    --fc-button-active-border-color: #15bcd3; /*#40bfff;*/

    --fc-button-bg-color: transparent; /*#15bcd3;*/
    --fc-button-border-color: transparent; /*#15bcd3;*/
}

.form-control {
    color: #000 !important;
}

.widget-3 .form-input {
    background-image: url(../../images/avatar-download.png);
}

.list-doctors .timeline .timeline-panel .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* start fix slide footer to bottom */
#main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer {
    margin-top: auto;
}

/* end footer fix */

.nav-header .brand-logo .brand-title {
    max-width: 145px;
    margin-left: 12px;
}

.tabs-navigation .nav-tabs {
    /*width: max-content;*/
    flex-wrap: wrap;
}

.tabs-container {
    display: flex;
    align-items: center;
    position: relative;
}

.scroll-btn {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    position: absolute;
    left: -20px;
    color: #bebebe;
    padding: 0;
    font-size: 19px;
}

.scroll-btn:hover {
    color: #3d4465;
}

.scroll-btn.right {
    left: unset;
    right: -20px;
}

.tabs-navigation {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    position: relative;
}

.tabs-navigation::-webkit-scrollbar {
    display: none;
}

.h-fit {
    height: fit-content;
}

.document-card {
    border: 1px solid #00000015;
    margin-bottom: 10px;
    width: 100%;
    max-width: 700px;
    border-radius: 10px;
    padding: 6px 10px;
}

.document-card p {
    margin-bottom: 0;
}
.fc-state-active {
    background-color: var(--main-color) !important;
    color: #fff !important;
}

.noShowColor {
    background-color: #f00 !important;
}
.completedColor {
    background-color: #0f0 !important;
}

.btn-group-sm > .btn,
.btn-sm,
.vue-patient.btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.navigation .main-menu .has-submenu a {
    color: #000;
}
.copyright p {
    font-size: 10px !important;
}
.btn {
    transition: all 0.3s ease !important;
}
.btn:hover {
    opacity: 0.8;
    transform: translateY(-4px);
    /*box-shadow: 0 8px 25px rgba(0,0,0, 0.6);*/
}
table td,
table th {
    color: #000;
}
#billingModal .modal-content,
#descriptionModal .modal-content {
    box-shadow: 0px 0px 36px -3px #000;
}
#descriptionModal .modal-open .modal .modal-dialog {
    margin-top: 10%;
}
#calendar .fc-view-container a {
    border-radius: 0;
}
#calendar2 .fc-view-container a {
    border-radius: 0;
}

.doctor-legend .doctor-color {
    width: 16px;
    height: 16px;
    display: inline-block;
    border-radius: 3px;
    margin-right: 6px;
}
.patient-profile-image-container .form-input {
    background-image: url(../../images/avatar-download.png);
    background-size: 60%;
}
.patient-profile-image-container {
    height: 185px;
}
.header .top-head .nav-control .left-header ul .nav-link:first-child {
    background-color: #40bfff;
}
.content-body .container-fluid {
    padding-top: 10px;
}
.page-titles {
    padding-bottom: 10px;
}

/* Sidebar styles */
#rightSidebar {
    position: fixed;
    top: 0;
    right: -800px; /* hidden initially */
    width: 800px;
    height: 100%;
    background-color: #f0f3fb;
    border-left: 1px solid #dee2e6;
    transition: right 0.3s ease;
    z-index: 1040;
    padding: 1rem;

    /*overflow-y: auto;*/
}

#rightSidebar .table-container {
    overflow: auto;
}
#rightSidebar.open {
    right: 0;
    box-shadow: 3px 0 35px #000;
}

/* Toggle button inside the sidebar */
#sidebarToggle {
    position: absolute;
    top: 50%;
    left: -28px;
    transform: translateY(-50%);
    border-radius: 5px 0 0 5px;
    /*border: 1px solid #dee2e6;*/
    /*background-color: #ffffff;*/
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

#sidebarToggle .arrow-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

#sidebarToggle.open .arrow-icon {
    transform: rotate(180deg);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 0;
    font-size: 24px;
    background: none;
    border: none;
    color: #000 !important;
    cursor: pointer;
    z-index: 1001;
}
.whatsapp-green {
    color: #25d366;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #d7dae3 !important;
    border-radius: 8px !important;
    padding: 12px 2px !important;
    height: 53px !important;
}
.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    top: 12px !important;
}

#calendar .fc-header-toolbar {
    background: var(--main-color);
    border-radius: 10px 10px 0 0;
    padding: 12px;
}
#calendar2 .fc-header-toolbar {
    background: var(--main-color);
    border-radius: 10px 10px 0 0;
    padding: 12px;
}
.fc .fc-toolbar-title {
    color: #fff;
}
.fc-theme-standard th {
    padding: 2px 0;
}
.fc .fc-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px !important;
    text-transform: capitalize;
    background: rgba(255, 255, 255, 0.3);
    outline: none !important; /* remove focus outline */
}
.fc a {
    color: #555;
}
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    /*background-color: var(--fc-button-hover-bg-color);*/
    background-color: rgba(255, 255, 255, 0.8);
    color: #555555;
}
.fc-theme-standard td,
.fc-theme-standard th {
    border: 1px solid #eef2f4;
}
.fc .fc-timegrid-slot-label-cushion {
    color: rgb(106, 114, 128);
}

.floating-plus {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--main-color); /* Bootstrap primary blue */
    color: white !important;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 90;
    text-decoration: none;
    transition: background-color 0.3s;
}
div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
    background: #e0f5ff;
    border: 0;
}
div.dt-container div.dt-layout-row {
    margin-top: 0;
}
.floating-plus:hover {
    background-color: #40bfff;
}
div.dt-container .dt-search input,
div.dt-container select.dt-input {
    border: 1px solid #d7dae3;
    padding: 0.3rem 0.5rem;
    border-radius: 10px;
}
/* For day cells in dayGrid (month/week view) */
.fc-daygrid-day:hover {
    background-color: rgba(0, 123, 255, 0.1);
    cursor: pointer;
}

/* For time slots in timeGrid (week/day view) */
.fc-timegrid-slot:hover {
    background-color: rgba(0, 123, 255, 0.1);
    cursor: pointer;
}
.fc-daygrid-day,
.fc-timegrid-slot {
    transition: background-color 0.2s ease;
}

.nav-tabs .nav-link.active {
    border-bottom: 2px solid #15bcd3;
    border-color: rgba(21, 188, 211, 0.3);
}

.timeline-container {
    padding: 20px 0;
}
.timeline-history {
    list-style: none;
    padding: 20px 0 20px;
    position: relative;
}
.timeline-history:before {
    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 3px;
    background-color: #eee;
    left: 50%;
    margin-left: -1.5px;
}
.timeline-history li:nth-child(odd) {
    text-align: right;
}
.timeline-history li:nth-child(even) {
    text-align: left;
}
.timeline-history > li {
    margin-bottom: 20px;
    position: relative;
}

.timeline-badge-container {
    position: absolute;
    top: 16px;
    left: 50%;
    margin-left: -25px;
    z-index: 100;
    display: flex;
}

.timeline-history .timeline-title {
    color: #333;
    margin-top: 6px;
    font-size: 16px;
}
.timeline-history .timeline-title span {
    font-size: 10px;
}
.timeline-history li:nth-child(odd) .timeline-body {
    padding-right: 25px;
}
.timeline-history li:nth-child(odd) .timeline-badge-container {
    left: 50%;
}
.timeline-history li:nth-child(even) .timeline-badge-container {
    right: 50%;
    left: initial;
}
.timeline-history li:nth-child(odd) .timeline-title {
    margin-left: 10px;
}
.timeline-history li:nth-child(even) .timeline-title {
    margin-right: 10px;
    margin-left: 10px;
}

.timeline-badge {
    color: #fff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    text-align: center;
    border-radius: 50%;
}
.timeline-panel {
    position: relative;
    width: 46%;
    float: left;
    left: 4%;
    background: #f5f5f5;
    /*border: 1px solid #d4d4d4;*/
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}
.timeline-history > li:nth-child(even) .timeline-panel {
    left: auto;
    right: 4%;
    float: right;
}
.timeline-body > p {
    margin-bottom: 0px;
}
.bg-success {
    background-color: #28a745;
}
.bg-danger {
    background-color: #dc3545;
}
.bg-primary {
    background-color: #007bff;
}
.bg-warning {
    background-color: #ffc107;
}
.bg-secondary {
    background-color: #6c757d;
}
.btn {
    border-radius: 10px;
}

label .fa-info-circle {
    font-size: 16px;
}

table .edit,
table .vue-patient {
    color: var(--main-color);
}
table .delete {
    color: #dc3545;
}
form label {
    margin-bottom: 0;
    font-size: 12px;
}

#payments-history .table-responsive {
    max-height: 300px;
    overflow: auto;
}

.dashboard-cards-container .card-body {
    padding: 10px 20px;
}

/* Chatbot toggle button */
.chatbot-toggle {
    position: fixed;
    bottom: 150px;
    right: -10px;
    background: var(--main-color);
    color: white;
    font-size: 24px;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 98;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 60px;
    height: 60px;
    text-align: center;
}

/* Chatbot window */
.chatbot-container {
    display: none;
    position: fixed;
    bottom: 0px;
    right: 20px;
    width: 400px;
    max-height: 500px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 99;
    flex-direction: column;
}

.chatbot-header {
    background: var(--main-color);
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chatbot {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chatbot-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
    max-height: 400px;
}

.chatbot-body .message {
    margin-bottom: 10px;
}
.chatbot-body .message.bot::before {
    content: "🤖 ";
    margin-right: 5px;
}

.chatbot-body .message.user {
    text-align: right;
    font-style: italic;
    color: var(--main-color);
}

.chatbot-body .message.bot {
    text-align: left;
    color: #333;
}
.chatbot-header #help-chatbot {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    margin-right: 20px;
}

.chatbot-header #help-chatbot:hover {
    color: #000;
}

.chatbot-form {
    display: flex;
    border-top: 1px solid #eee;
}

.chatbot-form input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 14px;
}

.chatbot-form button {
    border: none;
    background: var(--main-color);
    color: white;
    padding: 0 15px;
    cursor: pointer;
}

.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 24px;
    padding: 0 10px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #999;
    border-radius: 50%;
    margin: 0 2px;
    display: inline-block;
    animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Loader Styles */
#ajaxloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    top: 0;
    left: 0;
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes typingBounce {
    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .timeline-badge-container {
        margin: 0;
        width: 100%;
        text-align: center;
        display: block;
    }
    .timeline-badge {
        display: inline-block;
        width: 30px;
        height: 30px;
        line-height: 33px;
        font-size: 10px;
        top: -7px;
        position: relative;
    }
    .timeline-history .timeline-title {
        display: inline-block;
        font-size: 12px;
        background: #fff;
    }
    .timeline-badge-container {
        position: static;
    }
    .timeline-panel {
        float: none;
        width: 100%;
    }
    .timeline-history li {
        text-align: left !important;
    }

    #rightSidebar {
        right: -100%; /* hidden initially */
        width: 100%;
    }
    label {
        margin-bottom: 0.2em;
    }
    .modal-header {
        padding: 0.5rem 0.8rem;
    }
    .modal-body {
        padding: 0.5rem 0.8rem;
    }
    .modal-footer {
        padding: 0.875rem 14px;
    }

    .form-control {
        font-size: 13px;
        height: 42px;
    }

    .card-body {
        padding: 10px 20px;
    }

    /*.calendar-page .card-body {
        padding: 0 10px;
    }
    .calendar-page .fc-toolbar .fc-center {
        display: block;
        float: none;
        text-align: center;
        clear: both;
        width: 100%;
    }
    #calendar .fc-header-toolbar .fc-center h2 {
        float:none;clear:both;
        padding-top:5px;
    }

    .calendar-page .fc-month-button{
        display:none!important;
    }*/

    [data-sidebar-style="overlay"] .header .top-head {
        background: transparent;
    }
    .brand-logo {
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
    }
    .content-body .container-fluid {
        padding-top: 5px;
    }
    .page-titles {
        padding-bottom: 5px;
    }
    [data-sidebar-style="overlay"] .left-panel.collapsed {
        background: #fff;
        box-shadow: 1px 24px 38px #000 !important;
    }
    .calendar-page {
        /*height: 90vh;*/
        /*overflow: hidden;*/
    }
    .widget-7 .account-control .account-dropdown-form {
        top: 0;
    }

    .calendar-page #calendar {
        height: calc(100vh); /* adjust based on headers/padding */
    }
    .calendar-page #calendar2 {
        height: calc(100vh); /* adjust based on headers/padding */
    }

    /*.calendar-page*/
    /*.calendar-page .fc-view-container*/
    /*.calendar-page .fc-view */
     {
        height: 100%;
    }

    .nav-link {
        padding: 0.3rem 0.3rem;
        font-size: 13px;
    }

    .fc .fc-toolbar-title {
        margin: 5px;
    }
    .fc .fc-button {
        padding: 5px;
        font-size: 12px;
    }

    .fc-header-toolbar {
        display: flex;
        flex-wrap: wrap; /* allow wrapping */
        align-items: center;
        text-align: center;
        padding-top: 2px;
        padding-bottom: 2px;
    }

    /* First chunk (left) */
    .fc-header-toolbar > .fc-toolbar-chunk:first-child {
        order: 0; /* first visually */
        flex: 1 1 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    /* Last chunk (right) */
    .fc-header-toolbar > .fc-toolbar-chunk:last-child {
        order: 1; /* second visually */
        flex: 1 1 0;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    /* Middle chunk (date) */
    .fc-header-toolbar > .fc-toolbar-chunk:nth-child(2) {
        order: 2; /* last visually */
        flex-basis: 100%; /* force to new line */
        text-align: center;
        margin-top: 5px;
    }
    .fc .fc-toolbar-title {
        margin: 0;
        padding-top: 5px;
        font-size: 18px;
    }
    #calendar .fc-header-toolbar {
        padding: 10px 0;
        padding-top: 5px;
    }
    #calendar2 .fc-header-toolbar {
        padding: 10px 0;
        padding-top: 5px;
    }
    .calendar-container {
        padding: 0;
    }
    .chatbot-container {
        width: 350px;
        right: 0px;
    }
}

/*
    #calendar .fc-header-toolbar .fc-left .fc-button-group button{
        padding:5px 7px;
    }
    #calendar .fc-header-toolbar .fc-left .fc-today-button {
        padding:0.375rem 0.75rem;
    }
    #calendar .fc-header-toolbar .fc-right .fc-button-group button{
        padding:0.375rem 1rem;
    }
    */
