/* custom style  */
html,
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    color: #000000;
}

[data-bs-theme="dark"] .main-content {
    background: none !important;
}

p {
    margin-bottom: 16px;
}

.dashboard-stat {
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        /* Top */
        0 4px 9px rgba(0, 0, 0, 0.3),
        /* Bottom */
        2px 0 6px rgba(0, 0, 0, 0.12);
    /* Right */
}

*,
*::before,
*::after {
    font-family: inherit;
}

.table>:not(caption)>*>* {
    color: #000000;
    background-color: #f9f9f9;
}

th input {
    border-radius: 4px;
    border: 1px solid #545756;
    background-color: var(--bs-table-bg);
}

td button {
    padding: 0px 6px !important;
}

.wrapper {
    position: relative;
}

.dashboard-stat {
    position: relative;
    display: block;
    margin: 0 0 25px;
    overflow: hidden;
    border-radius: 4px;
    padding: 15px;

    .visual {
        width: 80px;
        height: 80px;
        display: block;
        float: left;
        padding-top: 10px;
        padding-left: 15px;
        margin-bottom: 15px;
        font-size: 35px;
        line-height: 35px;

        >i {
            margin-left: -15px;
            font-size: 110px;
            line-height: 110px;
            color: #fff;
            opacity: .1;
        }
    }

    .details {
        position: absolute;
        right: 15px;
        padding-right: 15px;
        color: #fff;

        .number {
            padding-top: 25px;
            text-align: right;
            font-size: 34px;
            line-height: 36px;
            letter-spacing: -1px;
            margin-bottom: 0;
            font-weight: 300;

            .desc {
                text-transform: capitalize;
                text-align: right;
                font-size: 16px;
                letter-spacing: 0;
                font-weight: 300;
            }
        }
    }

    &.blue {
        background: linear-gradient(to right, #0170E0, #70c2f4);
    }

    &.red {
        background: linear-gradient(to right, #0170E0, #70c2f4);
    }

    &.purple {
        background: linear-gradient(to right, #0170E0, #70c2f4);
    }

    &.hoki {
        background: linear-gradient(to right, #35b411, #067d0c);
    }

    &.down {
        background: linear-gradient(to right, #1a1c1a, #5e6e5e);
    }
}

.bg-main {
    background-color: rgb(120 194 237) !important;
}

@media (max-width: 800px) and (min-width: 300px) {
    .container {
        width: auto;
    }
}

.transparent-box {
    background-color: rgb(255 255 255);
    /* White with transparency */
    border-radius: 10px;
    /* Rounded corners */
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    /* Slight shadow for depth */
    backdrop-filter: blur(10px);
    /* Optional: adds blur effect behind the box */
    width: 100%;
}

.bg-primary {
    background-color: rgb(0 83 210) !important;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: #0069de;
}

/* custom css  */
/* Centered Error Messages */
.alert-container {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: 50%;
    max-width: 600px;
    text-align: center;
}

.navbar-brand-box {
    padding: 0 1.9rem !important;
    width: 240px !important;
}

body.body[data-sidebar-size="sm"] .navbar-brand-box {
    width: 70px !important;
}

/* sidebar opens on hover changes */
.vertical-menu {
    top: 0 !important;
    position: fixed;
    height: 100vh;
    z-index: 1030;
    width: 240px;
    font-family: 'Roboto', sans-serif;
    /* background: #001e5a; */
    background: linear-gradient(to right, #001e5a, #2759af);
}

#side-menu {
    padding: 0;
    margin: 0;
}

#side-menu>li {
    list-style: none;
    border-radius: 0 25px 25px 0;
    transition: background 0.2s ease-in-out;
}

#side-menu>li>a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    color: #202124;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;
}

#side-menu>li>a:hover {
    background-color: #dfdfdf;
    border-radius: 0 25px 25px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

#side-menu>li.active>a,
#side-menu>li>a.active {
    background-color: #b6c8e6;
    font-weight: bold;
    color: #1a73e8;
}

#side-menu i[data-feather] {
    margin-right: 16px;
    color: #5f6368;
    width: 20px;
    height: 20px;
}

#side-menu span[data-key] {
    flex-grow: 1;
}

