/* Stats Dashboard Styles */
:root {
    /* Color Palette Definition */
    --primary-teal: #00897b;       /* Strong Teal for numbers/icons */
    --dark-teal: #004d40;          /* Dark Teal for headings */
    --soft-mint: #e0f2f1;          /* Light Mint for icon backgrounds */
    --bg-mint: #f2fcfb;            /* Very subtle mint for page background */
    --text-grey: #546e7a;          /* Grey for descriptions */
    --white: #ffffff;
}

.stats-container {
    display: grid;
    /* Creates a responsive grid that fits 3 items per row on wide screens */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.stat-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 137, 123, 0.08); /* Subtle teal-tinted shadow */
    border: 1px solid rgba(0, 137, 123, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 137, 123, 0.15);
}

/* Icon Styling */
.icon-wrapper {
    background-color: var(--soft-mint);
    color: var(--primary-teal);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Big Number Styling */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-teal);
    margin: 0 0 10px 0;
    line-height: 1;
}

/* Title Styling */
.stat-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-teal);
    margin: 0 0 8px 0;
}

/* Description Styling */
.stat-desc {
    font-size: 0.9rem;
    color: var(--text-grey);
    margin: 0;
    line-height: 1.5;
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .stat-card {
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-title {
        font-size: 1rem;
    }

    .stat-desc {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 720px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 1rem;
    }

    .stat-card {
        padding: 25px 20px;
    }

    .icon-wrapper {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-title {
        font-size: 0.95rem;
    }

    .stat-desc {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .stat-card {
        padding: 20px 15px;
    }

    .icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-title {
        font-size: 0.9rem;
    }

    .stat-desc {
        font-size: 0.75rem;
    }
}
