:root {
    color-scheme: light;
    --light-bg: #f3f6fb;
    --light-surface: #ffffff;
    --light-surface-raised: #f1f5fb;
    --light-surface-hover: #e6edf8;
    --light-border: rgba(15, 23, 42, 0.12);
    --light-text: #1e293b;
    --light-text-muted: #64748b;
    --light-text-strong: #0f172a;
    --light-accent: #2563eb;
    --light-accent-strong: #1d4ed8;
}

html,
body {
    min-height: 100vh;
    background: var(--light-bg);
    color: var(--light-text);
}

body,
button,
input,
select,
textarea {
    font-family: "Nunito Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    color: var(--light-text);
    line-height: 1.55;
}

::selection {
    background: rgba(37, 99, 235, 0.32);
    color: var(--light-text-strong);
}

a {
    color: var(--light-accent);
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

a:hover,
a:focus {
    color: #1e40af;
}

h1,
h2,
h3,
h4,
h5,
h6,
label,
strong,
b {
    color: var(--light-text);
}

small,
.text-muted {
    color: var(--light-text-muted) !important;
}

.wrapper,
.page-wrap,
.main-content .container,
.main-content .container-fluid {
    background: transparent;
}

.wrapper .page-wrap .main-content {
    background-color: var(--light-bg);
}

.wrapper .header-top {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--light-border);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.wrapper .header-top[header-theme="light"] {
    background: rgba(255, 255, 255, 0.96);
}

.wrapper .header-top .container-fluid {
    padding-right: 0;
    padding-left: 0;
}

.header-top .header-brand,
.header-top .nav-link,
.header-top .dropdown-toggle {
    color: var(--light-text);
}

.wrapper .header-top .header-brand-img {
    filter: none;
}

.header-top .nav-link {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
}

.header-top .nav-link:hover,
.header-top .nav-link:focus {
    border-color: var(--light-border);
    background: var(--light-surface-hover);
    color: var(--light-accent);
}

.wrapper .header-top .top-menu .nav-link {
    width: 42px;
    height: 42px;
    border: 1px solid var(--light-border);
    background: var(--light-surface-raised);
    color: var(--light-text);
}

.wrapper .header-top .top-menu .nav-link:hover,
.wrapper .header-top .top-menu .nav-link:focus {
    border-color: rgba(37, 99, 235, 0.45);
    background: var(--light-surface-hover);
    color: var(--light-accent);
}

.wrapper .header-top .top-menu .nav-link .material-symbols-outlined {
    color: inherit;
}

.header-top .avatar {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(37, 99, 235, 0.55);
    border-radius: 50%;
    object-fit: cover;
}

.header-top .alert {
    margin: 10px -24px -10px;
    border: 0;
    border-top: 1px solid var(--light-border);
    background: rgba(241, 245, 251, 0.88);
    color: var(--light-text-muted);
}

.wrapper .header-top .top-menu .dropdown .dropdown-menu {
    border: 1px solid var(--light-border);
    background: var(--light-surface);
    color: var(--light-text);
}

.wrapper .header-top .top-menu .dropdown .dropdown-menu.user-dropdown {
    border-color: var(--light-border);
    background-color: var(--light-surface) !important;
    color: var(--light-text);
}

.wrapper .header-top .top-menu .dropdown .dropdown-menu.user-dropdown.show {
    background-color: var(--light-surface) !important;
}

.wrapper .header-top .top-menu .dropdown .dropdown-menu.user-dropdown .dropdown-item {
    background-color: var(--light-surface) !important;
    color: var(--light-text);
}

.wrapper .header-top .top-menu .dropdown .dropdown-menu.user-dropdown .dropdown-item:hover,
.wrapper .header-top .top-menu .dropdown .dropdown-menu.user-dropdown .dropdown-item:focus {
    background: var(--light-surface-hover) !important;
    color: var(--light-text-strong);
}

.apps-modal .dropdown-menu.sim-dropdown {
    border: 1px solid var(--light-border);
    background-color: var(--light-surface) !important;
    color: var(--light-text);
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--light-text-muted) var(--light-surface-raised);
}

.apps-modal .dropdown-menu.sim-dropdown::-webkit-scrollbar {
    width: 6px;
}

.apps-modal .dropdown-menu.sim-dropdown::-webkit-scrollbar-track {
    border-radius: 3px;
    background: var(--light-surface-raised);
}

