        :root {
            --primary: #4361ee;
            --secondary: #6c757d;
            --success: #06d6a0;
            --danger: #ef476f;
            --warning: #ffd166;
            --info: #118ab2;
            --deposit: #06d6a0;
            --withdraw: #ef476f;
        }

        body {
            background-color: #f8f9fa;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        /* Login Page */
        .login-page {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 20px;
        }

        .login-card {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            width: 100%;
            max-width: 420px;
            overflow: hidden;
        }

        .login-header {
            background: linear-gradient(135deg, var(--primary), #3a56d4);
            color: white;
            padding: 30px;
            text-align: center;
        }

        .login-body {
            padding: 30px;
        }

        .btn-block {
            width: 100%;
        }

        /* Sidebar */
        .sidebar {
            width: 250px;
            background: #1a1a2e;
            color: white;
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            transition: transform 0.3s;
            z-index: 1000;
        }

        .sidebar-header {
            padding: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .sidebar .nav-link {
            color: rgba(255, 255, 255, 0.8);
            padding: 12px 20px;
            border-left: 3px solid transparent;
        }

        .sidebar .nav-link:hover,
        .sidebar .nav-link.active {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border-left-color: var(--primary);
        }

        .sidebar .nav-link i {
            width: 20px;
            margin-right: 10px;
            text-align: center;
        }

        .sidebar-footer {
            padding: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            position: absolute;
            bottom: 0;
            width: 100%;
        }

        /* Main Content */
        .main-content {
            margin-left: 250px;
            padding: 20px;
            min-height: 100vh;
        }

        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }

            .sidebar.active {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
            }
        }

        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }

        .sidebar-overlay.active {
            display: block;
        }

        .hamburger {
            background: none;
            border: none;
            padding: 10px;
            cursor: pointer;
        }

        .hamburger span {
            display: block;
            width: 25px;
            height: 3px;
            background: #333;
            margin: 4px 0;
            border-radius: 3px;
        }

        /* Content Wrapper */
        .content-wrapper {
            display: none;
        }

        .content-wrapper.active {
            display: block;
        }

        .page-header {
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 1px solid #dee2e6;
        }

        /* Stats Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            border: 2px solid;
            border-left-width: 5px;
        }

        .stat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .stat-label {
            font-size: 0.9em;
            color: #6c757d;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .stat-value {
            font-size: 2em;
            font-weight: bold;
            margin: 5px 0;
        }

        .icon-circle {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2em;
        }

        /* Network Grid */
        .network-grid .card {
            height: 100%;
            transition: transform 0.2s;
        }

        .network-grid .card:hover {
            transform: translateY(-2px);
        }

        /* Badges - FIXED STATUS COLORS */
        .badge-deposit {
            background-color: var(--deposit) !important;
            color: white !important;
        }

        .badge-withdraw {
            background-color: var(--withdraw) !important;
            color: white !important;
        }

        .badge-success {
            background-color: var(--success) !important;
            color: white !important;
        }

        .badge-danger {
            background-color: var(--danger) !important;
            color: white !important;
        }

        .badge-warning {
            background-color: var(--warning) !important;
            color: #212529 !important;
        }

        /* Notifications */
        .notifications-container {
            position: fixed;
            top: 20px;
            right: 20px;
            width: 350px;
            max-width: 90vw;
            z-index: 1050;
        }

        .notification-card {
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
            margin-bottom: 10px;
            overflow: hidden;
            animation: slideIn 0.3s ease;
            border-left: 4px solid;
        }

        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .notification-deposit {
            border-left-color: var(--deposit);
        }

        .notification-withdraw {
            border-left-color: var(--withdraw);
        }

        .notification-user {
            border-left-color: var(--info);
        }

        .notification-header {
            padding: 12px 15px;
            background: #f8f9fa;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .notification-body {
            padding: 15px;
        }

        .notification-time {
            font-size: 0.8em;
            color: #6c757d;
        }

        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--danger);
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 0.8em;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Stats Filter */
        .stats-filter {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .stats-filter .btn {
            min-width: 80px;
        }

        /* Amount Stats */
        .amount-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 25px;
        }

        .amount-card {
            background: white;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .amount-label {
            font-size: 0.9em;
            color: #6c757d;
            margin-bottom: 5px;
        }

        .amount-value {
            font-size: 1.8em;
            font-weight: bold;
            color: #333;
        }

        .amount-change {
            font-size: 0.8em;
            margin-top: 5px;
        }

        .amount-change.positive {
            color: var(--success);
        }

        .amount-change.negative {
            color: var(--danger);
        }

        /* Table Styling */
        .table-hover tbody tr:hover {
            background-color: rgba(0, 0, 0, 0.02);
            cursor: pointer;
        }

        /* Modal */
        .modal-backdrop {
            z-index: 1040;
        }

        .modal {
            z-index: 1050;
        }

        /* Form Controls */
        .form-switch .form-check-input:checked {
            background-color: var(--success);
            border-color: var(--success);
        }

        .form-switch .form-check-input:focus {
            box-shadow: 0 0 0 0.25rem rgba(6, 214, 160, 0.25);
        }

        /* Cache Indicator */
        .cache-indicator {
            position: fixed;
            bottom: 10px;
            right: 10px;
            background: var(--primary);
            color: white;
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 12px;
            opacity: 0.8;
            z-index: 1000;
        }

        /* Responsive Adjustments */
        @media (max-width: 992px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 576px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }

            .amount-stats {
                grid-template-columns: 1fr;
            }

            .main-content {
                padding: 15px;
            }
        }

        /* Notification Panel */
        .notification-panel {
            position: fixed;
            top: 70px;
            right: 20px;
            width: 320px;
            max-width: 90vw;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            z-index: 1060;
            display: flex;
            flex-direction: column;
            max-height: 80vh;
            border: 1px solid rgba(0, 0, 0, 0.05);
            animation: slideDown 0.2s ease-out;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .notification-panel-header {
            padding: 15px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #f8f9fa;
            border-radius: 12px 12px 0 0;
        }

        .notification-list {
            overflow-y: auto;
            flex: 1;
        }

        .notification-item {
            padding: 12px 15px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: background 0.2s;
            position: relative;
        }

        .notification-item:hover {
            background: #f9f9f9;
        }

        .notification-item.unread {
            background: #eef2ff;
        }

        .notification-item.unread::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--primary);
        }

        .notification-panel-footer {
            padding: 10px;
            border-top: 1px solid #eee;
            background: #f8f9fa;
            border-radius: 0 0 12px 12px;
        }

        /* Improved Card Styles */
        .stat-card,
        .amount-card {
            transition: transform 0.2s, box-shadow 0.2s;
            border: none;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }

        .stat-card:hover,
        .amount-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .stat-card.border-primary {
            border-left: 4px solid var(--primary) !important;
        }

        .stat-card.border-success {
            border-left: 4px solid var(--success) !important;
        }

        .stat-card.border-deposit {
            border-left: 4px solid var(--deposit) !important;
        }

        .stat-card.border-withdraw {
            border-left: 4px solid var(--withdraw) !important;
        }