/*
  Dark Theme Ottimizzato - Palette colori da bg-login-img.jpg
  Colori principali:
  - Blu scuro: #0a0e27, #12152e, #1a1d3a
  - Arancione: #ffb700, #ffa500, #ff8c00
  - Rosa/Magenta: #ff4b9e, #ff69b4, #ff1493
  - Viola: #9370db, #b57edc, #8b00ff
  - Blu: #56ccf2, #00bfff, #2f80ed
  - Verde: #32cd32, #7cfc00, #00ff7f
*/

:root {
    --primary-orange: #ffb700;
    --primary-orange-hover: #ffa500;
    --accent-pink: #ff4b9e;
    --accent-purple: #9370db;
    --accent-blue: #56ccf2;
    --accent-green: #32cd32;
    --bg-dark-primary: #0a0e27;
    --bg-dark-secondary: #12152e;
    --bg-dark-tertiary: #1a1d3a;
}

html.dark-theme .switcher-wrapper {
    background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, var(--bg-dark-primary) 100%);
    border-left: 1px solid rgba(147, 112, 219, 0.2);
}
html.dark-theme body {
    color: #e4e5e6;
}
html.dark-theme .h1,
html.dark-theme .h2,
html.dark-theme .h3,
html.dark-theme .h4,
html.dark-theme .h5,
html.dark-theme .h6,
html.dark-theme h1,
html.dark-theme h2,
html.dark-theme h3,
html.dark-theme h4,
html.dark-theme h5,
html.dark-theme h6 {
    color: #52566c;
}
html.dark-theme .card {
    background: linear-gradient(145deg, rgba(20, 25, 50, 0.85) 0%, rgba(30, 35, 65, 0.75) 50%, rgba(25, 30, 60, 0.85) 100%);
    border: 1px solid rgba(147, 112, 219, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 2px 8px rgba(147, 112, 219, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    transition: all 0.3s ease;
}
html.dark-theme .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                0 4px 12px rgba(147, 112, 219, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 183, 0, 0.3);
}
html.dark-theme .card-header {
    background: linear-gradient(135deg, rgba(30, 35, 65, 0.6) 0%, rgba(25, 30, 60, 0.6) 100%);
    border-bottom: 1px solid rgba(255, 183, 0, 0.15);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
html.dark-theme .card-footer {
    background: linear-gradient(135deg, rgba(25, 30, 60, 0.6) 0%, rgba(20, 25, 50, 0.6) 100%);
    border-top: 1px solid rgba(255, 183, 0, 0.15);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
html.dark-theme .text-secondary {
    color: #a8adb0 !important;
}
html.dark-theme hr {
    border-top: 1px solid rgb(255 255 255 / 10%);
}
html.dark-theme .topbar {
    background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, var(--bg-dark-tertiary) 100%);
    border-bottom: 1px solid rgba(147, 112, 219, 0.2);
    box-shadow: 0 2px 20px rgba(255, 75, 158, 0.1);
}
html.dark-theme .user-box {
    border-left: 1px solid rgb(255 255 255 / 0.15);
}
html.dark-theme .user-info .user-name {
    color: #e4e5e6;
}
html.dark-theme .user-info .designattion {
    color: #b3b3b3;
}
html.dark-theme .product-list .row {
    background-color: rgb(255 255 255 / 8%);
}
html.dark-theme .product-img {
    background-color: rgb(0 0 0 / 25%);
    border: 1px solid rgb(255 255 255 / 15%);
}
@media (min-width: 992px) {
    html.dark-theme .product-list .row:hover {
        background-color: rgb(255 255 255 / 15%);
        margin-top: -0.25rem;
        margin-bottom: 0.25rem;
        -webkit-box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.2);
        box-shadow: 0 0.25rem 0.5rem 0 rgba(0, 0, 0, 0.2);
    }
}
html.dark-theme .recent-product-img {
    background-color: rgb(255 255 255 / 10%);
    border: 1px solid rgb(255 255 255 / 10%);
}
html.dark-theme .page-footer {
    background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, var(--bg-dark-primary) 100%);
    border-top: 1px solid rgba(147, 112, 219, 0.2);
}
html.dark-theme .mobile-toggle-menu {
    color: #e4e5e6;
}
html.dark-theme .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
html.dark-theme .logo-icon {
    margin: 10px;
}
html.dark-theme .toggle-icon {
    color: #e7e9ec;
}
html.dark-theme .topbar .navbar-nav .nav-link {
    border-left: 0 solid rgb(255 255 255 / 12%);
    color: #e4e5e6;
}
html.dark-theme .search-bar input {
    color: #e4e5e6;
    background-color: #1e1e1e;
    border: 1px solid rgb(241 241 241 / 15%);
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 0%);
}
html.dark-theme .search-bar input::placeholder {
    color: #e4e5e6 !important;
    opacity: 0.5 !important;
}
html.dark-theme::placeholder {
    color: #e4e5e6 !important;
    opacity: 0.5 !important;
}
html.dark-theme .search-bar .btn-search {
    background: #1e1e1e;
    border: 1px solid rgb(217 211 211 / 30%);
}
html.dark-theme .search-bar .btn-search i {
    color: #e4e5e6;
}
html.dark-theme .dropdown-menu {
    color: #e4e5e6;
    background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, var(--bg-dark-tertiary) 100%);
    border: 1px solid rgba(147, 112, 219, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
html.dark-theme .dropdown-item {
    color: #acafb3;
}
html.dark-theme .dropdown-menu .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(255, 183, 0, 0.15) 0%, rgba(147, 112, 219, 0.1) 100%);
    color: var(--primary-orange);
}
html.dark-theme .dropdown-divider {
    border-top: 1px solid rgb(255 255 255 / 12%);
}
html.dark-theme .dropdown-large .dropdown-menu .dropdown-item {
    border-bottom: 1px solid rgb(255 255 255 / 12%);
}
html.dark-theme .dropdown-large .msg-name {
    color: #fff;
}
html.dark-theme .dropdown-large .msg-info {
    color: #80868c;
}
html.dark-theme .dropdown-large .msg-time {
    color: #b1afaf;
}
html.dark-theme .dropdown-large .msg-header {
    border-bottom: 1px solid rgb(255 255 255 / 15%);
    background: 0 0;
}
html.dark-theme .dropdown-large .msg-header .msg-header-title {
    color: #e4e5e6;
}
html.dark-theme .dropdown-large .msg-header .msg-header-clear {
    color: #999ea2;
}
html.dark-theme .dropdown-large .msg-footer {
    color: #d1d7de;
    border-top: 1px solid rgb(255 255 255 / 0.15);
}
html.dark-theme .btn-white {
    color: #e4e5e6;
    background-color: #1e1e1e;
    border-color: rgb(206 212 218 / 45%);
    border-top: 1px solid #63686f;
    border-left: 1px solid #63686f;
}
html.dark-theme .user-img {
    border: 1px solid rgb(255 255 255 / 28%);
}
html.dark-theme .customers-contacts a {
    background: rgb(255 255 255 / 12%);
    border: 1px solid rgb(255 255 255 / 14%);
    color: #fff;
}
@media (min-width: 992px) {
    html.dark-theme .customers-list .customers-list-item:hover {
        background-color: rgb(255 255 255 / 12%);
    }
}
html.dark-theme .order-actions a {
    background: rgb(255 255 255 / 12%);
    border: 1px solid rgb(255 255 255 / 14%);
    color: #fff;
}

