/* Common CSS */
:root {
    --background-color: #f6f9ff;
    --text-color: #343a40;
    --hover-color: #fff;
    --theme-color: #fff;
    --lg-fs: 18px;
    --md-fs: 14px;
    --sm-fs: 12px;
    --white-color: #ffffff;
    --dark-bg-color: #333;
    --placeholder-color: #aaa;
    --input-border-color: #ccc;
    --input-focus-shadow: rgba(41, 121, 255, 0.3);
    --dark-border-color: #555;
    --dark-placeholder-color: #888;
    --dark-input-bg-color: #444;
    --disabled-bg-color: #f1f1f1;
    --disabled-text-color: #aaa;
    --dark-disabled-bg-color: #444;
    --dark-disabled-text-color: #888;
    --border-radius: 4px;
    --input-padding: 12px;
    --link-color: #1a73e8;
    --btn-primary-bg: #2979ff;
    --btn-secondary-bg: #4154f1;
    --box-shadow: 0 2px 5px rgba(194, 194, 194, 0.444),
        0 1px 3px rgba(190, 190, 190, 0.346);
}

/* Dark Mode Variables */
body.dark-mode {
    --background-color: #111827;
    --dark-color: #111827;
    --white-color: #222222;
    --text-color: #ffffff;
    --link-color: #1a73e8;
    --btn-primary-bg: #254d91;
    --btn-secondary-bg: #4154f1;
    --input-border-color: #444;
    --input-focus-shadow: rgba(41, 121, 255, 0.5);
    --dark-border-color: #666;
    --dark-placeholder-color: #999;
    --dark-input-bg-color: #444;
    --disabled-bg-color: #222;
    --disabled-text-color: #666;
    --dark-disabled-bg-color: #333;
    --dark-disabled-text-color: #888;
    --input-padding: 12px;
    --border-radius: 4px;
    background-color: #111827;
    background-image: radial-gradient(circle, #ffffff4d 1px, transparent 1px),
        radial-gradient(circle, #ffffff33 2px, transparent 2px),
        radial-gradient(circle, #ffffff1a 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    background-position: 0 0, 50px 50px, 100px 100px;
    background-attachment: fixed;
}

html.mm {
    --global-font: "Roboto", serif;
    --default-fs: 16px;
}

.dataTables_filter,
.dataTables_length {
    display: inline-block;
    width: 50%;
}

html.en {
    --global-font: "Roboto", serif;
    --default-fs: 16px;
}

body label {
    font-weight: 700;
}

html.mm input {
    font-family: "Roboto", serif;
}

/* Scroll */
html::-webkit-scrollbar {
    width: 8px;
    background-color: var(--background-color);
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--thumb-color) var(--background-color);
}

.dashboard_noti_list {
    scrollbar-width: none;
}

.dashboard_noti_list::-webkit-scrollbar {
    width: 0;
}

.dashboard_noti_list {
    box-shadow: var(--box-shadow);
    padding: 8px;
}

.dashboard_noti_list li {
    transition: 0.3s;
}

.dashboard_noti_list li:hover .item {
    background-color: var(--hover-color) !important;
    box-shadow: var(--box-shadow) !important;
}

.dashboard_noti_list li:hover span,
.dashboard_noti_list li:hover small {
    color: #fff !important;
}

.dashboard_noti_list li a {
    box-shadow: var(--box-shadow);
}

html::-webkit-scrollbar-thumb {
    background: var(--text-color);
    border-radius: 10px;
}

/* Global CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: var(--global-font);
    font-size: var(--default-fs);
    color: var(--text-color);
    text-decoration: none;
    list-style-type: none;
}

body {
    font-family: var(--global-font);
    background: var(--background-color);
    color: var(--text-color);
    overflow-y: auto;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--hover-color);
    text-decoration: none;
}

ul {
    list-style: none;
}

.bg-theme {
    background-color: var(--theme-color);
}

.text-theme {
    color: var(--theme-color);
}

.btn-theme {
    background-color: var(--theme-color);
    color: var(--white-color) !important;
}

.btn {
    text-transform: capitalize;
}

.btn-theme:hover,
.btn-theme:active,
.btn-theme:focus {
    background-color: var(--theme-color);
    color: var(--white-color);
}

.text-gradient {
    background: linear-gradient(to right, #22d3ee, #3b82f6);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Login */
.auth-container {
    background-color: #fff;
}

.auth-container .auth-form {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    max-width: 100vw;
    position: relative;
    overflow: hidden;
    background-color: #1976d254;
}

.auth-container .auth-form h1 {
    color: #1e1e1e;
}

.circle1,
.circle2,
.circle3 {
    position: absolute;
    content: "";
    border-radius: 50%;
    background-color: #2d68ce8c;
    z-index: 0;
}

.circle1 {
    width: 270px;
    height: 270px;
    right: -170px;
    top: -70px;
}

.circle2 {
    width: 80px;
    height: 80px;
    left: -30px;
    bottom: 170px;
}

.circle3 {
    width: 270px;
    height: 270px;
    left: -130px;
    bottom: -70px;
}

.login-card {
    background: #fff;
    color: var(--text-color);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 0 5px #8b8b8b;
    position: relative;
    z-index: 1000 !important;
}

.login-card .btn-theme {
    background-color: var(--theme-color);
    color: #ffffff !important;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.input-container {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    background: none;
    font-size: 16px;
    transition: border-color 0.3s ease;
    color: #000000;
}

.form-input:focus {
    border-bottom-color: #1976d2;
}

.input-container .form-label {
    position: absolute;
    top: 8px;
    left: 0;
    font-size: 16px;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: -16px;
    font-size: 14px;
    color: #1976d2;
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1976d2;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.form-input:focus~.underline {
    transform: scaleX(1);
}

/* navbar style */
.navbar {
    background-color: var(--white-color);
    color: var(--text-color);
    height: 68px;
    z-index: 1000;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    box-shadow: 0 0 5px #8b8b8b !important;
}

.navbar-brand img {
    height: 40px;
}

.notiMenu .dropdown-item {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.profile li a:hover i {
    color: #000;
}

.profile li a i {
    width: 30px;
}

/* Sidebar styles */
.sidebar {
    overflow-y: auto;
    width: 270px;
    max-height: 100vh;
    background-color: var(--white-color);
    position: fixed;
    top: 0;
    left: -270px;
    transition: 0.3s;
    color: var(--text-color);
    background-color: var(--white-color);
    display: flex;
    flex-direction: column;
    z-index: 999;
    overflow-y: hidden;
    box-shadow: 0 0 5px #8b8b8b !important;
}

.sidebar .sidebar-nav {
    height: 100vh;
    margin-top: 70px;
    overflow-y: auto;
}

.sidebar .sidebar-nav {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar .sidebar-nav::-webkit-scrollbar {
    display: none;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    padding: 0;
}

.sidebar-nav .nav-item {
    transition: all 0.3s;
    box-shadow: 0 3px 5px #bababab1;
}

.nav-item .nav-link:hover {
    background-color: var(--hover-color);
    color: var(--white-color);
}

.nav-item .nav-link:hover i:first-of-type {
    color: var(--white-color);
}

.nav-content li:hover {
    background-color: var(--hover-color);
    color: var(--white-color);
}

.nav-content li:hover a {
    color: var(--white-color) !important;
}

.nav-content li:hover a {
    color: var(--white-color) !important;
}

.nav-item .nav-link {
    display: flex;
    align-items: center;
}

.nav-item .nav-link i:first-of-type {
    color: var(--hover-color);
}

.nav-item .nav-link i:first-of-type {
    width: 40px;
}

.nav-item .nav-content li {
    padding-left: 20px;
}

.nav-item.active .nav-link {
    background-color: var(--hover-color);
    color: var(--white-color);
}

.nav-item.active .nav-link i:first-of-type {
    color: var(--white-color);
}

.nav-content i {
    width: 20px;
}

.nav-content li.active i,
.nav-content li.active span {
    color: var(--hover-color);
}

.nav-content li:hover i,
.nav-content li:hover span {
    color: var(--white-color);
}

.sidebar a {
    color: var(--text-color);
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    /* transition: background 0.3s; */
    font-family: var(--global-font);
}

/* Content Style */
.content {
    margin-top: 68px;
    margin-left: 0;
    transition: 0.3s;
    padding: 10px 30px;
    /* min-height: 93vh; */
}

.content.active {
    margin-left: 270px;
}

/* Push the footer to the bottom */
.sidebar-footer {
    margin-top: auto;
    padding: 0 20px;
    background-color: var(--background-color);
}

.menu-btn {
    cursor: pointer;
    font-size: 24px;
    color: var(--text-color);
    padding: 5px;
}

.menu-btn:hover {
    color: var(--hover-color);
}

/* Header Noti Menu */
.notiMenu {
    width: 350px;
    max-height: 300px !important;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.notiMenu::-webkit-scrollbar {
    display: none;
}

/* Common CSS */
.bg-primary-light {
    background-color: #cfe2ff;
    border-color: #cfe2ff;
}

.bg-secondary-light {
    background-color: #e2e3e5;
    border-color: #e2e3e5;
}

.bg-success-light {
    background-color: #d1e7dd;
    border-color: #d1e7dd;
}

.bg-danger-light {
    background-color: #f8d7da;
    border-color: #f8d7da;
}

.bg-warning-light {
    background-color: #fff3cd;
    border-color: #fff3cd;
}

.bg-info-light {
    background-color: #cff4fc;
    border-color: #cff4fc;
}

.bg-dark-light {
    background-color: #d3d3d4;
    border-color: #d3d3d4;
}

.daterangepicker td,
.daterangepicker th {
    color: #333;
}

.daterangepicker .calendar-table {
    color: #555555;
}

.daterangepicker select.monthselect,
.daterangepicker select.yearselect {
    color: #161414 !important;
}

.daterangepicker select.monthselect option,
.daterangepicker select.yearselect option {
    color: #19171b !important;
}

@media (max-width: 1000px) {
    .sidebar {
        left: -270px;
    }

    .sidebar.active {
        left: 0;
    }

    .content {
        margin-left: 0;
        padding: 10px;
    }

    .content.active {
        margin-left: 0;
    }
}


/* dropdown */
.dropdown-menu {
    background: var(--white-color);
}

.dropdown-menu a {
    color: var(--text-color);
}

.dropdown-item {
    cursor: pointer;
}

/* Card */
.card {
    color: var(--text-color);
    border-radius: 10px;
    transition: 0.3s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px #8d8d8d26, 0 3px 6px #0000001a;
}

/* Datatable CSS */
mark {
    background: var(--theme-color);
    padding: 0px;
    color: #fff;
}

.paginate_button {
    padding: 5px 10px;
    background-color: rgba(128, 128, 128, 0.101);
    border-radius: 4px;
    margin: 0 4px;
    cursor: pointer;
    box-shadow: 0 0 3px gray;
}

.paginate_button.previous,
.paginate_button.next {
    background: none;
}

.paginate_button {
    padding: 5px;
}

#datatable {
    width: 100% !important;
}

#datatable thead tr {
    position: sticky !important;
    top: 68px !important;
    z-index: 100;
}

#datatable tbody td {
    font-size: 15px;
}

.user_profile {
    display: flex;
}

.user_profile img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--hover-color);
    margin-right: 10px;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
    line-height: 1.08em;
}

.paginate_button.current {
    background-color: var(--hover-color);
    color: #fff;
    width: 40px;
}

@media (max-width: 767px) {

    div.dataTables_wrapper div.dataTables_length,
    div.dataTables_wrapper div.dataTables_filter {
        text-align: left !important;
        margin-bottom: 10px;
    }

    div.dataTables_wrapper div.dataTables_info,
    div.dataTables_wrapper div.dataTables_paginate {
        text-align: center !important;
    }

    div.dataTables_wrapper div.dataTables_filter input {
        width: 150px;
    }

    .modal.fade.show {
        padding-right: 0 !important;
    }

    #bar-chart,
    #radar-chart {
        height: 300px;
    }

    .screen_title {
        font-size: 20px;
    }

    .sidebar {
        left: -270px;
    }

    .sidebar.active {
        left: 0;
    }

    .content {
        margin-left: 0;
        padding: 10px;
    }

    .content.active {
        margin-left: 0;
    }
}

