/*
 * dashboard.css
 * ═══════════════════════════════════════════════════════════════════
 *
 * Dashboard-specific classes for the Merchant (and future Driver /
 * Customer) dashboards. These are NOT in layout.css because they only
 * apply inside AuthorizedLayout pages, not on public pages.
 *
 * Referenced by:
 *   MetricCard.razor
 *   DashboardPanel.razor
 *   MerchantDashboard.razor (and future role dashboards)
 *
 * ═══════════════════════════════════════════════════════════════════
 */

/* ── MetricCard: left-border highlight variants ─────────────────────
   Applied via Class="metric-danger" etc. on the MudPaper wrapper.
   The colour matches the MudBlazor theme semantic colours. */
.metric-danger {
    border-left: 4px solid var(--mud-palette-error) !important;
} /* theme Error   */
.metric-success {
    border-left: 4px solid var(--mud-palette-primary) !important;
} /* theme Primary  */
.metric-warning {
    border-left: 4px solid var(--mud-palette-warning) !important;
} /* theme Warning  */

/* ── MetricCard: icon bubble backgrounds ───────────────────────────
   Soft tinted backgrounds for the icon circle inside each metric card.
   Using explicit hex rather than CSS variables because these sit inside
   a MudPaper that may have its own background. */
.icon-bg-default {
    background: rgba(var(--mud-palette-secondary-rgb),0.08);
} /* soft orange */
.icon-bg-danger {
    background: rgba(var(--mud-palette-error-rgb),0.08);
} /* soft red    */
.icon-bg-success {
    background: rgba(var(--mud-palette-primary-rgb),0.08);
} /* soft green  */
.icon-bg-warning {
    background: rgba(var(--mud-palette-warning-rgb),0.08);
} /* soft amber  */

/* ── MetricCard: hover lift ─────────────────────────────────────── */
.metric-card {
    transition:
        box-shadow 0.2s,
        transform 0.2s;
}

.metric-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

/* ── Feature cards (LandingUserFeatures) ───────────────────────── */
.feature-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-3px);
    transition:
        box-shadow 0.2s,
        transform 0.2s;
}

/* ── Store cards (LandingStoreFeatures) ─────────────────────────── */
.store-card {
    transition:
        box-shadow 0.2s,
        transform 0.2s;
}

.store-card:hover {
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.13) !important;
    transform: translateY(-4px);
}

/* ── Session lock overlay (idle timeout) ──────────────────────────── */
.session-lock-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.45);
    /* Blur the page behind the "sign in again" dialog; the overlay also blocks clicks. */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
