/* ===============================
   DASHBOARD GRID (AUTO-FILL)
================================ */

.dashboard-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* ⬅️ smaller columns */
    gap: 16px;                                                   /* ⬅️ tighter gaps */
    margin-top: 20px;
    align-content: start;
}

/* ===============================
   REAL TILES
================================ */

.dash-tile {
    background: #CF2D81;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, background 0.2s ease;

    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;

    min-height: 96px;        /* ✅ MUCH smaller */
    padding: 14px;           /* controlled padding */
}

/* Hover */
.dash-tile:hover {
    background: #82d7af;
    transform: translateY(-3px);
}

/* Text */
.dash-tile h3 {
    margin: 0 0 6px;
    font-size: 16px;         /* ⬅️ reduced */
}

.dash-tile p {
    margin: 0;
    font-size: 13px;
}

/* ===============================
   FEATURE TILE (BACKGROUND IMAGE)
================================ */

.dash-tile.has-bg {
    background-size: cover;
    background-position: center;
    position: relative;
}

.dash-tile.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    border-radius: 12px;
}

.dash-tile.has-bg * {
    position: relative;
    z-index: 1;
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 600px) {
    .dashboard-tiles {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }

    .dash-tile {
        min-height: 80px;     /* ✅ compact on phones */
        padding: 12px;
    }

    .dash-tile h3 {
        font-size: 15px;
    }
}
.dash-tile.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.08); /* extremely light */
    border-radius: 12px;
}