#datatable_filter input,
#newCustomerDatatable_filter input {
    padding: 5px 10px !important;
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
    outline: none;
    background-color: var(--background-color);
    color: var(--text-color);
}

#datatable_filter input:focus,
#newCustomerDatatable_filter input:focus {
    outline: 2px solid var(--theme-color) !important;
}

#datatable_filter input:active,
#newCustomerDatatable_filter input:active {
    outline: 2px solid var(--theme-color) !important;
}

#datatable_length select,
#newCustomerDatatable_length select {
    padding: 5px 10px !important;
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
    outline: none;
    background-color: var(--background-color);
    color: var(--text-color);
}

.action-icon {
    display: flex;
    gap: 5px;
    justify-content: start;
}

.action-icon i {
    color: #fff;
    font-size: 14px;
}

/* ========================== Dark Mode Styles ========================== */
body.dark-mode .navbar {
    background-color: var(--white-color);
    color: var(--text-color);
}

body.dark-mode .sidebar {
    background-color: var(--white-color);
    color: var(--text-color);
}

body.dark-mode .sidebar a {
    color: var(--text-color);
}

body.dark-mode .card {
    background: #ffffff1a;
    color: var(--text-color);
    backdrop-filter: blur(4px);
    border: 1px solid #ffffff4d;
}

