﻿#toast-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
}

.toast {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 25px rgb(0 0 0 / 30%);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid;
    min-width: 400px;
    position: relative;
    overflow: hidden;
}

    .toast::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        background: currentColor;
        animation: progress 5s linear;
        width: 100%;
    }

@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.toast.success {
    border-left-color: #10b981;
    color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
    color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
    color: #f59e0b;
}

.toast.info {
    border-left-color: #3b82f6;
    color: #3b82f6;
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.toast.warning .toast-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.toast.info .toast-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.toast-content {
    flex: 1;
    color: #2c3e50;
}

.toast-message {
    font-size: 12px;
    color: #676E8A;
    line-height: 1.5;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .toast-close:hover {
        background: rgba(0, 0, 0, 0.05);
        color: #2c3e50;
    }

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOut 0.3s ease-out forwards;
}

@media (max-width: 768px) {
    #toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        min-width: auto;
    }
}

img.imagelogo {
    width: 100%;
    height: 100% !important;
}

.ri-spin {
    display: inline-block; /* ensure transform works */
    animation: ri-spin 1s linear infinite;
    transform-origin: center center;
    /* size like fa-lg */
    font-size: 1.25rem;
}

@keyframes ri-spin {
    100% {
        transform: rotate(360deg);
    }
}


/* =========================================
   DARK THEME - CUSTOMER DASHBOARD
   Body Background: linear-gradient(160deg, #06122c 0%, #03183c 60%, #000b20 100%)
========================================= */

/* --- Body & Layout Base --- */
body,
#cryptoon-layout,
#cryptoon-layout.theme-light {
    background: linear-gradient(160deg, #06122c 0%, #03183c 60%, #000b20 100%) !important;
    min-height: 100vh;
}

.main {
    background: transparent !important;
}

.body.d-flex {
    background: transparent !important;
}

/* --- Sidebar --- */
.sidebar {
    background: rgba(5, 14, 40, 0.95) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
    backdrop-filter: blur(10px);
}

/* Mobile Sidebar Overlay Backdrop */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
}

/* Mobile: Sidebar slide-in animation */
@media only screen and (max-width: 1279px) {
    .sidebar {
        transition: left 0.3s ease !important;
    }

    .sidebar.open {
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.7) !important;
    }
}

.sidebar .logo-icon {
    background: rgba(5, 14, 40, 0.9) !important;
    border: 0px solid rgba(255, 255, 255, 0.07);
    margin: 0 !important;
    padding: 14px 12px !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

/* =========================================
   SIDEBAR MENU ITEMS — Full Layout Fix
========================================= */

/* Each menu item row */
.sidebar .menu-list .m-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 11px 14px !important;
    margin: 2px 8px !important;
    border-radius: 10px !important;
    color: #a8b8d8 !important;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    font-size: 14px !important;
    min-height: 44px !important;
    position: relative !important;
}

    /* Icon */
    .sidebar .menu-list .m-link > i:first-child {
        width: 20px !important;
        min-width: 20px !important;
        font-size: 15px !important;
        color: #7eb3ff !important;
        text-align: center !important;
        flex-shrink: 0 !important;
    }

    /* Text wrapper div */
    .sidebar .menu-list .m-link > div {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    /* h6 menu text */
    .sidebar .menu-list .m-link h6.mainmenu {
        color: inherit !important;
        margin: 0 !important;
        font-size: 13.5px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.3 !important;
    }

    /* Chevron arrow — right aligned */
    .sidebar .menu-list .m-link > i.fa-chevron-right,
    .sidebar .menu-list .m-link > i.ms-auto {
        margin-left: auto !important;
        font-size: 10px !important;
        color: #4a6080 !important;
        flex-shrink: 0 !important;
        transition: transform 0.25s ease !important;
    }

    /* Rotate chevron when menu is open */
    .sidebar .menu-list .m-link:not(.collapsed) > i.fa-chevron-right,
    .sidebar .menu-list .m-link:not(.collapsed) > i.ms-auto {
        transform: rotate(90deg) !important;
        color: #7eb3ff !important;
    }

    /* Hover state */
    .sidebar .menu-list .m-link:hover {
        background: rgba(255, 255, 255, 0.07) !important;
        color: #ffffff !important;
    }

    .sidebar .menu-list .m-link:hover > i:first-child {
        color: #ffffff !important;
    }

    /* Active state */
    .sidebar .menu-list .m-link.active {
        background: rgba(0, 168, 255, 0.14) !important;
        color: #ffffff !important;
        border-left: 3px solid #00a8ff !important;
        padding-left: 11px !important;
    }

    .sidebar .menu-list .m-link.active > i:first-child {
        color: #00a8ff !important;
    }

/* Sub-menu links — only color/bg, preserve template layout */
.sidebar .sub-menu {
    padding-left: 20px !important;
    margin: 2px 0 !important;
}

.sidebar .sub-menu li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 14px !important;
    margin: 1px 8px !important;
    border-radius: 8px !important;
    color: #8a9bbe !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    white-space: nowrap !important;
    min-height: 36px !important;
}

    .sidebar .sub-menu li a > i {
        width: 16px !important;
        min-width: 16px !important;
        font-size: 12px !important;
        color: #5a7eaa !important;
        text-align: center !important;
        flex-shrink: 0 !important;
    }

    .sidebar .sub-menu li a:hover,
    .sidebar .sub-menu li a.active {
        background: rgba(0, 168, 255, 0.12) !important;
        color: #e0eaff !important;
    }

    .sidebar .sub-menu li a:hover i,
    .sidebar .sub-menu li a.active i {
        color: #7eb3ff !important;
    }

