/* Modern Dashboard Redesign - Attractive & Lightweight */
.modern-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Mobile default: 2 cols */
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .modern-dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.modern-stat-card {
    background: white;
    border-radius: 1rem;
    /* 16px for softer look */
    padding: 1.25rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modern-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Gradient Icon Circles */
.modern-icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.modern-stat-card:hover .modern-icon-circle {
    transform: scale(1.1) rotate(5deg);
}

/* Gradients */
.bg-grad-blue {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
}

.bg-grad-green {
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
}

.bg-grad-orange {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
}

.bg-grad-purple {
    background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
}

.bg-grad-indigo {
    background: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%);
}

.bg-grad-pink {
    background: linear-gradient(135deg, #f472b6 0%, #db2777 100%);
}

.modern-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.modern-stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .modern-stat-card {
        padding: 1rem 0.5rem;
        /* Less padding on sides */
    }

    .modern-icon-circle {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .modern-stat-number {
        font-size: 1.35rem;
    }

    .modern-stat-label {
        font-size: 0.7rem;
    }
}