
        :root {
            --dark-bg: #0f172a;
            --dark-card: #1e293b;
            --dark-card-light: #334155;
            --dark-text: #f1f5f9;
            --dark-text-light: #cbd5e1;
            --dark-border: #475569;
            
            --darkblue: #1e40af;
            --darkblue-light: #3b82f6;
            --orange: #ea580c;
            --orange-light: #f97316;
            --gold: #d97706;
            --gold-light: #f59e0b;
            
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            
            --border-radius: 12px;
            --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: var(--dark-bg);
            color: var(--dark-text);
            line-height: 1.6;
            min-height: 100vh;
        }

        .container {
            display: flex;
            min-height: 100vh;
        }

        /* Sidebar Styles */
        .sidebar {
            width: 280px;
            background: var(--dark-card);
            color: var(--dark-text);
            padding: 25px 0;
            transition: var(--transition);
            box-shadow: var(--box-shadow);
            position: relative;
            z-index: 10;
            border-right: 1px solid var(--dark-border);
        }

        .logo {
            display: flex;
            align-items: center;
            padding: 0 25px 25px;
            border-bottom: 1px solid var(--dark-border);
            margin-bottom: 25px;
        }

        .logo i {
            font-size: 28px;
            margin-right: 12px;
            color: var(--gold);
            background: rgba(217, 119, 6, 0.1);
            width: 45px;
            height: 45px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo h1 {
            font-size: 22px;
            font-weight: 700;
        }

        .menu {
            list-style: none;
        }

        .menu-item {
            padding: 15px 25px;
            display: flex;
            align-items: center;
            transition: var(--transition);
            cursor: pointer;
            margin: 5px 10px;
            border-radius: 10px;
            color: var(--dark-text-light);
        }

        .menu-item:hover {
            background-color: rgba(30, 64, 175, 0.2);
            color: var(--dark-text);
            transform: translateX(5px);
        }

        .menu-item.active {
            background-color: rgba(30, 64, 175, 0.3);
            color: var(--dark-text);
            border-left: 4px solid var(--orange);
        }

        .menu-item i {
            margin-right: 12px;
            font-size: 20px;
            width: 24px;
            text-align: center;
        }

        /* Main Content Styles */
        .main-content {
            flex: 1;
            padding: 25px;
            overflow-y: auto;
            background: var(--dark-bg);
        }

        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .header-top h2 {
            color: var(--dark-text);
            font-weight: 700;
            font-size: 28px;
        }

        #connectBtn {
            background: linear-gradient(135deg, var(--orange), var(--orange-light));
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            z-index: 9999;
            position: relative;
        }

        #connectBtn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(234, 88, 12, 0.4);
        }

        .header {
            background: var(--dark-card);
            border-radius: var(--border-radius);
            padding: 25px;
            box-shadow: var(--box-shadow);
            margin-bottom: 25px;
            border-left: 5px solid var(--orange);
        }

        .header h2 {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--gold);
        }

        .header p {
            color: var(--dark-text-light);
            margin-bottom: 15px;
        }

        .search-box {
            background: var(--dark-bg);
            padding: 12px 20px;
            border-radius: 8px;
            border: 1px solid var(--dark-border);
        }

        .search-box p {
            color: var(--dark-text-light);
            font-size: 14px;
        }

        /* Dashboard Stats */
        .stats-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 25px;
            margin-bottom: 35px;
        }

        .stat-card {
            background: var(--dark-card);
            border-radius: var(--border-radius);
            padding: 25px;
            box-shadow: var(--box-shadow);
            display: flex;
            align-items: center;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            border-top: 4px solid;
        }

        .stat-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
            background: var(--dark-card-light);
        }

        .stat-1 {
            border-top-color: var(--darkblue);
        }

        .stat-2 {
            border-top-color: var(--orange);
        }

        .stat-3 {
            border-top-color: var(--gold);
        }

        .stat-4 {
            border-top-color: var(--success);
        }

        .stat-icon {
            width: 70px;
            height: 70px;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 20px;
            font-size: 28px;
            color: white;
        }

        .stat-1 .stat-icon {
            background: linear-gradient(135deg, var(--darkblue), var(--darkblue-light));
        }

        .stat-2 .stat-icon {
            background: linear-gradient(135deg, var(--orange), var(--orange-light));
        }

        .stat-3 .stat-icon {
            background: linear-gradient(135deg, var(--gold), var(--gold-light));
        }

        .stat-4 .stat-icon {
            background: linear-gradient(135deg, var(--success), #34d399);
        }

        .stat-info h3 {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 5px;
            color: var(--dark-text);
        }

        .stat-info p {
            color: var(--dark-text-light);
            font-size: 15px;
            margin-bottom: 8px;
        }

        /* Charts and Tables */
        .dashboard-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 25px;
        }

        .chart-container, .recent-activity, .weather-card {
            background: var(--dark-card);
            border-radius: var(--border-radius);
            padding: 25px;
            box-shadow: var(--box-shadow);
            border-top: 4px solid var(--darkblue);
        }

        .recent-activity {
            border-top-color: var(--orange);
        }

        .weather-card {
            border-top-color: var(--gold);
        }

        .section-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--dark-border);
        }

        .section-title h3 {
            color: var(--dark-text);
            font-weight: 600;
            font-size: 20px;
            display: flex;
            align-items: center;
        }

        .section-title h3 i {
            margin-right: 10px;
            color: var(--gold);
        }

        /* Quick Actions */
        .quick-actions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .action-btn, .action-btn1, .action-btn2 {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px 15px;
            background: #0f172a;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            cursor: pointer;
            text-align: center;
            border-top: 4px solid var(--success);
            color: var(--dark-text);
        }

        .action-btn:hover, .action-btn1:hover, .action-btn2:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.4);
            background: var(--dark-card-light);
            border-top-color: var(--orange);
        }

        .action-btn h2, .action-btn1 h2, .action-btn2 h2 {
            font-size: 24px;
            margin-bottom: 8px;
            color: var(--gold);
        }

        .action-btn span, .action-btn1 span, .action-btn2 span {
            font-weight: 500;
            font-size: 14px;
            color: var(--dark-text-light);
        }

        /* Activity List */
        .activity-list {
            list-style: none;
        }

        .activity-item {
            display: flex;
            align-items: center;
            padding: 15px 0;
            border-bottom: 1px solid var(--dark-border);
        }

        .activity-item:last-child {
            border-bottom: none;
        }

        .activity-icon {
            width: 45px;
            height: 45px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            color: white;
            font-size: 18px;
        }

        .activity-1 .activity-icon {
            background: linear-gradient(135deg, var(--darkblue), var(--darkblue-light));
        }

        .activity-2 .activity-icon {
            background: linear-gradient(135deg, var(--orange), var(--orange-light));
        }

        .activity-3 .activity-icon {
            background: linear-gradient(135deg, var(--gold), var(--gold-light));
        }

        .activity-4 .activity-icon {
            background: linear-gradient(135deg, var(--success), #34d399);
        }

        .activity-info h4 {
            font-size: 16px;
            margin-bottom: 5px;
            color: var(--dark-text);
        }

        .activity-time {
            margin-left: auto;
            font-size: 16px;
            font-weight: 600;
            color: var(--gold);
        }

        /* Weather Stats */
        .weather-stats {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            margin-top: 20px;
        }

        .weather-stat {
            display: flex;
            align-items: center;
            padding: 15px;
            background: var(--dark-bg);
            border-radius: 8px;
            border: 1px solid var(--dark-border);
        }

        .weather-stat i {
            margin-right: 15px;
            color: var(--darkblue-light);
            font-size: 20px;
            width: 24px;
        }

        .weather-stat span {
            color: var(--dark-text);
            font-size: 14px;
        }

        .weather-stats p {
            color: var(--dark-text-light);
            margin-top: 10px;
            margin-bottom: 5px;
            font-size: 14px;
        }
        
/* ================================
   TABLE STYLES (DARK THEME)
================================ */

.table-container {
    background: var(--dark-card);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--darkblue-light);
    overflow-x: auto; /* keep scroll only if necessary */
    margin-top: 25px;

    display: block; /* ensures container doesn’t shrink with empty table */
}

