/* Dark mode toggle button styles */
.theme-toggle {
    background: #25252b;
    border: 1px solid var(--border-color);
    color: white;
    font-size: 15px;
    padding: 9px 19px;
    cursor: pointer;
    -webkit-transition: all ease-in 0.3s;
    transition: all ease-in 0.3s;
    margin: 0px 10px 0px 10px;
    border-radius: 5px !important;
}

/* Additional dark mode adjustments for specific elements */
body.dark-mode :is(.pcoded-micon) {
    background: #25252b;
    box-shadow: 1px 1px 1px var(--shadow);
}
body.dark-mode :is(.btn, .centered-div) {
    color: #25252b !important;
    font-weight: bold;
}
body.dark-mode :is(#load_previous_btn, #load_next_btn) {
    background: #4680ff;
}
body.dark-mode  :is(.card, .card-block, .j-content)  {
    background: #25252b;
    box-shadow: 1px 1px 1px var(--shadow);
}
body.dark-mode .pcoded-inner-content, body.dark-mode .pcoded-wrapper, body.dark-mode .pcoded-main-container {
    background: #211d1d !important;
}
body.dark-mode .pcoded-micon > i {
    color: var(--table-header-text);
    text-shadow: 1px 1px 1px black;
}
body.dark-mode .pcoded-submenu li a, body.dark-mode .pcoded-hasmenu, body.dark-mode .main-menu, body.dark-mode .pcoded-trigger {
    background: #211d1d !important;
    color: white !important;
}
body.dark-mode .pcoded-hasmenu .pcoded-mtext {
    color: white !important;
}
body.dark-mode .pcoded .pcoded-navbar[navbar-theme="themelight1"] .pcoded-item > li.pcoded-trigger > a {
    background: #211d1d !important;
}
body.dark-mode .pcoded .pcoded-navbar[navbar-theme="themelight1"] .pcoded-item > li.pcoded-trigger > a:hover {
    color: #211d1d !important;
}
body.dark-mode .pcoded-submenu {
    background: #211d1d !important;
}
body.dark-mode .pcoded-hasmenu a .pcoded-mtext:hover {
    color: #211d1d !important;
}
body.dark-mode .pcoded-trigger .pcoded-mtext {
    color: #ED1B24FF !important;
    font-weight: bold;
}
body.dark-mode .pcoded-trigger a .pcoded-mtext:hover {
    color: #ED1B24FF !important;
    font-weight: bold;
}
body.dark-mode .pcoded-submenu .pcoded-mtext {
    color: white !important; !important;
    font-weight: normal;
}
body.dark-mode .table-bordered td, .table-bordered th {
    border: 1px solid #5d5f61 !important;
}
body.dark-mode tr:has(> .negativeBalance) {
    background: #ab454a !important;
}
body.dark-mode tr:has(> .negativeBalance) {
    background: #ab454a !important;
}
body.dark-mode :is(h1, h2, h3, h4, h5, h6, .j-label, p) {
    color: white !important;
}
body.dark-mode :is(.colspan) {
    color: #211d1d !important;
    background: #939393 !important;
}
body.dark-mode .centered-div :is(h1, h2, h3, h4, h5, h6) {
    color: #000000 !important;
}
body.dark-mode tr:has(> td > .ccFailed) {
    background: #e93a43 !important;
}
body.dark-mode tr:has(> td > .ccSuccessManual) {
    background: #cb65d2 !important;
}
body.dark-mode tr:has(> td > .ccSuccess3,.ccSuccess2) {
    background: #007830 !important;
}
body.dark-mode tr:has(> td > .ccSuccess) {
    background: #459c49 !important;
}
body.dark-mode {
    background: #25252b;
}
body.dark-mode :is(.theme-loader) {
    background: #25252b !important;
}
body.dark-mode .auth-body {
    background: #000000 !important;
}
body.dark-mode .auth-body :is(h3, .ui-pnotify-title) {
    color: #000000 !important;
}
body.dark-mode :is(.ui-pnotify-title) {
    color: #000000 !important;
}
body.dark-mode .login-card {
    background: none !important;
}
body.dark-mode .pcoded-active-page .pcoded-mtext {
    color: #ED1B24FF !important;
    font-weight: bold;
}
body.dark-mode .campaigns-box {
    background: #ED1B24FF !important;
}
body.dark-mode .campaigns-box :is(.perc) {
    color: #000000 !important;
}
body.dark-mode :is(.btn-dark) {
    color: #fff !important;
}
body.dark-mode #msgdetails :is(.row) {
    color: #fff !important;
    border-bottom: 1px solid #5d5f61 !important;
}
body.dark-mode :is(#sendmessagecontainer, #request_body_div, .j-content, .j-wrapper, .j-footer, .j-pro, .service-div, .placard, .col-1-content) {
    border: 0px !important;
    background: #25252b !important;
    box-shadow: none !important;
}
body.dark-mode :is(#request_header_div) {
    background: #ED1B24FF !important;
    color: #FFFFFF !important;
}
body.dark-mode :is(code, .code-box) {
    background: #000000 !important;
}
body.dark-mode input:disabled {
    color: #adadad !important;
}
body.dark-mode [data-tier="2"], body.dark-mode [data-tier="4"], body.dark-mode [data-tier="6"] {
    background: #515151 !important;
}
body.dark-mode :is(iframe) {
    background: #ABABAB !important;
}
body.dark-mode :is(.defaultURL, .newUrlTemplate) {
    background: #717171 !important;
}
body.dark-mode :is(.profile-notification, .profile-notification li:nth-child(3)) {
    border-radius: 0px 0px 10px 10px;
}
body.dark-mode :is([data-fiv="tr1"], [data-fiv="tr2"], [data-fiv="tr3"], [data-fiv="tr4"], [data-fiv="tr5"], [data-fiv="tr6"]) {
    background: #414850 !important;
}
body.dark-mode :is(#primarynumber) {
    font-weight: bold !important;
}
body.dark-mode :is(#description, #messageFlow, #swal2-title, .search_results_div, .dropzone-msg-title) {
    color: #000000 !important;
}
body.dark-mode .pcoded-navbar .pcoded-hasmenu:hover > a > .pcoded-mtext {
    color: #000 !important;
}
body.dark-mode .pcoded-navbar .pcoded-trigger:hover > a > .pcoded-mtext {
    color: #ED1B24FF !important;
}
/*body.dark-mode input, body.dark-mode select, body.dark-mode textarea {*/
/*    background-color: var(--card-bg);*/
/*    color: var(--text-color);*/
/*    border-color: var(--border-color);*/
/*}*/

/* Ensure buttons and other elements adapt */
/*body.dark-mode .btn {*/
/*    background-color: var(--card-bg);*/
/*    color: var(--text-color);*/
/*    border-color: var(--border-color);*/
/*}*/