.fs-4 { font-size: 1.5rem; }
.opacity-75 { opacity: 0.75; }

.navbar-brand { font-weight: 700; }

.hero {
    background: radial-gradient(circle at top left, #3f8cff, #004b92);
    color: #fff;
    padding: 2.5rem 1.5rem;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
}
.hero h1 {
    font-weight: 700;
    font-size: 2rem;
}
.hero .badge-city {
    background: rgba(255,255,255,0.16);
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: .85rem;
}

.metric-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    height: 100%;
}
.metric-card .card-body {
    padding: 1.25rem 1.5rem;
}
.metric-label {
    font-size: .88rem;
    color: #6b7280;
}
.metric-value {
    font-size: 1.35rem;
    font-weight: 700;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* CHART CARD */
 .chart-card {
            border-radius: 1rem;
            box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
            border: 0;
        }
.chart-area canvas {
    width: 95% !important;
    height: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ⭐ Scroll wrapper (needed only if chart is wider than container) */
.chart-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth mobile scroll */
}

/* ⭐ Chart area automatically adjusts to parent */
.chart-area {
    position: relative;
    width: 98%;         /* Full parent width */
    max-width: 100%;     /* Prevent overflow */
    height: 300px;
    display: block;      /* Allows canvas to scale */
}

/* ⭐ Make the canvas responsive */
.chart-area canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
}

/* OPTIONAL: Slightly shorter chart on mobile */
@media (max-width: 576px) {
    .chart-area {
        height: 240px;
    }
}


.table-responsive {
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    background: #fff;
}

.badge-pill-sm {
    border-radius: 999px;
    font-size: .75rem;
    padding: .35rem .7rem;
}

.skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 37%, #e5e7eb 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: .5rem;
    height: 1em;
}
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