.table {
    width: 100%;
    max-width: 100%; /* prevent forcing min-width when empty */
    min-width: auto; /* override previous min-width */
}

.table thead {
    background: var(--dark-card-light);
}

.table thead th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 700;
    color: var(--gold-light);
    border-bottom: 2px solid var(--dark-border);
}

.table tbody tr {
    border-bottom: 1px solid var(--dark-border);
    transition: var(--transition);
    cursor: default;
}

.table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.01);
}

.table tbody td {
    padding: 12px 12px;
    color: var(--dark-text-light);
}

/* Add data-label for responsive */
.table tbody td[data-label]::before {
    font-weight: bold;
    color: var(--dark-text);
    content: attr(data-label) ": ";
}

/* Status Labels */
.table-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-block;
}

.table-status.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.table-status.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.table-status.danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* ================================
   SEARCH BAR STYLES
================================ */

.table-search {
    margin-bottom: 15px;
}

.table-search input {
    width: 100%;
    padding: 12px 15px;
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--dark-text);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.table-search input:focus {
    border-color: var(--darkblue-light);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* ================================
   PAGINATION STYLES
================================ */

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.pagination button {
    background: var(--dark-card-light);
    border: 1px solid var(--dark-border);
    color: var(--dark-text);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.pagination button:hover {
    background: var(--darkblue-light);
    color: #fff;
    transform: scale(1.05);
}

.pagination button.active-page {
    background: var(--darkblue-light);
    color: #fff;
    transform: scale(1.1);
}

/* ================================
   RESPONSIVE COMPACT MODE
================================ */

@media (max-width: 768px) {
    .table thead {
        display: table-header-group; /* instead of none */
    }
    
    .table tbody tr {
        display: table-row; /* revert block layout */
    }

    .table tbody td::before {
        content: none; /* remove pseudo labels */
    }
}



        /* Responsive Design */
        @media (max-width: 1200px) {
            .dashboard-content {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 992px) {
            .sidebar {
                width: 80px;
            }
            
            .logo h1, .menu-item span {
                display: none;
            }
            
            .menu-item {
                justify-content: center;
                padding: 15px;
            }
            
            .menu-item i {
                margin-right: 0;
            }
        }

        @media (max-width: 768px) {
            .container {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
                height: auto;
                padding: 15px 0;
            }
            
            .menu {
                display: flex;
                overflow-x: auto;
                padding: 0 10px;
            }
            
            .menu-item {
                white-space: nowrap;
                flex-direction: column;
                padding: 10px 15px;
                margin: 0 5px;
            }
            
            .menu-item span {
                display: block;
                font-size: 12px;
                margin-top: 5px;
            }
            
            .stats-container {
                grid-template-columns: 1fr;
            }
            
            .quick-actions {
                grid-template-columns: repeat(1, 1fr);
            }
        }