#side-menu .count {
    margin-left: auto;
    font-size: 12px;
    color: #5f6368;
}

/* non hover changes  */
#sidebar-menu ul li a {
    color: #fff !important;
}

#sidebar-menu ul li a:hover {
    color: #1a73e8 !important;
}

#sidebar-menu ul li a svg {
    color: white;
}

/* Ends sidebar opens on hover changes */

/* for table header color change  */
table thead {
    background-color: #001e5a !important;
}

table thead th {
    background-color: #001e5a !important;
    color: #ffffff !important;
    font-weight: 600;
}


/* sidebar footer  */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px 0;
    background: linear-gradient(to right, #001e5a, #2759af);
    /* match sidebar bg */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-section img {
    border: 2px solid #ffffff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.profile-section .username {
    font-size: 14px;
    margin-top: 5px;
}

.logout-icon i {
    stroke: white;
    width: 20px;
    height: 20px;
}

body[data-sidebar-size=sm] .vertical-menu {
    position: fixed;
}

/* sidebar fixes  */
/* .sidebar-footer-container {
    bottom: 70px;
    left: 0;
    right: 0;
    background: #001e5a;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-left: 10px;
} */
.sidebar-footer-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to right, #001e5a, #2759af);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    padding-left: 10px;
    transition: all 0.2s ease;
}

.vertical-menu.collapsed .sidebar-footer-container {
    width: 100%;
    align-items: center;
    padding-left: 0;
    position: relative;
}

.sidebar-footer-icons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.sidebar-footer-icons .btn {
    margin-bottom: 0;
}

.sidebar-footer-profile {
    text-align: center;
    /* padding: 0.5rem; */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-left: 0px;
    padding-bottom: 14px;
}

.header-item {
    height: 50px;
}

/* for users table responsive  */
.users-table {
    min-width: 800px;
    width: 100%;
}

/* Sidebar Toggle Fix - when sidebar is open */
.sidebar-open-toggle-fix {
    position: fixed !important;
    top: 12px;
    left: 16px;
    z-index: 1052 !important;
    /* Stay above the sidebar */
}

body:not([data-sidebar-size=sm]) #vertical-menu-btn {
    margin-left: 1px !important;
    margin-right: 0px;
    margin-top: 3px;
}

.body[data-sidebar-size="sm"] .gmail-toggle-btn,
body[data-sidebar-size="lg"] .gmail-toggle-btn,
body.sidebar-enable .gmail-toggle-btn {
    margin-left: 1px !important;
    margin-right: 0px !important;
    margin-top: 3px !important;
}

.py-2 {
    padding-top: .9rem !important;
    padding-bottom: 0.1rem !important;
}

.main-content {
    margin-left: 240px;
    /* Adjust to your sidebar width */
    padding: 0px 20px;
}

.page-content {
    padding-top: 0px;
}

.gmail-toggle-btn {
    width: 36px;
    height: 36px;
    background-color: #f1f3f4;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    position: absolute;
    top: 12px;
    left: 16px;
    z-index: 1051;
    /* Stay above sidebar */
}

/* On hover */
.gmail-toggle-btn:hover {
    background-color: #e0e0e0;
}

.gmail-toggle-btn i {
    font-size: 18px;
    color: #5f6368;
}

.gmail-toggle-btn.is-active {
    background-color: #d2e3fc;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
}

.gmail-toggle-btn.is-active i {
    color: #1967d2;
}

/* logo adjustments  */
.logo-sm {
    display: inline-block;
}

.logo-lg {
    display: none;
}

/* When the sidebar is expanded */
.vertical-menu.vertical-menu-expanded .logo-sm {
    display: none;
}

.vertical-menu.vertical-menu-expanded .logo-lg {
    display: inline-block;
}

/* Hide large logo when sidebar is small */
body[data-sidebar-size="sm"] .logo-lg {
    display: none !important;
}

/* Hide small logo when sidebar is large */
body[data-sidebar-size="lg"] .logo-sm {
    display: none !important;
}

/* Ensure logos align under the toggle */
.logo-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo-container img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 45px;
    transition: none !important;
    /* Prevents sudden resizing during page load */
}

body[data-sidebar-size="sm"] .logo-lg {
    display: none !important;
}