body.dark-mode .sidebar-footer {
    background-color: gray;
    color: var(--text-color);
}

.sidebar-footer .dropdown-menu li.active {
    background: var(--hover-color);
}

.sidebar-footer .dropdown-menu li.active a {
    color: #fff;
}

.sidebar-footer .dropdown-menu li:hover a {
    background: var(--hover-color);
    color: var(--white-color);
}

body.dark-mode .sidebar-footer .dropdown-menu li:hover a {
    background: var(--theme-color);
    color: var(--text-color);
}

body.dark-mode button {
    color: var(--text-color);
}

/* Dark mode styles for DataTable */
body.dark-mode .table {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

body.dark-mode .table thead {
    background-color: #333 !important;
    color: #ffffff !important;
}

body.dark-mode .table tbody tr {
    background-color: #2a2a2a !important;
}

body.dark-mode .table tbody tr:nth-child(even) {
    background-color: #252525 !important;
}

body.dark-mode .table td,
body.dark-mode .table th {
    border-color: #444 !important;
    color: var(--text-color);
    background-color: var(--background-color);
}

body.dark-mode .table tbody tr:hover {
    background-color: #444 !important;
}

body.dark-mode .dropdown-menu {
    border: 1px solid #7a7a7a;
}

body.dark-mode .accordion-button,
body.dark-mode .accordion-body,
body.dark-mode #interaction-placeholder .accordion-item {
    background-color: var(--background-color);
}

