body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f1f5f9;
}

/* Sidebar */
.sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    background: #0f172a;
    color: #fff;
    padding: 20px;
}

.sidebar h2 {
    margin-bottom: 30px;
}

.sidebar a {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    color: #cbd5f5;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background: #1e293b;
    color: #fff;
}

/* Main */
.main {
    margin-left: 260px;
    padding: 30px;
}

/* Cards */
.card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Stats grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat {
    padding: 20px;
    border-radius: 12px;
    color: #fff;
}

.stat h3 {
    margin: 0;
    font-size: 14px;
}

.stat p {
    font-size: 28px;
    margin: 5px 0 0;
}

/* Colors */
.bg-blue { background: #3b82f6; }
.bg-green { background: #10b981; }
.bg-orange { background: #f59e0b; }

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table th, table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

button {
    padding: 10px 15px;
    background: #3b82f6;
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}


/* Stat Cards Upgrade */
.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card h4 {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.stat-card h2 {
    margin: 5px 0 0;
    font-size: 28px;
    color: #0f172a;
}

.stat-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    color: white;
}

/* Colors */
.stat-icon.blue {
    background: #3b82f6;
}

.stat-icon.green {
    background: #10b981;
}

.stat-icon.orange {
    background: #f59e0b;
}




.grid {
    display: flex;
    gap: 20px;
}

/* Each card takes equal width */
.stat-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1 1 30%;
    min-width: 250px;
}


.stat-card {
    justify-content: space-between;
}






/* Premium Card Style */
.card {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

/* Hover animation */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Stat Card Layout */
.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Icon Box */
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

/* Colors with gradient */
.stat-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-icon.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Text */
.stat-card h4 {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.stat-card h2 {
    margin: 5px 0 0;
    font-size: 30px;
    color: #0f172a;
}