/* Metric Tiles - Dashboard Summary Cards */

/* Border-left color variants for metric tiles */
.border-left-primary {
    border-left: 4px solid #4e73df !important;
}

.border-left-success {
    border-left: 4px solid #1cc88a !important;
}

.border-left-info {
    border-left: 4px solid #36b9cc !important;
}

.border-left-warning {
    border-left: 4px solid #f6c23e !important;
}

.border-left-danger {
    border-left: 4px solid #e74a3b !important;
}

.border-left-secondary {
    border-left: 4px solid #858796 !important;
}

/* Text utility classes for metric tiles */
.text-xs {
    font-size: 1rem;
    font-weight: 400 !important;
    letter-spacing: normal;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-muted-gray {
    color: #6c757d !important;
}

/* Apply metric tile styling to all cards with border-left classes */

.card.border-left-primary .card-body,
.card.border-left-success .card-body,
.card.border-left-info .card-body,
.card.border-left-warning .card-body,
.card.border-left-danger .card-body,
.card.border-left-secondary .card-body {
    text-align: center;
    padding: 1.25rem;
    font-weight: 400 !important;
}

/* Header text styling in metric tiles */
.card.border-left-primary .text-xs,
.card.border-left-success .text-xs,
.card.border-left-info .text-xs,
.card.border-left-warning .text-xs,
.card.border-left-danger .text-xs,
.card.border-left-secondary .text-xs {
    margin-bottom: 0.5rem;
    display: block;
    text-align: center;
    font-weight: 600 !important;
}

/* Value text styling in metric tiles - normal size (not 2rem) */
.card.border-left-primary .h5,
.card.border-left-success .h5,
.card.border-left-info .h5,
.card.border-left-warning .h5,
.card.border-left-danger .h5,
.card.border-left-secondary .h5 {
    font-size: 1.75rem !important;
    font-weight: 400 !important;
    margin-bottom: 0;
}

/* Shadow utility for cards */
.shadow {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

/* ============================================================
 * aw-tile - reusable metric tile component
 * Added alongside .border-left-* (kept for OperatorsOverview).
 *
 * Usage:
 *   <div class="aw-tile aw-tile--teal">
 *       <div class="aw-tile__label">Total Tracts</div>
 *       <div class="aw-tile__value">1,248</div>
 *       <div class="aw-tile__sublabel">across 12 counties</div>
 *   </div>
 *
 * Modifiers: aw-tile--slate | aw-tile--teal | aw-tile--emerald
 *            aw-tile--amber | aw-tile--rose
 * ============================================================ */

.aw-tile,
div.aw-tile {
    position: relative;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-left: 5px solid #64748b !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    padding: 0.875rem 1.25rem 0.875rem 1.75rem !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.aw-tile::before,
.aw-tile::after {
    content: none !important;
}

.aw-tile:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.aw-tile__label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* Value is always dark - accent modifiers must NOT override */
.aw-tile .aw-tile__value,
.aw-tile__value {
    font-size: 1.75rem !important;
    font-weight: 400 !important;
    font-family: inherit !important;
    color: #2c3e50 !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-align: left !important;
}

.aw-tile__sublabel {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* ---- Accent modifiers: left strip + label color only ---- */

.aw-tile--slate { border-left-color: #64748b; }
.aw-tile--slate .aw-tile__label { color: #64748b; }

.aw-tile--teal { border-left-color: #06798C; }
.aw-tile--teal .aw-tile__label { color: #06798C; }

.aw-tile--emerald { border-left-color: #059669; }
.aw-tile--emerald .aw-tile__label { color: #059669; }

.aw-tile--amber { border-left-color: #d97706; }
.aw-tile--amber .aw-tile__label { color: #d97706; }

.aw-tile--rose { border-left-color: #be123c; }
.aw-tile--rose .aw-tile__label { color: #be123c; }

/* ---- Optional decorative icon (top-right of tile) ---- */
.aw-tile__icon {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.35;
    pointer-events: none;
    line-height: 1;
}

.aw-tile--slate .aw-tile__icon { color: #64748b; }
.aw-tile--teal .aw-tile__icon { color: #06798C; }
.aw-tile--emerald .aw-tile__icon { color: #059669; }
.aw-tile--amber .aw-tile__icon { color: #d97706; }
.aw-tile--rose .aw-tile__icon { color: #be123c; }

/* ---- Compact variant: denser row of tiles (e.g. 6 across) ---- */
.aw-tile--compact,
div.aw-tile--compact {
    padding: 0.625rem 1rem 0.625rem 1.25rem !important;
}

.aw-tile--compact .aw-tile__label {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
}

.aw-tile--compact .aw-tile__value {
    font-size: 1.375rem;
}

.aw-tile--compact .aw-tile__sublabel {
    font-size: 0.7rem;
    margin-top: 0.125rem;
}

/* Clickable tile affordance */
.aw-tile--clickable {
    cursor: pointer;
}
.aw-tile--clickable:hover {
    transform: translateY(-1px);
}