body.dark-mode span {
    color: var(--text-color) !important;
}

/* DarkMode for Performance */
body.dark-mode .table {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border: #1e1e1e !important;
}

body.dark-mode #table-info {
    color: #e0e0e0 !important;
}

body.dark-mode .badge-primary {
    color: #333 !important;
}

body.dark-mode .badge-warning {
    color: #333 !important;
}

body.dark-mode .badge-success {
    color: #333 !important;
}

body.dark-mode .badge-danger {
    color: #333 !important;
}

body.dark-mode .badge-info {
    color: #333 !important;
}

body.dark-mode #interactionCustomerTitle {
    color: #333 !important;
}

body.dark-mode #searchFilter {
    background-color: #1e1e1e !important;
}

body.dark-mode #start_date_filter {
    background-color: #1e1e1e !important;
    color: #e0e0e0;
}

body.dark-mode .text-muted {
    color: var(--text-color) !important;
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
}

.loading_container {
    background: #ffffff1a;
    color: var(--text-color);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    width: 200px;
    height: 200px;
}

.loader {
    color: var(--btn-secondary-bg);
    font-size: 20px;
    margin: 100px auto;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: relative;
    text-indent: -9999em;
    -webkit-animation: load4 1.3s infinite linear;
    animation: load4 1.3s infinite linear;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}