.apps-modal .dropdown-menu.sim-dropdown::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: var(--light-text-muted);
}

.apps-modal .dropdown-menu.sim-dropdown .dropdown-item {
    background-color: var(--light-surface) !important;
    color: var(--light-text);
}

.apps-modal .dropdown-menu.sim-dropdown .dropdown-item:hover,
.apps-modal .dropdown-menu.sim-dropdown .dropdown-item:focus {
    background: var(--light-surface-hover) !important;
    color: var(--light-text-strong);
}

.wrapper .page-wrap .app-sidebar.colored .sidebar-header {
    border-bottom: 1px solid var(--light-border);
    background: var(--light-surface);
}

.wrapper .page-wrap .app-sidebar.colored .sidebar-header .header-brand,
.wrapper .page-wrap .app-sidebar.colored .sidebar-content .nav-container .navigation-main .nav-item a {
    color: var(--light-text);
}

.wrapper .page-wrap .app-sidebar.colored .sidebar-content {
    background: var(--light-surface);
}

.wrapper .page-wrap .app-sidebar.colored .sidebar-content .nav-container .navigation-main .nav-item {
    border-color: var(--light-border);
}

.wrapper .page-wrap .app-sidebar.colored .sidebar-content .nav-container .navigation-main .nav-item a i {
    color: var(--light-text-muted);
}

.wrapper .page-wrap .app-sidebar.colored .sidebar-content .nav-container .navigation-main .nav-item.active a,
.wrapper .page-wrap .app-sidebar.colored .sidebar-content .nav-container .navigation-main .nav-item a:hover {
    color: var(--light-accent);
}

.wrapper .page-wrap .app-sidebar.colored .sidebar-content .nav-container .navigation-main .nav-item .submenu-content {
    background: var(--light-surface-raised);
}

.main-content {
    padding-top: 90px !important;
}

.main-content .container-fluid {
    padding-right: clamp(16px, 3vw, 40px);
    padding-left: clamp(16px, 3vw, 40px);
}

.page-header,
.page-header-title,
.page-header-title h1,
.page-header-title h2 {
    color: var(--light-text);
}

.card,
.modal-content,
.dropdown-menu,
.list-group-item,
.popover,
.toast,
.offcanvas {
    border: 1px solid var(--light-border);
    border-radius: 16px;
    background-color: var(--light-surface);
    color: var(--light-text);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.card {
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
}

.card .card-header,
.card .card-footer,
.modal-header,
.modal-footer {
    border-color: var(--light-border);
    background-color: transparent;
    color: var(--light-text);
}

.card .card-header h3,
.card .card-body,
.card .card-footer {
    color: var(--light-text);
}

.card .card-header {
    padding: 20px 22px;
}

.card .card-body {
    padding: 22px;
}

.btn {
    border-radius: 10px;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    border-color: var(--light-accent-strong);
    background: linear-gradient(135deg, var(--light-accent), var(--light-accent-strong));
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: #70bdff;
    background: linear-gradient(135deg, #83c8ff, #519ef5);
    color: #ffffff;
}

.btn-secondary,
.btn-light {
    border-color: var(--light-border);
    background: var(--light-surface-raised);
    color: var(--light-text);
}

.btn-secondary:hover,
.btn-light:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: var(--light-surface-hover);
    color: var(--light-text-strong);
}

.btn-outline-primary {
    border-color: var(--light-accent);
    color: var(--light-accent);
}

.btn-outline-primary:hover {
    background: var(--light-accent);
    color: #ffffff;
}

.form-control,
.custom-select,
.custom-file-label,
.input-group-text,
select,
textarea,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) {
    border: 1px solid var(--light-border);
    border-radius: 10px;
    background-color: #ffffff;
    color: var(--light-text);
}