body[data-sidebar-size="sm"] .logo-sm {
    display: block !important;
}

body[data-sidebar-size="lg"] .logo-sm {
    display: none !important;
}

body[data-sidebar-size="lg"] .logo-lg {
    display: block !important;
}

/* Ensure sidebar is visible in mobile */
@media (max-width: 991.98px) {
    .vertical-menu {
        display: block !important;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1050;
        width: 240px;
        background-color: #001e5a;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    body.sidebar-enable .vertical-menu {
        transform: translateX(0);
        /* slide in */
    }

    #vertical-menu-btn {
        display: block !important;
        z-index: 1060;
    }

}

#sidebar-menu {
    padding: 10px 0 4px 0;
}

/* for the logo loading issue  */
.logo-lg,
.logo-sm {
    visibility: hidden;
}

body[data-sidebar-size="sm"] .logo-sm,
body[data-sidebar-size="lg"] .logo-lg {
    visibility: visible;
}

body[data-sidebar-size=sm] .vertical-menu #sidebar-menu>ul>li>a {
    padding: 11px 20px;
}

/* Base dark theme override for .table-light */
[data-bs-theme="dark"] .table-light> :not(caption)>*>* {
    color: #FFFFFF !important;
    background-color: #000000 !important;
}

/* Hover state with light background and black text */
[data-bs-theme="dark"] .table-light tbody tr:hover>* {
    background-color: #f1f1f1 !important;
    /* Light background on hover */
    color: rgb(255, 255, 255) !important;
    /* Black text on hover */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode striped row hover background */
[data-bs-theme="dark"] .table-light.table-striped tbody tr:nth-of-type(odd):hover>* {
    background-color: #e0e0e0 !important;
    /* Light gray hover */
    color: black !important;
    /* Black text */
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-bs-theme="dark"] .sidebar-footer-container {
    background: none !important;
}

@media (max-width: 991px) {
    #vertical-menu-btn {
        display: none !important;
    }

    .logo-container img {
        margin-top: 0px !important;
    }

    .main-content {
        padding: 0px;
        padding-top: 19px;
    }



    .vertical-menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        background: #001e5a;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: width 0.3s ease;
        /* Smooth width transition */
        width: 70px;
        /* Default sm state */
    }

    body.sidebar-enable .vertical-menu {
        width: 70px;
        /* sm state visible */
    }

    body[data-sidebar-size="lg"] .vertical-menu {
        width: 200px;
        /* lg state */
    }

    body {
        padding-left: 70px;
        /* Default padding for sm state */
    }

    body[data-sidebar-size="lg"] {
        padding-left: 200px;
        /* Padding for lg state */
    }
}

.status-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
}

.status-icon1 {
    width: 30px;
    height: 30px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
}

/* for showing the pending and sucess status color in rows  */

/* for the table record fixes */
.user-list-card {
    /* min-height: 600px; */
    margin-bottom: 0px;
    /* Space for footer */
}

/* Scrollable table */
.users-table-wrapper {
    /* max-height: 400px; */
    /* overflow-y: auto; */
    border-radius: 0.375rem;
    overflow-x: auto;
    width: 100%;


}

.toggle-switch {
    margin-bottom: 0px !important;
}

.sticky-header th {
    position: sticky !important;
    top: 0;
    z-index: 10;
}

/* Pagination styling */
.pagination-wrapper {
    display: flex;
    justify-content: center;
}

/* Fix footer to bottom */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}


body[data-sidebar-size="sm"] {
    min-height: 100vh !important;
    /* Full viewport height only */
}

/* status toggle  */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: red;
    transition: 0.4s;
    border-radius: 25px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: green;
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.status-text {
    font-weight: bold;
    margin-left: 5px;
}

