/* ============================================================================
   ANALYTICS INFOGRAPHICS (loads LAST, after admin-navy.css).
   Adds professional SVG stat-icons + bar/progress infographics to the two
   Analytics dashboards (Platform = #super-admin-content, Gym Owner =
   #org-admin-content). admin-navy.css forces every div inside a stat-card to
   transparent bg + muted text via !important, so the icon holders and bars
   below use !important to win. NO emoji anywhere.
   ============================================================================ */

/* --- SVG stat-icon holder (replaces the old emoji circle) ------------------ */
#super-admin-content .ag-icon,
#super-admin-content .ag-icon-sm {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px !important;
}
#super-admin-content .ag-icon {
    width: 48px; height: 48px;
}
#super-admin-content .ag-icon svg {
    width: 24px; height: 24px;
}
/* colour variants — tinted navy square + themed stroke */
#super-admin-content .ag-icon-gold   { background: rgba(200,160,60,0.14) !important; }
#super-admin-content .ag-icon-gold   svg { color: #d8b65a; }
#super-admin-content .ag-icon-blue   { background: rgba(59,130,246,0.18) !important; }
#super-admin-content .ag-icon-blue   svg { color: #6ea8ff; }
#super-admin-content .ag-icon-purple { background: rgba(139,92,246,0.18) !important; }
#super-admin-content .ag-icon-purple svg { color: #b39bff; }
#super-admin-content .ag-icon-green  { background: rgba(16,185,129,0.18) !important; }
#super-admin-content .ag-icon-green  svg { color: #34d399; }

/* --- secondary-metric label with inline SVG (Workouts/Nutrition/etc.) ------ */
#super-admin-content .ag-metric-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: #a9b8cc !important;
    background: transparent !important;
}
#super-admin-content .ag-metric-label svg {
    width: 16px; height: 16px;
    color: #d8b65a;
    flex: 0 0 auto;
}
#super-admin-content .ag-metric-label span { color: #a9b8cc !important; }

/* --- bar / progress infographic (shared by both dashboards) ---------------- */
#super-admin-content .ag-bar-track,
#org-admin-content   .ag-bar-track {
    height: 8px;
    margin-top: 0.85rem;
    background: rgba(255,255,255,0.10) !important;
    border-radius: 999px;
    overflow: hidden;
}
#super-admin-content .ag-bar-fill,
#org-admin-content   .ag-bar-fill {
    height: 100%;
    border-radius: 999px;
    min-width: 2px;
    transition: width 0.6s ease;
}
#super-admin-content .ag-bar-gold,
#org-admin-content   .ag-bar-gold {
    background: linear-gradient(90deg, #c8a03c, #d4af37) !important;
}
#super-admin-content .ag-bar-green,
#org-admin-content   .ag-bar-green {
    background: linear-gradient(90deg, #2ea44f, #34c759) !important;
}
#super-admin-content .ag-bar-blue,
#org-admin-content   .ag-bar-blue {
    background: linear-gradient(90deg, #2f6fd6, #6ea8ff) !important;
}
#super-admin-content .ag-bar-red,
#org-admin-content   .ag-bar-red {
    background: linear-gradient(90deg, #c0392b, #e0584a) !important;
}

/* --- stacked split bar (3 segments butted together) inside a stat-card ------ */
#super-admin-content .ag-bar-track-split,
#org-admin-content   .ag-bar-track-split {
    display: flex !important;
    gap: 2px;
    background: rgba(255,255,255,0.10) !important;
}
#super-admin-content .ag-bar-track-split .ag-bar-fill,
#org-admin-content   .ag-bar-track-split .ag-bar-fill {
    border-radius: 0;
    transition: none;
}

/* ============================================================================
   PLATFORM INSIGHTS PANEL (super-admin analytics). Sits OUTSIDE .stat-card so
   admin-navy.css's transparent-div rule does NOT apply here. Navy theme, gold
   accents, NO emoji.
   ============================================================================ */
#super-admin-content .ag-info-panel {
    background: #0f1a2e;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.75rem;
    margin: 0 0 2rem;
}
#super-admin-content .ag-info-panel-title {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}
#super-admin-content .ag-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
#super-admin-content .ag-info-card {
    background: #16223c;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1.1rem;
}
#super-admin-content .ag-info-card-title {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #c8a03c;
    text-transform: uppercase;
}
#super-admin-content .ag-info-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}
#super-admin-content .ag-info-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    width: 96px;
    font-size: 0.8rem;
    color: #a9b8cc;
}
#super-admin-content .ag-info-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    flex: 0 0 auto;
}
#super-admin-content .ag-dot-gold  { background: #c8a03c; }
#super-admin-content .ag-dot-blue  { background: #6ea8ff; }
#super-admin-content .ag-dot-green  { background: #34c759; }
#super-admin-content .ag-dot-red   { background: #e0584a; }
#super-admin-content .ag-info-bar {
    flex: 1 1 auto;
    height: 8px;
    background: rgba(255,255,255,0.10);
    border-radius: 999px;
    overflow: hidden;
}
#super-admin-content .ag-info-fill {
    height: 100%;
    min-width: 2px;
    border-radius: 999px;
    transition: width 0.6s ease;
}
#super-admin-content .ag-info-val {
    flex: 0 0 auto;
    min-width: 64px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}
#super-admin-content .ag-info-foot {
    margin-top: 0.85rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.75rem;
    color: #8aa0bd;
}