@-webkit-keyframes load4 {

    0%,
    100% {
        box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em,
            0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0;
    }

    12.5% {
        box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em,
            0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
    }

    25% {
        box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0,
            0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
    }

    37.5% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em,
            0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
    }

    50% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em,
            0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
    }

    62.5% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em,
            0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
    }

    75% {
        box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em,
            2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em,
            -2em -2em 0 0;
    }

    87.5% {
        box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em,
            0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
    }
}

@keyframes load4 {

    0%,
    100% {
        box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em,
            0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0;
    }

    12.5% {
        box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em,
            0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
    }

    25% {
        box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0,
            0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
    }

    37.5% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em,
            0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
    }

    50% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em,
            0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
    }

    62.5% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em,
            0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
    }

    75% {
        box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em,
            2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em,
            -2em -2em 0 0;
    }

    87.5% {
        box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em,
            0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
    }
}

.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15px;
    color: var(--text-color);
}

#loading-text::after {
    content: "|";
    display: inline-block;
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.screen_title {
    font-size: 30px;
    color: var(--theme-color);
    font-weight: 900;
    padding-left: 13px;
    padding-top: 10px;
}

.form-label {
    margin-bottom: 0 !important;
}

.modal-content {
    border: 1px solid #bebebefd;
    border-radius: 20px;
    outline: 7px solid #e5e5e5c8;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
}

/* Dark Mode Modal Styling */
body.dark-mode .modal-content {
    background-color: var(--background-color);
    color: var(--white-color);
}

body.dark-mode .modal-content button:first-child {
    color: #000;
}

/* Input Form Control */
body.dark-mode .form-label {
    color: var(--text-color);
}

body.dark-mode .form-control:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 5px var(--input-focus-shadow);
}

body.dark-mode .form-control::placeholder {
    color: var(--dark-placeholder-color);
}

.form-control:disabled {
    background-color: var(--disabled-bg-color);
    border-color: #ddd;
    color: var(--disabled-text-color);
}

body.dark-mode .form-control:disabled {
    background-color: var(--dark-disabled-bg-color);
    border-color: #666;
    color: var(--dark-disabled-text-color);
}

/* Dark Mode Form Select */
body.dark-mode .form-select {
    background-color: var(--dark-input-bg-color);
    border: 1px solid var(--dark-border-color);
    color: var(--text-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

body.dark-mode .form-select:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 5px var(--input-focus-shadow);
    outline: none;
}

body.dark-mode .form-select::placeholder {
    color: var(--dark-placeholder-color);
}

body.dark-mode .form-select:disabled {
    background-color: var(--dark-disabled-bg-color);
    border-color: var(--dark-border-color);
    color: var(--dark-disabled-text-color);
    cursor: not-allowed;
}

/* Optional: Style dropdown arrow */
body.dark-mode .form-select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="%23ffffff"><path d="M1.5 5.5l6.5 6.5 6.5-6.5"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

/* Sweet alert 2 */
body.dark-mode .swal2-popup {
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 0 10px rgb(201, 201, 201);
    color: var(--text-color);
}

.btn-close {
    background: none;
    position: relative;
    right: 13px;
}

.btn-close i {
    font-size: 30px;
    position: relative;
    top: -5px;
    left: 0px;
}

body.dark-mode .btn-close i {
    color: var(--text-color);
}

/* Left Right */
.list-box {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    width: 100%;
    border: 2px solid var(--dark-border-color);
    margin-bottom: 10px;
    border-radius: 10px;
    overflow-y: auto;
}

/*Customer Detail icon */
.icon {
    width: 40px;
}

.btn-vertical {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.button>button {
    width: 50px;
    padding: 8px 0;
}

/* Chart */
body.dark-mode #chart-container * {
    color: var(--text-color);
}

#bar-chart,
#radar-chart {
    height: 500px;
}


