/* _content/EloSystemWeb/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-p2tbnah66z] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-p2tbnah66z] {
    flex: 1;
}

.sidebar[b-p2tbnah66z] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-p2tbnah66z] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-p2tbnah66z]  a, .top-row[b-p2tbnah66z]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-p2tbnah66z]  a:hover, .top-row[b-p2tbnah66z]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-p2tbnah66z]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-p2tbnah66z] {
        justify-content: space-between;
    }

    .top-row[b-p2tbnah66z]  a, .top-row[b-p2tbnah66z]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-p2tbnah66z] {
        flex-direction: row;
    }

    .sidebar[b-p2tbnah66z] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-p2tbnah66z] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-p2tbnah66z]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-p2tbnah66z], article[b-p2tbnah66z] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-p2tbnah66z] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-p2tbnah66z] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/EloSystemWeb/Components/Pages/AdminDashboard.razor.rz.scp.css */
/* Platform admin dashboard. Almost everything below is rendered by adminDashboard.js, so the rules
   reach it through ::deep from the page's root element (which carries this component's scope). */

/* ---------- Stat tiles ---------- */
.admin-root[b-b8sr0yzrsc]  .stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .admin-root[b-b8sr0yzrsc]  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .admin-root[b-b8sr0yzrsc]  .stat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.admin-root[b-b8sr0yzrsc]  .stat-tile {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: #1e293b;
    border: 1px solid #334155;
    color: inherit;
    text-decoration: none;
}

.admin-root[b-b8sr0yzrsc]  .stat-tile--hero { grid-column: span 2; }

@media (min-width: 768px) {
    .admin-root[b-b8sr0yzrsc]  .stat-tile--hero { grid-column: span 1; }
}