.disable-btn {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

body[data-bs-theme="dark"] .table-hover tbody tr.table-danger:hover,
body[data-bs-theme="dark"] .table-hover tbody tr.table-danger:hover *,
body[data-bs-theme="dark"] .table-hover tbody tr.table-success:hover,
body[data-bs-theme="dark"] .table-hover tbody tr.table-success:hover *,
body[data-bs-theme="dark"] .table-hover tbody tr.table-warning:hover,
body[data-bs-theme="dark"] .table-hover tbody tr.table-warning:hover * {
    color: #ffffff !important;
}

.footer {
    padding: 8px calc(1.5rem / 2);
    height: 35px;
    background-color: var(--bs-footer-bg);
    color: var(--bs-footer-color);
    border-top: 1px solid var(--bs-border-color);
}

[data-bs-theme=dark][data-sidebar=dark] {
    --bs-sidebar-dark-bg: #0f1110;
    --bs-sidebar-dark-menu-item-color: #ffffff;
    --bs-sidebar-dark-menu-sub-item-color: #ffffff;
    --bs-sidebar-dark-menu-item-icon-color: #ffffff;
    --bs-sidebar-dark-menu-item-hover-color: #000000;
    --bs-sidebar-dark-menu-item-active-color: #cd2c34;
}

[data-bs-theme=dark] {
    --bs-body-bg: #000000;
    --bs-secondary-bg: #0e0e0e;
    --bs-footer-bg: #0c0c0c;
    --bs-body-color: #ffffff;
    --bs-tertiary-bg: #121212;
}

[data-bs-theme=dark] .table-light {
    --bs-table-hover-bg: #021dff;
}

/* Table Fixed css start  */

/* Table Fixed css start  */

.fixed-top-doctor {
    position: fixed;
    top: 25px;
    width: 92%;
}

.scrollable-table-doctor {
    position: absolute;
    top: 165px;
    bottom: 55px;
    overflow-y: auto;
    width: 92%;
    scrollbar-width: none;
    border-radius: 4px;
}

.fixed-top-center {
    top: 25px;

}



.fixed-top-modality {
    top: 25px;
}

.scrollable-table-modality {
    position: absolute;
    top: 165px;
    bottom: 55px;
    overflow-y: auto;
    width: 92%;
    scrollbar-width: none;
    border-radius: 4px;
}

.fixed-top-section {
    position: fixed;
    top: 25px;
    width: 98%;
}

/* When sidebar is expanded (lg) */
body[data-sidebar-size="lg"] .fixed-top-section {
    width: 97%;
}

.scrollable-table-section {
    position: absolute;
    top: 180px;
    bottom: 37px;
    overflow-y: auto;
    /* width: 92%; */
    scrollbar-width: none;
    border-radius: 4px;
}

/* When sidebar is small */
body[data-sidebar-size="sm"] .scrollable-table-section {
    width: 90%;
}

/* When sidebar is large */
body[data-sidebar-size="lg"] .scrollable-table-section {
    width: 80%;
}

/* When sidebar is small */
body[data-sidebar-size="sm"] .scrollable-table-section1 {
    width: 92%;
}

/* When sidebar is large */
body[data-sidebar-size="lg"] .scrollable-table-section1 {
    width: 82.5%;
}

.fixed-top-cases {
    position: fixed;
    top: 25px;
    width: 92%;
}

.scrollable-table-cases {
    position: absolute;
    top: 225px;
    bottom: 55px;
    overflow-y: auto;
    width: 92%;
    scrollbar-width: none;
    border-radius: 4px;
}

/* commen css for all  */
.users-table-wrapper {
    height: 100%;
    overflow-y: auto;
    border-radius: 0.375rem;
    position: relative;
    scrollbar-width: none;
}

.users-table {
    border-collapse: collapse;
    width: 100%;
}

.user-table-list td {
    /* padding: 4px 2px !important; */
    font-size: 12px;
}

.user-list-card {
    box-shadow: 0px 0px 5px 3px #8080805e;

}

@media (max-width: 550px) {

    .fixed-top-doctor {
        position: fixed;
        top: 5px;
        width: 85%;
    }

    .scrollable-table-doctor {
        position: absolute;
        top: 240px;
        bottom: 5px;
        overflow-y: auto;
        width: 92%;
        scrollbar-width: none;
        border-radius: 4px;
    }

    .fixed-top-center {
        position: fixed;
        top: 2px;
        width: 85%;
    }

    .scrollable-table-center {
        position: absolute;
        top: 300px;
        bottom: 5px;
        overflow-y: auto;
        width: 92%;
        scrollbar-width: none;
        border-radius: 4px;
    }

    .fixed-top-modality {
        position: fixed;
        top: 5px;
        width: 85%;
    }

    .scrollable-table-modality {
        position: absolute;
        top: 180px;
        bottom: 5px;
        overflow-y: auto;
        width: 92%;
        scrollbar-width: none;
        border-radius: 4px;
    }

    .fixed-top-cases {
        position: fixed;
        top: 5px;
        width: 75%;
    }

    .scrollable-table-cases {
        position: absolute;
        top: 280px;
        bottom: 5px;
        overflow-y: auto;
        width: 92%;
        scrollbar-width: none;
        border-radius: 4px;
    }

    /* .fixed-top-section {
        top: 10px;
        width: 75%;
    } */

    .userlist-filter {
        padding: 5px;
    }

    .userlist-filter input {
        padding: 7px 5px;
    }

    .user-table-list td {
        padding: 5px 5px !important;
        font-size: 12px;
    }

    .user-table-list th {
        padding: 5px 5px !important;
    }

    .fixed-top-section a {
        font-size: 12px;
    }

    .fixed-top-section select {
        font-size: 12px;
    }

    .fixed-top-section input {
        font-size: 12px;
    }

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

    .fixed-top-cases a {
        font-size: 12px;
    }

    .fixed-top-cases label {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .fixed-top-cases select {
        font-size: 12px;
    }

    .fixed-top-cases input {
        font-size: 12px;
    }
}

/* Table Fixed css end  */

.users-table-wrapper {
    max-height: calc(100vh - 280px);
    /* adjust height as needed */
    overflow-y: auto;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: linear-gradient(145deg, #6a11cb, #2575fc);
    /* Gradient */
    --bs-btn-border-color: #4a0dbd;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: linear-gradient(145deg, #5a0fba, #1d63e4);
    /* Darker on hover */
    --bs-btn-hover-border-color: #3d0f95;
    --bs-btn-focus-shadow-rgb: 90, 115, 245;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: linear-gradient(145deg, #4e0ca3, #1a57c7);
    --bs-btn-active-border-color: #350c7d;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.25);
    /* More depth */
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #6a11cb;
    --bs-btn-disabled-border-color: #6a11cb;

    color: var(--bs-btn-color);
    background: var(--bs-btn-bg);
    border: 1px solid var(--bs-btn-border-color);
    padding: 0.5rem 1rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(38, 38, 128, 0.3);
    /* 3D shadow */
    transition: all 0.2s ease-in-out;
    border-radius: 0.5rem;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
    box-shadow: 0 6px 14px rgba(38, 38, 128, 0.4);
    /* Enhanced 3D on hover */
}

.btn-primary:active {
    background: var(--bs-btn-active-bg);
    border-color: var(--bs-btn-active-border-color);
    box-shadow: var(--bs-btn-active-shadow);
}

body[data-bs-theme="dark"] label {
    color: #fff !important;
}

body[data-bs-theme="dark"] .table-success {
    --bs-table-hover-bg: #03c904d6;
}

body[data-bs-theme="dark"] .table-warning {
    --bs-table-hover-bg: #ed5c08;
}

.table>:not(caption)>*>* {
    padding: 4px 8px 4px 8px;
}

.table th,
.table td {
    vertical-align: middle;
    /* align text vertically in the middle */
}

body[data-bs-theme="light"] .user-list-card {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Preloader Overlay */
.pace-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* darker fade */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;

    /* Diagonal Lines */
    background-image: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.05) 0,
            rgba(255, 255, 255, 0.05) 20px,
            transparent 20px,
            transparent 40px);

    opacity: 1;
    transition: opacity 0.8s ease;
    /* fade-out transition */
}

/* When hiding */
.pace-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Spinner Style */
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #5156be;
    /* brand color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spin Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Dark theme .btn-success with stronger gradient, no glow */
body[data-bs-theme="dark"] .btn-success {
    background: linear-gradient(135deg, #00ff95, #00c851, #009e60);
    border: none;
    color: #fff;
    transition: all 0.3s ease;
}

body[data-bs-theme="dark"] .btn-success:hover {
    background: linear-gradient(135deg, #00ffa7, #00d26a, #00b35a);
}

body[data-bs-theme="dark"] .btn-success:active {
    background: linear-gradient(135deg, #00e68a, #00b85a, #008f47);
}

/* Apply only in light theme */
[data-bs-theme="light"] .card {
    background-color: #f4f4fa !important;
    box-shadow: none !important;
    border: 1px solid #e0e0e0;
    /* subtle border */
}

[data-bs-theme="dark"] .table-danger {
    --bs-table-hover-bg: #ff0606;
}

/* Dark theme only */
[data-bs-theme="dark"] .table-primary {
    --bs-table-hover-bg: #000044;
}

/* Dark theme only */
[data-bs-theme="dark"] .table-info {
    --bs-table-hover-bg: #2f022f;
}


.text-dark-red {
    color: #c00a0aff !important;
}

/* Scroll only inside the modal body */
#addPatientModal .modal-dialog {
    height: calc(100vh - 2rem);
    /* keep header/footer visible */
}

/* style.css (or resources/css/app.css) */
.report-template .ms-select {
    position: relative;
}

.report-template .ms-select .ms-display {
    cursor: pointer;
    background: #fff;
}

.ms-caret {
    opacity: .65;
}

.report-template .ms-select .ms-menu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    max-height: 260px;
    overflow-y: auto;
    z-index: 1055;
}

.report-template .ms-select.open .ms-menu {
    display: block;
}

.report-template .ms-select .ms-list {
    padding: .25rem .5rem .75rem .5rem;
}

.report-template .ms-select .ms-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .375rem .5rem;
    border-radius: .375rem;
    cursor: pointer;
}

.report-template .ms-select .ms-item:hover {
    background: #f8f9fa;
}

.report-template .ms-select .ms-item input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

.report-template .ms-summary {
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-template .caret {
    font-size: .9rem;
    margin-left: .5rem;
}

.report-template .ms-ph-wrap {
    max-height: 140px;
    overflow-y: auto;
}

.ms-controls {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding: .5rem;
    border-bottom: 1px solid #eee;
}

.ms-items {
    padding: .25rem .5rem;
}

.ms-items .form-check {
    padding: .25rem .25rem;
}

.ms-footer {
    padding: .5rem;
    border-top: 1px solid #eee;
}


.ck-live-preview {
    border: 1px solid #dee2e6;
    border-top: 0;
    border-radius: 0 0 .5rem .5rem;
    background: #fff;
    max-height: 360px;
    overflow: auto;
}

.ck-live-preview iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

/* Make the modal tall and let body scroll inside */
#uploadReportModal .modal-dialog.modal-tall .modal-content {
    height: 90vh;
    /* increase/decrease as you like (85–95vh works well) */
    max-height: 90vh;
}

#uploadReportModal .modal-dialog.modal-tall .modal-body {
    overflow-y: auto;
    /* scroll only the body */
}

/* Optional: tighter margins so you use more viewport height */
#uploadReportModal .modal-dialog {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Mobile-friendly: use dynamic viewport on mobile browsers */
@supports (height: 1dvh) {
    #uploadReportModal .modal-dialog.modal-tall .modal-content {
        height: 90dvh;
        max-height: 90dvh;
    }
}

