.react-module-loader {
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
}

.react-spinner {
    width: 35px;
    height: 35px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: reactSpinner 0.8s linear infinite;
}

@keyframes reactSpinner {
    to {
        transform: rotate(360deg);
    }
}

.dashboardGrid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    width: 100%;
    align-items: stretch;
}

.dashboardCard {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 200px;
}

/* Phones: single column (kept from the auto-fit base above) */
/* Tablets & small desktops: 2 cards per row */
@media (min-width: 800px) {
    .dashboardGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Large screens: 3 cards per row only from 1400px up */
@media (min-width: 1400px) {
    .dashboardGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}