.form-control:focus,
.custom-select:focus,
select:focus,
textarea:focus,
input:focus {
    border-color: rgba(37, 99, 235, 0.75);
    background-color: #ffffff;
    color: var(--light-text-strong);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-group > .form-control,
.input-group > .custom-select,
.input-group-prepend > .input-group-text,
.input-group-prepend > .btn,
.input-group-append > .input-group-text,
.input-group-append > .btn {
    border-radius: 0 !important;
}

.input-group > .input-group-prepend:first-child > :first-child,
.input-group > .form-control:first-child,
.input-group > .custom-select:first-child {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

.input-group > .input-group-append:last-child > :last-child,
.input-group > .form-control:last-child,
.input-group > .custom-select:last-child {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.input-group > .input-group-prepend > .btn,
.input-group > .input-group-append > .btn {
    transform: none;
}

.input-group-text {
    background-color: var(--light-surface-raised);
    color: var(--light-text-muted);
}

.date-range-group {
    flex-wrap: nowrap;
    align-items: stretch;
}

.date-range-group > .input-group-prepend > .input-group-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 100%;
    padding: 0 12px;
    border-right: 0;
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--light-accent);
}

.date-range-group > .form-control {
    min-width: 0;
    height: auto;
    min-height: 40px;
    border-left-width: 1px;
}

.date-range-group > .form-control::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
}
select:not([multiple]):not([size]),
select.form-control:not([multiple]):not([size]),
.custom-select:not([multiple]):not([size]) {
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select:not([multiple]):not([size]):focus,
.custom-select:not([multiple]):not([size]):focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

select option {
    background-color: var(--light-surface);
    color: var(--light-text);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.custom-control-label::before,
.custom-file-label,
fieldset,
hr {
    border-color: var(--light-border);
}

.table,
table {
    color: var(--light-text);
}

.table th,
.table td,
table th,
table td {
    border-color: var(--light-border);
}

.table thead th,
thead th {
    border-bottom-color: var(--light-border);
    background: rgba(241, 245, 251, 0.72);
    color: var(--light-text-muted);
    font-weight: 700;
}

.table-hover tbody tr:hover,
.table tbody tr:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--light-text-strong);
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(15, 23, 42, 0.025);
}

.dropdown-menu {
    padding: 8px;
    overflow: auto;
}

.dropdown-item,
.dropdown-item-text {
    border-radius: 8px;
    color: var(--light-text);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--light-surface-hover);
    color: var(--light-text-strong);
}

.modal-header,
.modal-footer {
    padding: 18px 22px;
}

.modal-body {
    color: var(--light-text);
}

.modal-backdrop.show {
    opacity: 0.5;
}

.pagination {
    gap: 6px;
    align-items: center;
}

.pagination .page-item .page-link,
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid var(--light-border) !important;
    border-radius: 10px !important;
    background: var(--light-surface-raised) !important;
    color: var(--light-text) !important;
    font-weight: 600;
    box-shadow: none !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pagination .page-item .page-link:hover {
    border-color: var(--light-accent-strong) !important;
    color: var(--light-text-strong) !important;
}

.pagination .page-item.active .page-link {
    border-color: var(--light-accent-strong) !important;
    background: var(--light-accent-strong) !important;
    color: #ffffff !important;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    background: var(--light-surface) !important;
    color: var(--light-text-muted) !important;
}

@media (max-width: 575.98px) {
    #modal-get-targetItems .rewards-pagination-nav {
        width: 100%;
    }

    #modal-get-targetItems .rewards-pagination {
        justify-content: center;
        gap: 4px;
    }

    #modal-get-targetItems .rewards-pagination .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 4px;
        font-size: 0.85rem;
    }

    #modal-get-targetItems .modal-footer {
        justify-content: center;
        padding: 12px;
    }
}

.breadcrumb,
.nav-tabs,
.nav-tabs .nav-link,
.progress {
    border-color: var(--light-border);
    background-color: var(--light-surface-raised);
}

.nav-tabs .nav-link {
    color: var(--light-text-muted);
}

.nav-tabs .nav-link.active {
    border-color: var(--light-border) var(--light-border) var(--light-surface);
    background: var(--light-surface);
    color: var(--light-accent);
}

.badge-light,
.bg-white {
    background-color: var(--light-surface-raised) !important;
    color: var(--light-text) !important;
}

.text-dark,
.bg-white .text-dark {
    color: var(--light-text) !important;
}

.footer-bar {
    border-top: 1px solid var(--light-border);
    background: rgba(255, 255, 255, 0.98);
    color: var(--light-text);
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.07);
}

.date-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--light-border);
    border-radius: 999px;
    background: var(--light-surface-raised);
}

.date-switcher button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 0;
    background: transparent;
    color: var(--light-text);
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}

.date-switcher .date-switcher-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
}

.date-switcher .date-switcher-label {
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: capitalize;
    white-space: nowrap;
}

.date-switcher .material-symbols-outlined {
    margin: 0;
    font-size: 18px;
    color: inherit;
}