.modal-busy-overlay {
    position: absolute;
    inset: 0;
    z-index: 1055;
    /* above modal content */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.modal-busy-overlay.d-none {
    display: none !important;
}

.modal-busy-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(1px);
}

.modal-busy-spinner {
    position: relative;
    z-index: 1;
    text-align: center;
}


/* put in your app css */
.tech-view .ck-toolbar {
    display: none !important;
}

/* Editor in the modal: force readable colors */
#uploadReportModal .ck-content {
    background: #fff;
    color: #111;
}

#uploadReportModal .ck-content * {
    color: inherit !important;
    background-color: transparent !important;
}

.download-panel-row .table-sm th,
.download-panel-row .table-sm td {
    padding: .25rem .5rem;
}

.download-panel-row .download-body {
    min-height: 56px;
}

/* Download/Delete green button */
.dl-del-btn {
    /* match Bootstrap .btn-sm height */
    height: 21px;
    /* tweak to 30px if your other green button looks taller */
    padding: 0 .5rem;
    /* same side padding as .btn-sm */
    line-height: 1;
    /* keep icons centered vertically */
}

.dl-del-btn i {
    font-size: 0.90rem;
    /* icon size similar to your single-icon button */
}

.dl-del-btn .dl-del-divider {
    display: inline-block;
    width: 1px;
    height: 1rem;
    /* divider size aligned with icons */
    background: rgba(255, 255, 255, .65);
}