/* --- Header / Navbar --- */
.header,
.header .navbar {
    background: rgba(4, 12, 35, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    backdrop-filter: blur(12px);
}

/* Navbar text */
.header .navbar h3,
.header .navbar h3 span {
    color: #e2eaff !important;
}

.header .navbar .fa-bell {
    color: #7eb3ff !important;
}

/* Navbar toggler */
.navbar-toggler.menu-toggle {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

    .navbar-toggler.menu-toggle .fa-bars {
        color: #7eb3ff !important;
    }

    .navbar-toggler.menu-toggle:hover {
        background-color: rgba(255, 255, 255, 0.14) !important;
    }

/* Dropdown (notifications & profile) */
.header .dropdown-menu,
.header .card {
    background: #0d1e45 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #c9d8f0 !important;
}

.header .card-header,
.header .card-footer {
    background: #0a1736 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #c9d8f0 !important;
}

.header .list-group-item {
    background: transparent !important;
    color: #a8b8d8 !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

    .header .list-group-item:hover {
        background: rgba(255, 255, 255, 0.06) !important;
        color: #ffffff !important;
    }

.header .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* --- General Cards --- */
.card {
    background: rgba(10, 25, 60, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(8px);
    color: #c9d8f0 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
}

.card-hd h3,
.card h3,
.card h4,
.card h5,
.card h6 {
    color: #e2eaff !important;
}

/* Scoped to card only — avoid overriding sidebar spans */
.card > p,
.card .card-body p,
.card .card-body span:not(.sh-tag):not(.inc-title):not(.stat-lbl):not(.stat-val) {
    color: #8a9bbe !important;
}

/* --- Income Cards (inc-card) --- */
.inc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .inc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .inc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .inc-grid { grid-template-columns: 1fr; }
}

.inc-card {
    background: rgba(10, 25, 65, 0.80) !important;
    border-radius: 16px !important;
    padding: 20px 18px !important;
    border-left-width: 3px !important;
    border-top: 1px solid rgba(255,255,255,0.07) !important;
    border-right: 1px solid rgba(255,255,255,0.07) !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.4) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .inc-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0,0,0,0.55) !important;
    }

.inc-title {
    color: #9ab0d0 !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inc-amount {
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 800;
    margin: 10px 0 6px;
}

/* percent badges */
.inc-pct {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

.g-pct { color: #0ecb81 !important; }
.b-pct { color: #4da6ff !important; }
.o-pct { color: #f39c12 !important; }
.p-pct { color: #b07fee !important; }
.t-pct { color: #94a3b8 !important; }

/* icon circles */
.inc-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 4px;
}

.g-ico { background: rgba(14,203,129,0.15); color: #0ecb81 !important; }
.b-ico { background: rgba(41,128,185,0.18); color: #4da6ff !important; }
.o-ico { background: rgba(230,126,34,0.18); color: #f39c12 !important; }
.p-ico { background: rgba(155,89,182,0.18); color: #b07fee !important; }
.t-ico { background: rgba(148,163,184,0.15); color: #94a3b8 !important; }

/* --- Mid Row (Overview + Emergency) --- */
.mid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .mid-row { grid-template-columns: 1fr; }
}

.overview-card,
.emergency-card {
    background: rgba(10, 25, 60, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 22px !important;
    color: #c9d8f0 !important;
}

.card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.card-hd h3 {
    color: #e2eaff !important;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.month-btn,
.view-all-btn {
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #a8b8d8 !important;
    border-radius: 8px;
    font-size: 12px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .month-btn:hover,
    .view-all-btn:hover {
        background: rgba(255,255,255,0.13) !important;
        color: #ffffff !important;
    }

/* Donut center */
.donut-center small {
    color: #8a9bbe !important;
    font-size: 11px;
}

.donut-center strong {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 800;
}

/* Legend */
.legend {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .legend li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 7px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

.ln {
    color: #a0b3d0 !important;
    font-size: 12px;
}

.lv {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
}

/* --- Emergency Card --- */
.emergency-content {
    text-align: center;
    padding: 10px 0;
}

.fund-amount {
    color: #ffffff !important;
    font-size: 28px;
    font-weight: 800;
    margin: 10px 0 6px;
}

.fund-text {
    color: #8a9bbe !important;
    font-size: 13px;
    margin-bottom: 18px;
}

.fund-progress {
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    margin: 12px 0 8px;
}

.fund-progress-bar {
    background: linear-gradient(90deg, #0ecb81, #00a8ff);
    height: 100%;
    border-radius: 20px;
    transition: width 0.8s ease;
}

.fund-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #8a9bbe !important;
    margin-bottom: 18px;
}

    .fund-info strong {
        color: #ffffff !important;
    }

.donate-btn {
    background: linear-gradient(135deg, #0ecb81, #00a8e8) !important;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 10px 28px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

    .donate-btn:hover {
        opacity: 0.85;
    }

/* --- Ranks Row --- */
.ranks-row {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .ranks-row { grid-template-columns: 1fr; }
}

.ranks-card {
    background: rgba(10, 25, 60, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 22px !important;
}

.shields {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-start;
    padding-top: 10px;
}

.shield-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 90px;
}

/* Shield tags */
.sh-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.achieved-tag {
    background: rgba(14, 203, 129, 0.15);
    color: #0ecb81 !important;
    border: 1px solid rgba(14, 203, 129, 0.3);
}

.current-tag {
    background: rgba(0, 168, 255, 0.15);
    color: #00a8ff !important;
    border: 1px solid rgba(0, 168, 255, 0.3);
}

.upcoming-tag {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8 !important;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Progress under shield */
.sh-prog {
    width: 80px;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.sh-fill {
    height: 100%;
    background: linear-gradient(90deg, #00a8ff, #0ecb81);
    border-radius: 10px;
}

.sh-prog-lbl {
    display: flex;
    justify-content: space-between;
    width: 80px;
    font-size: 9px;
    color: #7a8eaa !important;
}

/* --- Unlock Card --- */
.unlock-card {
    background: linear-gradient(135deg, #0a1e50, #0d2d6b) !important;
    border: 1px solid rgba(0, 168, 255, 0.2) !important;
    border-radius: 16px;
    padding: 28px 22px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.unlock-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(0,168,255,0.18) 0%, transparent 70%);
    border-radius: 50%;
}

.unlock-txt .u1 {
    color: #7eb3ff !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.unlock-txt .u2 {
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 900;
    margin: 4px 0;
}

.unlock-txt .u3 {
    color: #8ab4e8 !important;
    font-size: 13px;
    margin-bottom: 18px;
}

.btn-rewards {
    display: inline-block;
    background: linear-gradient(135deg, #00a8ff, #0ecb81) !important;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

    .btn-rewards:hover {
        opacity: 0.85;
        color: #fff !important;
    }

.unlock-trophy {
    position: absolute;
    right: 20px;
    bottom: 15px;
    opacity: 0.15;
}

.trico {
    font-size: 72px;
    color: #ffd700;
}

/* --- Stats Bar --- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

@media (max-width: 1100px) {
    .stats-bar { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

.stat-tile {
    background: rgba(10, 25, 60, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.25s ease;
}

    .stat-tile:hover {
        transform: translateY(-3px);
    }

.stat-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.s-blue   { background: rgba(41,128,185,0.18);  color: #4da6ff !important; }
.s-green  { background: rgba(14,203,129,0.15);  color: #0ecb81 !important; }
.s-teal   { background: rgba(0,188,188,0.15);   color: #00d4d4 !important; }
.s-purple { background: rgba(155,89,182,0.18);  color: #b07fee !important; }
.s-orange { background: rgba(230,126,34,0.18);  color: #f39c12 !important; }

.stat-lbl {
    color: #8a9bbe !important;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: block;
}

.stat-val {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 800;
    display: block;
    margin-top: 2px;
}

/* --- Rank Badge in Header --- */
.current-rank-badge {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.15), rgba(14, 203, 129, 0.1)) !important;
    border: 1px solid rgba(0, 168, 255, 0.25) !important;
    box-shadow: 0 3px 10px rgba(0, 100, 200, 0.2) !important;
}

.rank-icon {
    background: linear-gradient(135deg, #00a8ff, #0ecb81) !important;
    color: #fff !important;
}

.rank-label {
    color: #8ab4e8 !important;
}

.rank-name {
    color: #ffffff !important;
}

/* --- Form controls in dark --- */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
    background: rgba(10, 25, 60, 0.8) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #e2eaff !important;
    border-radius: 10px !important;
}

    .form-control::placeholder,
    input::placeholder,
    textarea::placeholder {
        color: #5a6e8e !important;
    }

    .form-control:focus,
    .form-select:focus,
    input:focus,
    textarea:focus,
    select:focus {
        background: rgba(15, 35, 80, 0.9) !important;
        border-color: rgba(0, 168, 255, 0.4) !important;
        box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.12) !important;
        color: #e2eaff !important;
    }

    .form-control:disabled,
    .form-control[readonly] {
        background: rgba(10, 20, 50, 0.6) !important;
        color: #5a6e8e !important;
        border-color: rgba(255,255,255,0.07) !important;
        cursor: not-allowed;
    }

/* --- Tables --- */
.table {
    color: #c9d8f0 !important;
}

    .table thead th {
        background: rgba(5, 15, 45, 0.9) !important;
        color: #7eb3ff !important;
        border-color: rgba(255,255,255,0.08) !important;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .table tbody tr {
        border-color: rgba(255,255,255,0.05) !important;
    }

        .table tbody tr:hover {
            background: rgba(255,255,255,0.04) !important;
        }

    .table td {
        color: #a8b8d8 !important;
        border-color: rgba(255,255,255,0.05) !important;
    }

/* DataTables dark */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: rgba(10, 25, 60, 0.8) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #e2eaff !important;
    border-radius: 8px;
    padding: 6px 10px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
    color: #8a9bbe !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: rgba(10,25,60,0.8) !important;
    color: #a8b8d8 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 8px !important;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button.current,
    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background: rgba(0, 168, 255, 0.2) !important;
        color: #ffffff !important;
        border-color: rgba(0, 168, 255, 0.3) !important;
    }

/* --- Scrollbar dark styling --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(5, 12, 30, 0.8);
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 140, 200, 0.3);
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(100, 140, 200, 0.5);
    }


/* =========================================
   MOBILE SIDEBAR FIX
   - Sidebar properly scrollable on mobile
   - Dark area below menu items removed
========================================= */

@media only screen and (max-width: 1279px) {

    /* Sidebar mobile: fixed, full height, scrollable */
    .sidebar {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scroll-behavior: smooth;
    }

    /* Ensure inner flex container fills sidebar height */
    .sidebar .d-flex.flex-column.h-100 {
        min-height: 100vh;
    }

    /* Menu list should not have extra empty space */
    .sidebar .menu-list {
        padding-bottom: 20px !important;
    }

    /* Remove gap/space below last menu item */
    .sidebar .sidebar1 {
        padding-bottom: 80px !important;
    }

    /* Prevent body scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden !important;
    }
}