.date-switcher .date-switcher-label .material-symbols-outlined {
    font-size: 16px;
    color: var(--light-accent);
}

.date-switcher button:hover,
.date-switcher button:focus {
    outline: none;
    background: var(--light-surface-hover);
    color: var(--light-text-strong);
}

.footer-bar {
    right: 0;
    bottom: 14px !important;
    left: 0;
    width: calc(100% - 32px) !important;
    max-width: 780px;
    margin: 0 auto;
    padding: 8px 14px !important;
    border: 1px solid var(--light-border);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
}

.footer-bar > .row {
    margin: 0;
}

.footer-bar .col-12 {
    padding: 0;
}

.footer-bar .btn {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    border-radius: 999px;
}

.footer-bar .btn:hover {
    transform: none;
    background: var(--light-surface-hover);
}

.footer-bar .btn h6 {
    margin: 0 0 0 6px;
}

.footer-bar .dropup .dropdown-menu {
    margin-bottom: 18px !important;
    border-radius: 18px;
}

.footer-bar .footer-dropup-menu {
    border: 1px solid var(--light-border) !important;
    background: var(--light-surface);
    color: var(--light-text);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
}

.footer-bar .footer-dropup-menu h6,
.footer-bar .footer-dropup-menu .material-symbols-outlined {
    color: var(--light-text-strong) !important;
}

.footer-bar .footer-dropup-menu .cursor-pointer {
    padding: 2px 8px;
    border-radius: 10px;
}

.footer-bar .footer-dropup-menu .cursor-pointer:hover {
    background: var(--light-surface-hover);
}

.footer-bar .footer-dropup-title {
    padding: 2px 8px 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--light-border);
    color: var(--light-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wrapper .page-wrap .right-sidebar {
    top: 76px !important;
    bottom: 88px !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #fb6340;
    border-right: 0;
    background: var(--light-surface) !important;
    border-radius: 18px 0 0 18px;
    box-shadow: 0 0 24px rgba(251, 99, 64, 0.22) !important;
    scrollbar-width: none;
}

.right-sidebar::-webkit-scrollbar,
.right-sidebar *::-webkit-scrollbar {
    display: none;
}

.right-sidebar .shoppingCart {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    position: static;
}

.right-sidebar .shoppingCart .card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 14px 16px;
}

.right-sidebar .shoppingCart form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.right-sidebar .shoppingCart .cart-list {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
}

.right-sidebar .shoppingCart .cart-total {
    flex: 0 0 auto;
    margin: 0;
    border-top: 1px solid var(--light-border);
}

.right-sidebar .shoppingCart .cart-total .input-group {
    margin-bottom: 0 !important;
}

.right-sidebar .notification-group,
.right-sidebar .cart-total-group {
    flex-wrap: nowrap;
    align-items: stretch;
}

.right-sidebar .notification-group > .input-group-prepend > .dropdown,
.right-sidebar .notification-group > .input-group-prepend > .dropdown > .input-group-text {
    height: 100%;
}

.right-sidebar .notification-group > .input-group-prepend > .dropdown > .input-group-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 0 12px;
    border: 1px solid #fb6340;
    border-right: 0;
    border-radius: 10px 0 0 10px !important;
    background: #fb6340 !important;
    color: #ffffff !important;
}

.right-sidebar .notification-group > .form-control {
    height: 40px;
    border-radius: 0 10px 10px 0 !important;
}

.right-sidebar .cart-total-group > .input-group-prepend > .btn,
.right-sidebar .cart-total-group > .input-group-append > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 40px;
    padding: 0 !important;
}

.right-sidebar .cart-total-group > .input-group-prepend > .btn {
    border-color: var(--light-border);
    background: var(--light-surface-raised);
}

.right-sidebar .cart-total-group > .form-control {
    height: 40px;
    font-weight: 700;
    border-left-width: 0;
    border-right-width: 0;
}

.right-sidebar .cart-total-group > .input-group-append > .btn {
    border-color: transparent;
}

#toggleSidebarBtn {
    bottom: 104px !important;
}

.main-content {
    padding-bottom: 96px;
}