.admin-root[b-b8sr0yzrsc]  a.stat-tile:hover { border-color: #475569; }

.admin-root[b-b8sr0yzrsc]  .stat-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.admin-root[b-b8sr0yzrsc]  .stat-value {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.15;
    color: #f8fafc;
}

.admin-root[b-b8sr0yzrsc]  .stat-tile--hero .stat-value { font-size: 3rem; line-height: 1; }

.admin-root[b-b8sr0yzrsc]  .stat-sub {
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.admin-root[b-b8sr0yzrsc]  .stat-sub--muted { font-size: 0.7rem; color: #64748b; }

.admin-root[b-b8sr0yzrsc]  .live-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    flex-shrink: 0;
    border-radius: 9999px;
    background: #22c55e;
    animation: live-pulse-b-b8sr0yzrsc 2s ease-out infinite;
}

@keyframes live-pulse-b-b8sr0yzrsc {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Status icons always sit next to a text label; the color only reinforces it. */
.admin-root[b-b8sr0yzrsc]  .status-icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}

.admin-root[b-b8sr0yzrsc]  .status-icon svg { width: 100%; height: 100%; }
.admin-root[b-b8sr0yzrsc]  .status-icon--warning { color: #fbbf24; }
.admin-root[b-b8sr0yzrsc]  .status-icon--ok { color: #4ade80; }

/* ---------- 30-day trend charts ---------- */
.admin-root[b-b8sr0yzrsc]  .trend-chart { margin: 0; min-width: 0; }

.admin-root[b-b8sr0yzrsc]  .trend-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.admin-root[b-b8sr0yzrsc]  .trend-title { font-size: 0.8125rem; font-weight: 600; color: #e2e8f0; }
.admin-root[b-b8sr0yzrsc]  .trend-total { font-size: 0.75rem; color: #94a3b8; }

.admin-root[b-b8sr0yzrsc]  .trend-plot {
    position: relative;
    border-radius: 0.375rem;
    touch-action: pan-y;
}

.admin-root[b-b8sr0yzrsc]  .trend-plot svg { display: block; overflow: visible; }
.admin-root[b-b8sr0yzrsc]  .trend-bar { fill: #3b82f6; }
.admin-root[b-b8sr0yzrsc]  .trend-bar.is-active { fill: #60a5fa; }
.admin-root[b-b8sr0yzrsc]  .trend-hover { fill: rgba(148, 163, 184, 0.1); }
.admin-root[b-b8sr0yzrsc]  .trend-grid { stroke: #334155; stroke-width: 1; shape-rendering: crispEdges; }
.admin-root[b-b8sr0yzrsc]  .trend-baseline { stroke: #475569; stroke-width: 1; shape-rendering: crispEdges; }

.admin-root[b-b8sr0yzrsc]  .trend-axis {
    fill: #94a3b8;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.admin-root[b-b8sr0yzrsc]  .trend-tooltip {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 8px));
    padding: 0.375rem 0.5rem;
    border-radius: 0.5rem;
    background: #0f172a;
    border: 1px solid #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-size: 0.75rem;
    white-space: nowrap;
}

.admin-root[b-b8sr0yzrsc]  .trend-tooltip strong { display: block; font-size: 0.875rem; color: #f8fafc; }
.admin-root[b-b8sr0yzrsc]  .trend-tooltip span { color: #94a3b8; }

/* ---------- Tables ---------- */
.admin-root[b-b8sr0yzrsc]  .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.admin-root[b-b8sr0yzrsc]  .data-table caption {
    caption-side: top;
    text-align: left;
    padding-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.admin-root[b-b8sr0yzrsc]  .data-table th {
    padding: 0.375rem 0.5rem;
    text-align: left;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 1px solid #334155;
}

.admin-root[b-b8sr0yzrsc]  .data-table td {
    padding: 0.375rem 0.5rem;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.admin-root[b-b8sr0yzrsc]  .data-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Activity feed ---------- */
.admin-root[b-b8sr0yzrsc]  .admin-feed { list-style: none; margin: 0; padding: 0; }

/* Side by side with the narrower panels, a long feed would push everything below it far down,
   so on wide screens it scrolls inside its card. */
@media (min-width: 1024px) {
    .admin-root[b-b8sr0yzrsc]  .admin-feed { max-height: 40rem; overflow-y: auto; padding-right: 0.25rem; }
}

.admin-root[b-b8sr0yzrsc]  .feed-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0.25rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

.admin-root[b-b8sr0yzrsc]  .feed-item:last-child { border-bottom: 0; }
.admin-root[b-b8sr0yzrsc]  .feed-item.is-new { animation: feed-arrive-b-b8sr0yzrsc 3s ease-out; }

@keyframes feed-arrive-b-b8sr0yzrsc {
    from { background: rgba(59, 130, 246, 0.18); }
    to { background: transparent; }
}

.admin-root[b-b8sr0yzrsc]  .feed-badge {
    flex-shrink: 0;
    min-width: 5.75rem;
    margin-top: 0.125rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: #334155;
    color: #e2e8f0;
    font-size: 0.6875rem;
    font-weight: 600;
    text-align: center;
}

/* The badge text names the type; the tint only groups related types. */
.admin-root[b-b8sr0yzrsc]  .feed-badge--competition { background: rgba(59, 130, 246, 0.24); }
.admin-root[b-b8sr0yzrsc]  .feed-badge--league { background: rgba(139, 92, 246, 0.26); }
.admin-root[b-b8sr0yzrsc]  .feed-badge--people { background: rgba(34, 197, 94, 0.2); }
.admin-root[b-b8sr0yzrsc]  .feed-badge--inbox { background: rgba(245, 158, 11, 0.24); }

.admin-root[b-b8sr0yzrsc]  .feed-body { flex: 1; min-width: 0; }

.admin-root[b-b8sr0yzrsc]  .feed-text {
    margin: 0;
    font-size: 0.875rem;
    color: #e2e8f0;
    overflow-wrap: anywhere;
}

.admin-root[b-b8sr0yzrsc]  .feed-meta {
    margin: 0.125rem 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
    overflow-wrap: anywhere;
}

.admin-root[b-b8sr0yzrsc]  .feed-sep::before { content: "\00b7"; margin: 0 0.375rem; color: #64748b; }

.admin-root[b-b8sr0yzrsc]  .admin-link { color: #93c5fd; text-decoration: none; }
.admin-root[b-b8sr0yzrsc]  .admin-link:hover { text-decoration: underline; }

/* ---------- Lists ---------- */
.admin-root[b-b8sr0yzrsc]  .admin-list { list-style: none; margin: 0; padding: 0; }

.admin-root[b-b8sr0yzrsc]  .admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.6);
    font-size: 0.875rem;
}

.admin-root[b-b8sr0yzrsc]  .admin-row:last-child { border-bottom: 0; }
.admin-root[b-b8sr0yzrsc]  .row-main { flex: 1; min-width: 0; }

.admin-root[b-b8sr0yzrsc]  .row-title,
.admin-root[b-b8sr0yzrsc]  .row-sub {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-root[b-b8sr0yzrsc]  .row-title { color: #e2e8f0; font-weight: 500; }
.admin-root[b-b8sr0yzrsc]  .row-sub { font-size: 0.75rem; color: #94a3b8; }
.admin-root[b-b8sr0yzrsc]  .row-note { display: block; margin-top: 0.125rem; font-size: 0.75rem; color: #cbd5e1; overflow-wrap: anywhere; }

.admin-root[b-b8sr0yzrsc]  .row-aside {
    flex-shrink: 0;
    text-align: right;
    font-size: 0.75rem;
    color: #94a3b8;
}

.admin-root[b-b8sr0yzrsc]  .row-aside strong { display: block; font-size: 0.875rem; font-weight: 600; color: #e2e8f0; }

.admin-root[b-b8sr0yzrsc]  .row-aside .online-tag { display: flex; align-items: center; justify-content: flex-end; gap: 0.3rem; }

/* Relative activity in "Most active leagues"; the count is also printed beside it. */
.admin-root[b-b8sr0yzrsc]  .row-meter {
    display: block;
    height: 4px;
    margin-top: 0.375rem;
    border-radius: 0 2px 2px 0;
    background: #3b82f6;
}

.admin-root[b-b8sr0yzrsc]  .attention-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: #e2e8f0;
}

.admin-root[b-b8sr0yzrsc]  .empty-note { margin: 0; font-size: 0.875rem; color: #94a3b8; }

@media (prefers-reduced-motion: reduce) {
    .admin-root[b-b8sr0yzrsc]  .live-dot,
    .admin-root[b-b8sr0yzrsc]  .feed-item.is-new { animation: none; }
}