/* icon-only buttons: no bg, no focus ring shadow */
.btn.bg-transparent.border-0.p-0 {
    box-shadow: none;
}

.btn.bg-transparent.border-0.p-0:focus {
    outline: none;
    box-shadow: none;
}

/* keep icon size consistent with your other icons */
.delete-file i {
    font-size: 0.95rem;
}

#addPatientModal .modal-content {
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

#addPatientModal .modal-body {
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    /* adjust if header/footer taller */
    padding-right: 0.75rem;
    /* room for scrollbar */
}

/* if any nested card blocks clip content, prevent hidden overflow */
#addPatientModal .card-body {
    overflow: visible;
}

/* for pagination  */
.pagination {
    margin-bottom: 0px;
    --bs-pagination-padding-x: 12px;
    --bs-pagination-padding-y: 3px;
}

.card-body {
    padding: 8px;
}

/* ≤259px */
@media (max-width: 259px) {
    .scrollable-table-section1 {
        height: 300px;
        width: 259px !important;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .scrollable-table-section1>* {
        min-width: 600px;
    }

    .scrollable-table-section {
        top: 319px !important;
        margin-top: 45px !important;
    }

    body .page-content {
        padding: 10px;
    }
}

/* 260px–333px */
@media (min-width: 260px) and (max-width: 333px) {
    .scrollable-table-section1 {
        height: 300px;
        width: 288px !important;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .scrollable-table-section1>* {
        min-width: 600px;
    }

    .scrollable-table-section {
        top: 319px !important;
        margin-top: 45px !important;
    }

    body .page-content {
        padding: 10px;
    }
}

/* 334px–371px */
@media (min-width: 334px) and (max-width: 371px) {
    .scrollable-table-section1 {
        height: 300px;
        width: 323px !important;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .scrollable-table-section1>* {
        min-width: 600px;
    }

    .scrollable-table-section {
        top: 319px !important;
        margin-top: 45px !important;
    }

    body .page-content {
        padding: 10px;
    }
}

/* 372px–398px */
@media (min-width: 372px) and (max-width: 398px) {
    .scrollable-table-section1 {
        height: 300px;
        width: 324px !important;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .scrollable-table-section1>* {
        min-width: 600px;
    }

    .scrollable-table-section {
        top: 319px !important;
        margin-top: 45px !important;
    }

    body .page-content {
        padding: 10px;
    }
}

/* 399px–428px */
@media (min-width: 399px) and (max-width: 428px) {
    .scrollable-table-section1 {
        height: 300px;
        width: 365px !important;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .scrollable-table-section1>* {
        min-width: 600px;
    }

    .scrollable-table-section {
        top: 319px !important;
        margin-top: 45px !important;
    }

    body .page-content {
        padding: 10px;
    }
}

/* 429px–470px */
@media (min-width: 429px) and (max-width: 470px) {
    .scrollable-table-section1 {
        height: 300px;
        width: 381px !important;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .scrollable-table-section1>* {
        min-width: 600px;
    }

    .scrollable-table-section {
        top: 319px !important;
        margin-top: 45px !important;
    }

    body .page-content {
        padding: 10px;
    }
}

/* 471px–520px */
@media (min-width: 471px) and (max-width: 520px) {
    .scrollable-table-section1 {
        height: 300px;
        width: 456px !important;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .scrollable-table-section1>* {
        min-width: 600px;
    }

    .scrollable-table-section {
        top: 319px !important;
        margin-top: 45px !important;
    }

    body .page-content {
        padding: 10px;
    }
}

/* 521px–570px */
@media (min-width: 521px) and (max-width: 570px) {
    .scrollable-table-section1 {
        height: 300px;
        width: 467px !important;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .scrollable-table-section1>* {
        min-width: 600px;
    }

    .scrollable-table-section {
        top: 319px !important;
        margin-top: 45px !important;
    }

    body .page-content {
        padding: 10px;
    }
}


/* --------- New 577px to 768px --------- */
@media (min-width: 577px) and (max-width: 640px) {
    .scrollable-table-section1 {
        width: 560px !important;
        height: 300px;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .scrollable-table-section1>* {
        min-width: 700px;
    }

    .scrollable-table-section {
        top: 319px !important;
        margin-top: 45px !important;
    }

    body .page-content {
        padding: 12px;
    }
}

@media (min-width: 641px) and (max-width: 700px) {
    .scrollable-table-section1 {
        width: 620px !important;
        height: 300px;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .scrollable-table-section1>* {
        min-width: 720px;
    }

    .scrollable-table-section {
        top: 319px !important;
        margin-top: 45px !important;
    }

    body .page-content {
        padding: 14px;
    }
}

@media (min-width: 701px) and (max-width: 768px) {
    .scrollable-table-section1 {
        width: 680px !important;
        height: 300px;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .scrollable-table-section1>* {
        min-width: 740px;
    }

    .scrollable-table-section {
        top: 319px !important;
        margin-top: 45px !important;
    }

    body .page-content {
        padding: 16px;
    }
}


/* ---------------- FORM ONE ---------------- */
@media (max-width: 259px) {
    .scrollable-table-section1.form-one {
        height: 300px;
        width: 259px !important;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .scrollable-table-section1.form-one>* {
        min-width: 600px;
    }

    .scrollable-table-section.form-one {
        top: 319px !important;
        margin-top: 45px !important;
    }

    body .page-content {
        padding: 10px;
    }
}

/* 260px–333px */
@media (min-width: 260px) and (max-width: 333px) {
    .scrollable-table-section1.form-one {
        width: 288px !important;
        height: 300px;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .scrollable-table-section1.form-one>* {
        min-width: 600px;
    }

    .scrollable-table-section.form-one {
        top: 319px !important;
        margin-top: 45px !important;
    }

    body .page-content {
        padding: 10px;
    }
}

/* 334px–371px */
@media (min-width: 334px) and (max-width: 371px) {
    .scrollable-table-section1.form-one {
        width: 315px !important;
        height: 300px;
        overflow-x: auto;
        overflow-y: auto;
    }

    .scrollable-table-section.form-one {
        top: 319px !important;
        margin-top: 45px !important;
    }
}

/* 372px–398px (special adjustment for Form One) */
@media (min-width: 372px) and (max-width: 398px) {
    .scrollable-table-section1.form-one {
        height: 181px !important;
        width: 348px !important;
        overflow-x: auto;
        overflow-y: auto;
    }

    .scrollable-table-section.form-one {
        top: 248px !important;
        /* ↓ custom offset */
        margin-top: 0 !important;
    }
}

.btn-success-upload {
    background-color: #0055ff;
    color: white;
}

.btn-success-upload:hover,
.btn-success-upload:focus,
.btn-success-upload:active {
    background-color: #0055ff !important;
    color: white !important;
}

/* When radio is checked, apply your custom gradient primary styles */
.btn-check:checked + .btn-outline-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: linear-gradient(145deg, #6a11cb, #2575fc);
    --bs-btn-border-color: #4a0dbd;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: linear-gradient(145deg, #5a0fba, #1d63e4);
    --bs-btn-hover-border-color: #3d0f95;
    --bs-btn-focus-shadow-rgb: 90, 115, 245;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: linear-gradient(145deg, #4e0ca3, #1a57c7);
    --bs-btn-active-border-color: #350c7d;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.25);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #6a11cb;
    --bs-btn-disabled-border-color: #6a11cb;

    color: var(--bs-btn-color);
    background: var(--bs-btn-bg);
    border: 1px solid var(--bs-btn-border-color);
    padding: 0.5rem 1rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(38, 38, 128, 0.3);
    transition: all 0.2s ease-in-out;
    border-radius: 0.5rem;
}

/* Editor keeps default rounded */
#srcEditor:checked + label[for="srcEditor"] {
    border-radius: 5px 0 0 5px; /* left rounded */
}

/* Direct Upload active */
#srcUpload:checked + label[for="srcUpload"] {
    border-radius: 0px 5px 5px 0px; /* right rounded */
}