@media (max-width: 575.98px) {
    .footer-bar {
        width: calc(100% - 16px) !important;
        padding: 6px 8px !important;
    }

    .footer-bar .btn h6 {
        font-size: 12px;
    }

    .date-switcher {
        gap: 0;
        padding: 2px;
    }

    .date-switcher .date-switcher-btn {
        width: 26px;
        height: 28px;
    }

    .date-switcher .date-switcher-label {
        height: 28px;
        gap: 4px;
        padding: 0 6px;
        font-size: 11px;
        letter-spacing: 0;
    }

    .date-switcher .date-switcher-label .material-symbols-outlined {
        display: none;
    }

    .date-switcher .material-symbols-outlined {
        font-size: 16px;
    }
}

.footer-bar .text-dark {
    color: var(--light-text) !important;
}

.footer-bar h6,
.footer-bar .btn {
    color: var(--light-text);
}

.right-sidebar {
    border-left: 1px solid var(--light-border);
    background: var(--light-surface);
    box-shadow: 0 0 28px rgba(15, 23, 42, 0.13) !important;
}

.admin-app {
    border-color: var(--light-border);
    border-radius: 12px;
    background: var(--light-surface-raised);
}

.god-app {
    border-color: rgba(220, 38, 38, 0.28);
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.08);
}

.modal-open .apps-modal .modal-dialog .modal-content {
    border-color: var(--light-border);
    background-color: var(--light-bg);
    color: var(--light-text);
}

.modal-open .apps-modal .close,
.modal-open .apps-modal .close .material-symbols-outlined {
    color: var(--light-text);
    opacity: 1;
    text-shadow: none;
}

.modal-open .apps-modal .close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid var(--light-border);
    transition: background 0.2s ease;
}

.modal-open .apps-modal .close:hover {
    background: rgba(15, 23, 42, 0.16);
}

#modal-get-targetItems .rewards-modal-close,
#modal-get-targetItems .rewards-modal-close .material-symbols-outlined {
    color: var(--light-text);
    opacity: 1;
    text-shadow: none;
}

#modal-get-targetItems .rewards-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 0 0 auto;
    padding: 0;
    border: 1px solid var(--light-border);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    transition: background 0.2s ease;
}

#modal-get-targetItems .rewards-modal-close:hover {
    background: rgba(15, 23, 42, 0.16);
}

.modal-open .apps-modal .modal-footer img {
    filter: none;
    opacity: 0.35;
}

.modal-open .apps-modal .modal-dialog .modal-content .modal-header,
.modal-open .apps-modal .modal-dialog .modal-content .modal-body,
.modal-open .apps-modal .modal-dialog .modal-content .modal-footer {
    background-color: transparent;
    color: var(--light-text);
}

.modal-open .apps-modal .modal-dialog .modal-content .modal-body .apps-wrap .app-item {
    border: 1px solid var(--light-border);
    border-radius: 14px;
    background: var(--light-surface);
    color: var(--light-text);
}

.modal-open .apps-modal .modal-dialog .modal-content .modal-body .apps-wrap .app-item a,
.modal-open .apps-modal .modal-dialog .modal-content .modal-body .apps-wrap .app-item a span {
    color: var(--light-text);
}

.modal-open .apps-modal .modal-dialog .modal-content .modal-body .apps-wrap .app-item a i,
.modal-open .apps-modal .modal-dialog .modal-content .modal-body .apps-wrap .app-item a .material-symbols-outlined {
    color: var(--light-accent);
}

.modal-open .apps-modal .modal-dialog .modal-content .modal-body .apps-wrap .app-item:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: var(--light-surface-hover);
}

.modal-open .apps-modal .modal-dialog .modal-content .modal-body .apps-wrap .app-item:hover a span {
    color: var(--light-text-strong);
}

.modal-open .apps-modal .modal-dialog .modal-content .modal-body .apps-wrap .app-item.admin-app {
    border-color: rgba(37, 99, 235, 0.24);
    background: rgba(37, 99, 235, 0.1);
}

.modal-open .apps-modal .modal-dialog .modal-content .modal-body .apps-wrap .app-item.god-app {
    border-color: rgba(220, 38, 38, 0.28);
    background: rgba(220, 38, 38, 0.08);
}

.bookmarks-page .proj-t-card.bg-light,
.bookmarks-page .proj-t-card.bg-yellow {
    border: 1px solid var(--light-border);
    background: var(--light-surface) !important;
    color: var(--light-text);
}

.bookmarks-page .proj-t-card.bg-yellow {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.14), 0 12px 30px rgba(15, 23, 42, 0.09);
}