/* Error */
.error-container {
    min-height: 100vh;
    background-color: #1976d254;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg-color);
}

.error-container h1 {
    font-size: 120px;
    font-weight: 900;
}

.error-code {
    font-size: 120px;
    font-weight: 100;
}

.error-message {
    font-size: 30px;
    font-weight: 300;
}

/* Select 2 */
body.dark-mode .select2-results__options,
body.dark-mode .select2-selection {
    background-color: var(--dark-bg-color) !important;
    border: 1px solid var(--dark-border-color) !important;
    color: var(--text-color) !important;
}

body.dark-mode .select2-selection__choice__display,
body.dark-mode .select2-selection__choice__remove span {
    color: #000 !important;
}

/* .drp-calendar,
.drp-calendar * {
    background-color: var(--dark-bg-color);
}
.daterangepicker {
    background-color: var(--dark-bg-color);
    border: 1px solid var(--dark-border-color) !important;
    color: var(--text-color) !important;
}
.daterangepicker td.off,
.daterangepicker td.off.in-range,
.daterangepicker td.off.start-date,
.daterangepicker td.off.end-date {
    background-color: var(--dark-bg-color);
    border-color: transparent;
    color: var(--text-color);
} */
@media (max-width: 860px) {
    .error-container h1 {
        font-size: 100px;
    }

    .error-code {
        font-size: 70px;
        font-weight: 100;
    }

    .error-message {
        font-size: 30px;
        font-weight: 100;
    }

    .dataTables_filter,
    .dataTables_length {
        display: block;
        margin-bottom: 10px;
        text-align: left !important;
    }
}

@media (max-width: 570px) {
    .error-container h1 {
        font-size: 60px;
    }

    .error-code {
        font-size: 40px;
        font-weight: 100;
    }

    .error-message {
        font-size: 18px;
        font-weight: 100;
    }
}

#image_container {
    position: relative;
}

.img-fluid {
    height: 150px;
    width: auto;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ccc;
    position: relative;
}

.file-preview,
.file-preview-interaction,
.file-for-edit {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.file-preview .each_pdf,
.file-preview .each_image,
.file-preview .each_word,
.file-preview .each_excel,
.file-preview .each_ppt,
.file-preview .each_audio,
.file-preview-interaction .each_pdf,
.file-preview-interaction .each_image,
.file-preview-interaction .each_word,
.file-preview-interaction .each_excel,
.file-preview-interaction .each_ppt,
.file-preview-interaction .each_audio,
.file-for-edit .each_pdf,
.file-for-edit .each_image,
.file-for-edit .each_excel,
.file-for-edit .each_ppt,
.file-for-edit .each_word {
    position: relative;
    height: 150px;
    width: 150px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.delete_btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
}

.delete_btn i {
    font-size: 22px;
    color: #ff2222;
    border-radius: 100%;
}

.file-name {
    position: absolute;
    top: 120px;
    overflow: hidden;
    font-size: 12px;
    text-align: center;
}

.file-preview .file-icon {
    font-size: 40px;
    color: #333;
}

/* .upload_btn_create,
.upload_btn_edit,
.upload_interaction_btn,
.upload_btn_customer_files {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
} */

.badge-warning {
    color: #644301;
    background-color: #f8d99b;
}

.badge-success {
    color: #037430;
    background-color: #a4e4bc;
}

.badge-danger {
    color: #93041c;
    background-color: #eaa8b3;
}

.badge-primary {
    color: #1b3c70;
    background-color: #a5bdeb;
}

.modal-title {
    font-weight: bold;
}

#day_filter,
#week_filter,
#date_filter {
    height: 40px;
}

@media (max-width:500px) {
    .accordion-body {
        padding: 20px 10px !important;
    }

    .card-body,
    .card-header,
    .card-footer {
        padding: 15px !important;
    }
}