html.dark-theme .alert-warning {
    background-color: #EFA507;
    color: #FFFFFF;
}

html.dark-theme .alert-success {
    background-color: #17A00E;
    color: #FFFFFF;
}
html.dark-theme .accordion-button {
    color: #bac0c6;
    border: 1px solid rgb(255 255 255 / 14%);
}
html.dark-theme .accordion-button:not(.collapsed) {
    background-color: rgb(255 255 255 / 12%);
}
html.dark-theme .nav-tabs .nav-link {
    color: #e3e4e5;
}
html.dark-theme .nav-tabs .nav-item.show .nav-link,
html.dark-theme .nav-tabs .nav-link.active {
    background-color: #090707;
}
html.dark-theme .nav-tabs {
    border-bottom: 1px solid rgb(255 255 255 / 14%);
}
html.dark-theme .nav-primary.nav-tabs .nav-link.active {
    border-color: #0d6efd #0d6efd rgb(255 255 255 / 14%);
}
html.dark-theme .nav-danger.nav-tabs .nav-link.active {
    border-color: #f41127 #f41127 rgb(255 255 255 / 0.14);
}
html.dark-theme .nav-success.nav-tabs .nav-link.active {
    border-color: #17a00e #17a00e rgb(255 255 255 / 0.14);
}
html.dark-theme .nav-warning.nav-tabs .nav-link.active {
    border-color: #ffc107 #ffc107 rgb(255 255 255 / 0.14);
}
html.dark-theme .nav-pills .nav-link {
    color: #e7e8ea;
}
html.dark-theme .theme-icons {
    background-color: #171717;
}
html.dark-theme .pricing-table .card ul li.list-group-item {
    color: #e5dede;
}
html.dark-theme .table {
    --bs-table-bg: transparent;
    --bs-table-striped-color: #e4e5e6;
    --bs-table-striped-bg: rgba(255, 255, 0255, 0.05);
    --bs-table-active-color: #e4e5e6;
    --bs-table-active-bg: rgba(255, 255, 255, 0.1);
    --bs-table-hover-color: #e4e5e6;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.075);
    width: 100%;
    margin-bottom: 1rem;
    color: #e4e5e6;
    vertical-align: top;
    border-color: rgb(255 255 255 / 12%);
}
html.dark-theme .table-light {
    --bs-table-bg: rgb(255 255 255 / 12%);
    color: #fff;
}
html.dark-theme .table td,
html.dark-theme .table th {
    border-color: rgb(255 255 255 / 12%);
}
html.dark-theme .table thead th {
    background: linear-gradient(135deg, var(--bg-dark-tertiary) 0%, var(--bg-dark-secondary) 100%);
    border-bottom: 2px solid var(--primary-orange);
    color: var(--primary-orange);
}
html.dark-theme .border {
    border: 1px solid rgb(255 255 255 / 12%) !important;
}
html.dark-theme .border-end {
    border-right: 1px solid rgb(255 255 255 / 12%) !important;
}
html.dark-theme .border-3 {
    border-width: 3px !important;
}
html.dark-theme .topbar .navbar .dropdown-menu::after {
    background: #1e1e1e;
    border-top: 1px solid #0b2354;
    border-left: 1px solid #0b2354;
}
html.dark-theme .topbar .navbar .dropdown-large .dropdown-menu::after {
    background: #1e1e1e;
    border-top: 1px solid #0b2354;
    border-left: 1px solid #0b2354;
}
html.dark-theme .highcharts-background {
    fill: rgb(255 255 255 / 0%);
}
html.dark-theme .highcharts-title {
    fill: #e4e5e6 !important;
    font-size: 1.5em;
}
html.dark-theme .highcharts-root text {
    fill: #8f949a;
}
html.dark-theme .highcharts-grid-line {
    fill: none;
    stroke: rgb(255 255 255 / 12%);
}
html.dark-theme .sidebar-wrapper {
    background: linear-gradient(180deg, var(--bg-dark-secondary) 0%, var(--bg-dark-primary) 100%);
    border-right: 1px solid rgba(147, 112, 219, 0.2);
}
html.dark-theme .sidebar-wrapper .sidebar-header {
    background: linear-gradient(135deg, rgba(18, 21, 46, 0.95) 0%, rgba(26, 29, 58, 0.95) 100%);
    border-right: 1px solid rgba(147, 112, 219, 0.2);
    border-bottom: 1px solid rgba(255, 183, 0, 0.2);
}
html.dark-theme .sidebar-wrapper .sidebar-header .logo-text {
    color: #e7e9ec;
}
html.dark-theme .sidebar-wrapper .sidebar-header .toggle-btn {
    color: #e7e9ec;
}
html.dark-theme .sidebar-wrapper .sidebar-header .toggle-btn:hover {
    color: #fff;
}
html.dark-theme .sidebar-wrapper .sidebar-header .toggle-btn:active {
    color: #fff;
    background: rgb(255 255 255 / 25%);
}
html.dark-theme .sidebar-wrapper .metismenu a {
    color: #9ea4aa;
}
html.dark-theme .sidebar-wrapper .metismenu .mm-active > a,
html.dark-theme .sidebar-wrapper .metismenu a:active,
html.dark-theme .sidebar-wrapper .metismenu a:focus,
html.dark-theme .sidebar-wrapper .metismenu a:hover {
    color: var(--primary-orange);
    text-decoration: none;
    background: linear-gradient(90deg, rgba(255, 183, 0, 0.15) 0%, rgba(147, 112, 219, 0.1) 100%);
    border-left: 3px solid var(--primary-orange);
    box-shadow: 0 2px 10px rgba(255, 183, 0, 0.1);
}
html.dark-theme .sidebar-wrapper .metismenu ul {
    border: 1px solid #ffffff00;
    background: rgb(255 255 255 / 8%);
}
html.dark-theme .simplebar-scrollbar:before {
    background: rgba(255, 255, 255, 0.4);
}
html.dark-theme .footer {
    background: #1e1e1e;
    border-top: 1px solid rgb(255 255 255 / 12%);
}
html.dark-theme .btn-light-warning {
    color: #ff9305;
}
html.dark-theme .btn-light-dark {
    color: #757c83;
}
html.dark-theme .modal-content {
    background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, var(--bg-dark-tertiary) 100%);
    border: 1px solid rgba(147, 112, 219, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
html.dark-theme .modal-header {
    background: linear-gradient(135deg, rgba(26, 29, 58, 0.8) 0%, rgba(18, 21, 46, 0.8) 100%);
    border-bottom: 1px solid rgba(255, 183, 0, 0.2);
}
html.dark-theme .modal-footer {
    border-top: 1px solid rgba(255, 183, 0, 0.2);
}
html.dark-theme .email-wrapper {
    background: #171717;
    box-shadow: 0 0.1rem 0.7rem rgb(0 0 0 / 24%);
}
html.dark-theme .email-sidebar {
    background: #171717;
    border-right: 1px solid rgb(255 255 255 / 0.12);
}
html.dark-theme .email-sidebar-header {
    background: #171717;
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
    border-right: 0 solid rgb(255 255 255 / 12%);
}
html.dark-theme .email-navigation {
    border-bottom: 1px solid rgb(255 255 255 / 13%);
}
html.dark-theme .email-navigation a.list-group-item {
    color: #e4e5e6;
    background-color: #171717;
    border-bottom: 1px solid rgb(0 0 0 / 0%);
}
html.dark-theme .email-navigation a.list-group-item:hover {
    background-color: rgb(0 123 255 / 15%);
}
html.dark-theme .email-meeting a.list-group-item {
    color: #e4e5e6;
    background-color: #171717;
    border-bottom: 1px solid rgb(0 0 0 / 0%);
}
html.dark-theme .email-meeting a.list-group-item:hover {
    background-color: rgb(0 123 255 / 15%);
}
html.dark-theme .list-group-item {
    background-color: #171717;
    border: 1px solid rgb(255 255 255 / 13%);
}
html.dark-theme .email-navigation a.list-group-item.active {
    color: #0d6efd;
    font-weight: 600;
    background-color: rgb(13 110 253 / 14%);
}
html.dark-theme .list-group-flush > .list-group-item {
    border-width: 0 0 1px;
}
html.dark-theme .border-top {
    border-top: 1px solid rgb(255 255 255 / 13%) !important;
}
html.dark-theme .email-header {
    background: #171717;
    border-bottom: 1px solid rgb(255 255 255 / 13%);
}
html.dark-theme .email-content {
    background: #171717;
}
html.dark-theme .email-list div.email-message {
    background: #171717;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
    color: #e4e5e6;
}
html.dark-theme .email-list div.email-message:hover {
    transition: all 0.2s ease-out;
    background: #434a50;
}
html.dark-theme .bg-body {
    background-color: #1e1e1e !important;
}
html.dark-theme .email-time {
    font-size: 13px;
    color: #8c969e;
}
html.dark-theme .chat-time {
    font-size: 13px;
    color: #8c969e;
}
html.dark-theme .widgets-icons {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(147, 112, 219, 0.4);
}
html.dark-theme .invoice {
    background-color: #171717;
}
html.dark-theme .chat-wrapper {
    background: #171717;
    box-shadow: 0 0.1rem 0.7rem rgb(0 0 0 / 22%);
}
html.dark-theme .chat-sidebar {
    background: #171717;
    border-right: 1px solid rgb(255 255 255 / 13%);
}
html.dark-theme .chat-sidebar-header {
    background: #171717;
    border-bottom: 1px solid rgb(255 255 255 / 13%);
    border-right: 0 solid rgb(255 255 255 / 13%);
}
html.dark-theme .chat-header {
    background: #171717;
    border-bottom: 1px solid rgb(255 255 255 / 13%);
}
html.dark-theme .chat-tab-menu li a.nav-link {
    color: #c3c5c8;
}
html.dark-theme .chat-title {
    color: #e4e5e6;
}
html.dark-theme .chat-msg {
    font-size: 14px;
    color: #848992;
}
html.dark-theme .chat-top-header-menu a {
    color: #c3c5c8;
    background-color: #1e1e1e;
    border: 1px solid rgb(255 255 255 / 15%);
}
html.dark-theme .chat-content-leftside .chat-left-msg {
    background-color: #1e1e1e;
}
html.dark-theme .chat-content-rightside .chat-right-msg {
    background-color: #41484e;
}
html.dark-theme .chat-footer {
    background: #171717;
    border-top: 1px solid rgb(255 255 255 / 13%);
}
html.dark-theme .chat-footer-menu a {
    color: #c3c5c8;
    background-color: #1e1e1e;
    border: 1px solid rgb(255 255 255 / 15%);
}
html.dark-theme .fm-menu .list-group a {
    color: #c3c5c8;
}
html.dark-theme .fm-icon-box {
    background: #1e1e1e;
    color: #fff;
}
html.dark-theme .contacts-social a {
    background: #1e1e1e;
    color: #fff;
}
html.dark-theme .invoice table td,
html.dark-theme .invoice table th {
    background: rgb(255 255 255 / 12%);
    border-bottom: 1px solid rgb(255 255 255 / 12%);
}
html.dark-theme .invoice table .no {
    color: #fff;
    background: #007bff;
}
html.dark-theme .invoice main .notices {
    background: #1e1e1e;
}
html.dark-theme .invoice footer {
    color: #e4e5e6;
    border-top: 1px solid rgb(255 255 255 / 12%);
}
html.dark-theme .fc-theme-standard td,
html.dark-theme .fc-theme-standard th {
    border: 1px solid rgb(255 255 255 / 0.12);
}
html.dark-theme .fc-theme-standard .fc-scrollgrid {
    border: 1px solid rgb(255 255 255 / 12%);
}
html.dark-theme .fc .fc-col-header-cell-cushion {
    color: #fff;
}
html.dark-theme .fc .fc-daygrid-day-number {
    color: #fff;
}
html.dark-theme .breadcrumb {
}
html.dark-theme .breadcrumb-item.active {
    color: #8b969f;
}
html.dark-theme .breadcrumb-title {
    border-right: 1.5px solid rgb(255 255 255 / 18%);
}
html.dark-theme .btn-outline-secondary {
    color: #c5cace;
    border-color: #c2c9ce;
}
html.dark-theme .btn-light {
    color: #fff;
    background-color: rgb(255 255 255 / 15%);
    border-color: rgb(255 255 255 / 22%);
}
html.dark-theme .btn-light:hover {
    color: #fff;
    background-color: rgb(255 255 255 / 25%);
    border-color: rgb(255 255 255 / 32%);
}
html.dark-theme .btn-dark {
    color: #fff;
    background-color: #181e22;
    border-color: #181e22;
}
html.dark-theme .btn-dark:hover {
    color: #fff;
    background-color: #13181b;
    border-color: #13181b;
}
html.dark-theme .btn-outline-dark {
    color: #fff;
    border-color: #181e22;
}
html.dark-theme .page-link {
    color: #b2b6ba;
    background-color: rgba(26, 29, 58, 0.6);
    border: 1px solid rgba(147, 112, 219, 0.3);
    transition: all 0.3s ease;
}
html.dark-theme .page-link:hover {
    background-color: rgba(255, 183, 0, 0.15);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}
html.dark-theme .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-pink) 100%);
    border-color: var(--primary-orange);
    box-shadow: 0 2px 10px rgba(255, 183, 0, 0.4);
}
html.dark-theme .page-item.disabled .page-link {
    color: #b0b6bc;
    background-color: rgba(26, 29, 58, 0.3);
    border-color: rgba(147, 112, 219, 0.2);
}
html.dark-theme .progress {
    background-color: rgba(26, 29, 58, 0.6);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
html.dark-theme .progress-bar {
    background: linear-gradient(90deg, var(--primary-orange) 0%, var(--accent-pink) 100%);
    box-shadow: 0 2px 10px rgba(255, 183, 0, 0.4);
}
html.dark-theme .chip {
    color: rgb(198 200 203);
    background-color: #1e1e1e;
    border: 1px solid rgb(255 255 255 / 15%);
}
html.dark-theme .bg-light {
    background-color: rgb(255 255 255 / 15%) !important;
}
html.dark-theme ul.icons li {
    box-shadow: 0 1px 5px #13171a;
    background: #1e1e1e;
}
html.dark-theme ul.icons li i {
    color: #fff;
}
html.dark-theme .icon-box {
    background: #171717;
    box-shadow: 0 1px 5px #161a1e;
}
html.dark-theme .pByfF i {
    color: #fff;
}
html.dark-theme .form-control {
    color: #c0c8d1;
    background-color: rgba(26, 29, 58, 0.6);
    border: 1px solid rgba(147, 112, 219, 0.3);
    transition: all 0.3s ease;
}
html.dark-theme .form-select {
    color: #c0c8d1;
    background-color: rgba(26, 29, 58, 0.6);
    border: 1px solid rgba(147, 112, 219, 0.3);
    transition: all 0.3s ease;
}
html.dark-theme .form-control:focus {
    background-color: rgba(26, 29, 58, 0.8);
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 183, 0, 0.25),
                0 0 20px rgba(255, 183, 0, 0.15);
}
html.dark-theme .form-select:focus {
    background-color: rgba(26, 29, 58, 0.8);
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 183, 0, 0.25),
                0 0 20px rgba(255, 183, 0, 0.15);
}
html.dark-theme .form-control:disabled,
html.dark-theme .form-control[readonly] {
    background-color: rgb(255 255 255 / 22%);
}
html.dark-theme .form-control::placeholder {
    color: #e4e5e6 !important;
    opacity: 0.5 !important;
}
html.dark-theme .picker__input {
    background-color: #1e1e1e !important;
    border: 1px solid rgb(255 255 255 / 34%) !important;
}
html.dark-theme .select2-container--bootstrap4 .select2-selection {
    background-color: rgb(255 255 255 / 0.14);
    border: 1px solid rgb(255 255 255 / 0.35);
}
html.dark-theme .select2-dropdown {
    background-color: #171717;
    border: 1px solid rgb(255 255 255 / 38%);
}
html.dark-theme .select2-search--dropdown .select2-search__field {
    border: 1px solid rgb(255 255 255 / 34%);
    background-color: rgb(255 255 255 / 14%);
    color: #e3dfdf;
}
html.dark-theme .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
    color: #dee1e5;
    border: 1px solid rgb(255 255 255 / 55%);
    background: #171717;
}
html.dark-theme .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered .select2-search__field {
    background: 0 0;
    color: #e6e1e1;
}
html.dark-theme .select2-container--bootstrap4 .select2-dropdown .select2-results__option[aria-selected="true"] {
    background-color: rgb(255 255 255 / 20%);
}
html.dark-theme .ff_fileupload_wrap .ff_fileupload_dropzone {
    background-color: rgb(252 252 252 / 14%);
    border: 2px dashed rgb(255 255 255 / 50%);
}
html.dark-theme .imageuploadify {
    background-color: rgb(255 255 255 / 14%);
    border: 2px dashed rgb(255 255 255 / 0.5);
}
html.dark-theme .bootstrap-tagsinput {
    background-color: #1e1e1e;
    border: 1px solid rgb(255 255 255 / 35%);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 37%);
    color: #e5e0e0;
}
html.dark-theme .input-group-text {
    color: var(--accent-purple-light);
    background-color: rgba(26, 29, 58, 0.6);
    border: 1px solid rgba(147, 112, 219, 0.3);
}
html.dark-theme .table-bordered td,
html.dark-theme .table-bordered th {
    border: 1px solid rgb(255 255 255 / 12%);
}
html.dark-theme .table-dark {
    background-color: #1d2126;
}
html.dark-theme .table .thead-light th {
    background-color: rgb(255 255 255 / 20%);
    border-color: #fff;
}
html.dark-theme .table-bordered {
    border: 1px solid rgb(255 255 255 / 12%);
}
html.dark-theme .login-card {
    border-right: 1px solid rgb(255 255 255 / 12%) !important;
}
html.dark-theme .border-bottom {
    border-bottom: 1px solid rgb(255 255 255 / 14%) !important;
}
html.dark-theme .navbar-light .navbar-nav .nav-link {
    color: rgb(255 255 255 / 50%);
}
html.dark-theme .navbar-light .navbar-nav .active > .nav-link,
html.dark-theme .navbar-light .navbar-nav .nav-link.active,
html.dark-theme .navbar-light .navbar-nav .nav-link.show,
html.dark-theme .navbar-light .navbar-nav .show > .nav-link {
    color: rgb(255 255 255 / 90%);
}
html.dark-theme .bg-light-purple {
    background-color: rgb(130 128 255 / 32%) !important;
}
html.dark-theme .bg-light-primary {
    background-color: rgb(103 58 183 / 33%) !important;
}
html.dark-theme .bg-light-danger {
    background-color: rgb(220 53 69 / 33%) !important;
}
html.dark-theme .bg-light-shineblue {
    background-color: rgb(1 215 255 / 33%) !important;
}
html.dark-theme .bg-light-cyne {
    background-color: rgb(0 139 139 / 32%) !important;
}
html.dark-theme .bg-light-warning {
    background-color: rgb(255 193 7 / 32%) !important;
}
html.dark-theme .bg-light-success {
    background-color: rgb(40 167 69 / 33%) !important;
}
html.dark-theme .bg-light-info {
    background-color: rgb(25 143 237 / 22%) !important;
}
html.dark-theme .bg-light-sinata {
    background-color: rgb(165 43 187 / 33%) !important;
}
html.dark-theme .bg-light-mehandi {
    background: rgb(131 152 56 / 32%) !important;
}
html.dark-theme .logo-white {
    display: block;
}
html.dark-theme .logo-dark {
    display: none;
}
html.dark-theme .email-toggle-btn {
    color: #c9cbce;
    background-color: #ffffff00;
}
html.dark-theme .chat-toggle-btn {
    color: #c9cbce;
    background-color: #ffffff00;
    border: 0 solid rgb(0 0 0 / 15%);
}
html.dark-theme .apexcharts-datalabel,
html.dark-theme .apexcharts-datalabel-label,
html.dark-theme .apexcharts-datalabel-value,
html.dark-theme .apexcharts-datalabels,
html.dark-theme .apexcharts-pie-label {
    fill: #fff;
}
html.dark-theme .product-discount {
    color: #fff;
    background-color: #fdad02;
}
@media screen and (max-width: 1024px) {
    html.dark-theme .wrapper.toggled .overlay {
        background: #fff;
        opacity: 0.4;
    }
    html.dark-theme .chat-toggled .overlay {
        background: #fff;
        opacity: 0.4;
    }
    html.dark-theme .email-toggled .overlay {
        background: #fff;
        opacity: 0.4;
    }
    html.dark-theme .full-search-bar {
        background: #171717;
    }
    html.dark-theme .search-bar .btn-search-back {
        background: rgb(3 11 35 / 0%);
        border: 1px solid rgb(217 211 211 / 0%);
        height: calc(1.6em + 0.75rem + 2px);
    }
    html.dark-theme .search-bar .btn-search-back i {
        color: #e4e5e6;
    }
}
@media screen and (max-width: 767px) {
    html.dark-theme .topbar .navbar-nav .nav-link {
        border-left: 0 solid #ededed;
    }
}