.bookmarks-page .proj-t-card .card-title,
.bookmarks-page .proj-t-card .target-promo {
    color: var(--light-text);
}

.bookmarks-page .proj-t-card .pt-badge.bg-light,
.bookmarks-page .proj-t-card .pt-badge.bg-light.text-dark {
    border: 1px solid var(--light-border);
    background: var(--light-surface-raised) !important;
    color: var(--light-text) !important;
}

.bookmarks-page .proj-t-card .pt-badge img {
    border: none;
    background: #f8fafc !important;
}

.bookmarks-page .dropdown-menu {
    border-color: var(--light-border);
    background: var(--light-surface);
    color: var(--light-text);
}

.bookmarks-page .dropdown-menu .dropdown-item {
    background: var(--light-surface);
    color: var(--light-text);
}

.bookmarks-page .dropdown-menu .dropdown-item:hover,
.bookmarks-page .dropdown-menu .dropdown-item:focus {
    background: var(--light-surface-hover) !important;
    color: var(--light-text-strong);
}

.rewards-notification-dropdown.dropdown-menu {
    max-height: 240px;
    overflow-x: hidden;
    overflow-y: auto;
    border-color: var(--light-border);
    background-color: var(--light-surface) !important;
    color: var(--light-text);
    scrollbar-color: var(--light-text-muted) var(--light-surface-raised);
    scrollbar-width: thin;
}

.rewards-notification-dropdown .dropdown-item {
    background-color: var(--light-surface) !important;
    color: var(--light-text);
}

.rewards-notification-dropdown .dropdown-item:hover,
.rewards-notification-dropdown .dropdown-item:focus {
    background: var(--light-surface-hover) !important;
    color: var(--light-text-strong);
}

.rewards-notification-dropdown::-webkit-scrollbar {
    width: 6px;
}

.rewards-notification-dropdown::-webkit-scrollbar-track {
    border-radius: 3px;
    background: var(--light-surface-raised);
}

.rewards-notification-dropdown::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: var(--light-text-muted);
}

.bookmarks-page .modal-content {
    border-color: var(--light-border);
    background: var(--light-surface);
    color: var(--light-text);
}

.bookmarks-page #modal-add-credentials .border-top {
    border-color: var(--light-border) !important;
}

.bookmarks-page #modal-add-credentials .border-top > .btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    border: 1px solid var(--light-border);
    background: var(--light-surface-raised) !important;
    color: var(--light-text) !important;
    transform: none;
}

.bookmarks-page #modal-add-credentials .border-top > .btn .material-symbols-outlined {
    color: inherit;
}

.bookmarks-page #modal-add-credentials .border-top > .btn:hover {
    background: var(--light-accent) !important;
    color: #ffffff !important;
}

.bookmarks-page #modal-add-credentials .modal-header,
.bookmarks-page #modal-add-credentials .modal-body,
.bookmarks-page #modal-add-credentials .card-body {
    background: var(--light-surface);
    color: var(--light-text);
}

.bookmarks-page #modal-add-credentials .form-control,
.bookmarks-page #modal-add-credentials .form-control:disabled,
.bookmarks-page #modal-add-credentials .input-group-text {
    border-color: var(--light-border);
    background: #ffffff;
    color: var(--light-text);
    opacity: 1;
}

.bookmarks-page #modal-add-credentials .bookmarks-open-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.bookmarks-page #modal-add-credentials .bookmarks-open-link .material-symbols-outlined {
    font-size: 18px;
}

.bookmarks-page .modal-content .close {
    color: var(--light-text);
    opacity: 0.8;
    text-shadow: none;
}

.bookmarks-page .modal-content .close:hover {
    color: var(--light-text-strong);
    opacity: 1;
}

.bookmarks-page .modal-content .card-body {
    color: var(--light-text);
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_paginate {
    color: var(--light-text-muted);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--light-text) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border-color: var(--light-border) !important;
    background: var(--light-surface-hover) !important;
    color: var(--light-text-strong) !important;
}

.recharts-pie-sector path,
.recharts-sector {
    stroke: var(--light-surface);
}

.c3 text,
.recharts-cartesian-axis-tick-value,
.recharts-legend-item-text {
    fill: var(--light-text-muted);
    color: var(--light-text-muted);
}

.c3 path,
.c3 line,
.recharts-cartesian-axis line,
.recharts-cartesian-grid line {
    stroke: var(--light-border);
}

.login-container,
.auth-wrapper {
    min-height: 100vh;
    position: relative;
    background:
        radial-gradient(ellipse at 15% 10%, rgba(37, 99, 235, 0.16), transparent 38%),
        radial-gradient(ellipse at 85% 90%, rgba(37, 99, 235, 0.1), transparent 34%),
        var(--light-bg);
    color: var(--light-text);
}

.auth-wrapper .authentication-form,
.auth-wrapper .authentication-form .form-group {
    color: var(--light-text);
}

.auth-wrapper .auth-theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--light-border);
    border-radius: 50%;
    background: var(--light-surface);
    color: var(--light-text);
    cursor: pointer;
}

.auth-wrapper .auth-theme-toggle:hover,
.auth-wrapper .auth-theme-toggle:focus-visible {
    background: var(--light-surface-hover);
    color: var(--light-accent);
}

@media (max-width: 767.98px) {
    .wrapper .header-top {
        padding: 8px 14px;
    }

    .header-top .alert {
        margin-right: -14px;
        margin-left: -14px;
    }

    .main-content {
        padding-top: 82px !important;
    }

    .card .card-header,
    .card .card-body {
        padding: 16px;
    }
}

/* Pagina turni */
.turni-page .card-body.bg-light {
    border-radius: inherit;
    background: var(--light-surface) !important;
}

.turni-page .bg-white {
    background: var(--light-surface-raised) !important;
    color: var(--light-text) !important;
}

.turni-page .bg-white.text-red {
    color: #dc2626 !important;
}

.turni-page .bg-light {
    background: transparent !important;
}

.turni-page .bg-white .material-symbols-outlined {
    color: var(--light-text-muted);
}

.turni-page .bg-white img.border-white {
    border-color: var(--light-border) !important;
}

.turni-page .bg-dark,
.turni-page .bg-dark h4,
.turni-page .bg-dark h6,
.turni-page .bg-primary,
.turni-page .bg-primary h4,
.turni-page .bg-primary h6,
.turni-page .bg-red,
.turni-page .bg-red h4,
.turni-page .bg-red h6 {
    color: #ffffff !important;
}

.turni-page .btn-light {
    border-color: var(--light-border);
    background: var(--light-surface-raised);
    color: var(--light-text);
}

/* Rewards: lista del mese */
#modal-get-targetItems .month-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--light-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--light-surface) !important;
    color: var(--light-text);
}

#modal-get-targetItems .month-table th,
#modal-get-targetItems .month-table td {
    border-color: var(--light-border);
}

#modal-get-targetItems .month-table thead th {
    border-top: 0;
    border-bottom: 1px solid var(--light-border);
    background: var(--light-surface-raised) !important;
    color: var(--light-text-muted) !important;
    font-size: 0.8rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

#modal-get-targetItems .month-table thead th:first-child {
    border-left: 0;
    background: var(--light-surface-raised) !important;
    background-color: var(--light-surface-raised) !important;
}

#modal-get-targetItems .month-table tbody td.bg-dark {
    background: var(--light-surface-raised) !important;
    color: var(--light-text) !important;
}

#modal-get-targetItems .month-table tbody tr.bg-primary {
    background: rgba(37, 99, 235, 0.16) !important;
    color: var(--light-accent-strong) !important;
}

#modal-get-targetItems .month-table tbody tr.bg-primary td {
    border-color: var(--light-border);
    color: inherit;
}

#modal-get-targetItems .month-table tbody td.bg-white,
#modal-get-targetItems .month-table tbody td.shadow-sm {
    border-color: transparent;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--light-text-muted) !important;
    font-size: 0.78rem;
}

#modal-get-targetItems .month-table tbody tr:last-child td {
    border-bottom: 0;
}

#modal-get-targetItems .target-item-card {
    border: 1px solid var(--light-border) !important;
    border-left-width: 5px !important;
    border-left-color: var(--light-border) !important;
    border-radius: 14px;
    background: var(--light-surface) !important;
    color: var(--light-text);
    box-shadow: none !important;
}

#modal-get-targetItems .target-item-card.is-unlocked {
    border-left-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.1) !important;
}

#modal-get-targetItems .target-item-card .card-body,
#modal-get-targetItems .target-item-card strong {
    color: var(--light-text);
}

#modal-get-targetItems .target-item-card .badge-dark {
    background: #475569;
    color: #ffffff;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