/* === LINKS === */
a {
    color: var(--primary-orange);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-pink);
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

/* === BUTTONS === */
html.dark-theme .btn-primary {
    background: linear-gradient(135deg, #ffb700 0%, #ffa500 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 183, 0, 0.4),
                0 0 20px rgba(255, 165, 0, 0.2);
    transition: all 0.3s ease;
}

html.dark-theme .btn-primary:hover {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.6),
                0 0 30px rgba(255, 140, 0, 0.3);
    transform: translateY(-2px);
}

html.dark-theme .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 183, 0, 0.4);
}

html.dark-theme .btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 183, 0, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, #ffb700 0%, #ffa500 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 183, 0, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.6);
    transform: translateY(-2px);
}

/* === FORM CHECK === */
html.dark-theme .form-check-input:checked {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    box-shadow: 0 0 10px rgba(255, 183, 0, 0.5);
}

.form-check-input:checked {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* === LOGIN PAGE SPECIAL STYLING === */
html.dark-theme .section-authentication-signin .card {
    background: linear-gradient(135deg, rgba(18, 21, 46, 0.95) 0%, rgba(26, 29, 58, 0.95) 100%);
    border: 1px solid rgba(255, 183, 0, 0.2);
    box-shadow: 0 8px 32px rgba(255, 75, 158, 0.15), 
                0 0 40px rgba(147, 112, 219, 0.1);
    backdrop-filter: blur(10px);
}

html.dark-theme .section-authentication-signin .card .border {
    border: 1px solid rgba(255, 183, 0, 0.25) !important;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.6) 0%, rgba(26, 29, 58, 0.4) 100%);
}

html.dark-theme .section-authentication-signin h3 {
    background: linear-gradient(135deg, #ffb700 0%, #ff69b4 50%, #9370db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* === LOGO GLOW === */
html.dark-theme .logo-icon {
    filter: drop-shadow(0 0 10px rgba(255, 183, 0, 0.5));
}

/* === SCROLLBAR === */
html.dark-theme ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html.dark-theme ::-webkit-scrollbar-track {
    background: var(--bg-dark-primary);
}

html.dark-theme ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-purple) 100%);
    border-radius: 5px;
}

html.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-pink) 0%, #8b00ff 100%);
}

/* === TABLE HOVER === */
html.dark-theme .table-hover tbody tr:hover {
    background: linear-gradient(90deg, rgba(255, 183, 0, 0.08) 0%, rgba(147, 112, 219, 0.05) 100%);
}

/* === GRADIENT UTILITIES === */
html.dark-theme .bg-gradient-custom-1 {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-pink) 100%) !important;
}

html.dark-theme .bg-gradient-custom-2 {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%) !important;
}

html.dark-theme .bg-gradient-custom-3 {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%) !important;
}

html.dark-theme .text-gradient {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-pink) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === CARD BODY === */
html.dark-theme .card-body {
    background: transparent;
    position: relative;
}

/* === CARD CON BADGE/PREZZI === */
html.dark-theme .card .badge {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-pink) 100%);
    box-shadow: 0 2px 10px rgba(255, 183, 0, 0.3);
    border: none;
    padding: 0.35em 0.65em;
    font-weight: 600;
}

/* === CARD CON ICONE/LOGHI === */
html.dark-theme .card img {
    transition: all 0.3s ease;
}

html.dark-theme .card:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(255, 183, 0, 0.4));
}

/* === CARD TITOLI === */
html.dark-theme .card h1,
html.dark-theme .card h2,
html.dark-theme .card h3,
html.dark-theme .card h4,
html.dark-theme .card h5,
html.dark-theme .card h6 {
    color: #fff;
    font-weight: 600;
}

/* === CARD TEXT MUTED === */
html.dark-theme .card .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* === SEPARATORI NELLE CARD === */
html.dark-theme .card hr {
    border-top: 1px solid rgba(147, 112, 219, 0.2);
    opacity: 1;
}

/* === CARD CON BACKGROUND SCURO === */
html.dark-theme .card.bg-dark,
html.dark-theme .card[style*="background"] {
    border: 1px solid rgba(255, 183, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(147, 112, 219, 0.15);
}


