/**
 * GPHub — Contador de usuários online
 * app/sts/assets/css/online-counter.css
 */

/* ── Contador no footer do site público ── */
.online-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    overflow: visible;
    padding: 2px 0;
}

/* Quando dentro do .meta do dashboard — herda o tamanho do contexto */
.welcome-header .meta .online-counter,
.adm-page-header .online-counter {
    font-size: .85rem;
    color: #94a3b8;
    /* Espaço extra para a onda não ser cortada */
    padding: 2px 0;
    overflow: visible;
}

.online-counter__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,.8);
    animation: online-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
    position: relative;
}

/* Onda expansiva ao redor do ponto */
.online-counter__dot::before,
.online-counter__dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(34,197,94,.5);
    animation: online-ripple 2s ease-out infinite;
}

.online-counter__dot::after {
    animation-delay: .6s;
    background: rgba(34,197,94,.3);
}

@keyframes online-ripple {
    0%   { transform: translate(-50%, -50%) scale(1);   opacity: .8; }
    100% { transform: translate(-50%, -50%) scale(3.2); opacity: 0;  }
}

@keyframes online-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(34,197,94,.6); }
    50%       { box-shadow: 0 0 10px rgba(34,197,94,1); }
}

.online-counter__num {
    color: #4ade80;
    font-weight: 700;
}

.online-counter__label {
    color: rgba(255,255,255,.4);
}

/* Quando dentro do .meta do dashboard — cor do label igual ao contexto */
.welcome-header .meta .online-counter__label,
.adm-page-header p .online-counter__label {
    color: #94a3b8;
}

/* ── Contador no dashboard (admin e usuário) ── */
.dash-online-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(34,197,94,.07);
    border: 1px solid rgba(34,197,94,.2);
    border-radius: 12px;
    padding: 12px 18px;
    font-family: 'Poppins', sans-serif;
}

.dash-online-card__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,.8);
    animation: online-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
    position: relative;
}

.dash-online-card__dot::before,
.dash-online-card__dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(34,197,94,.5);
    animation: online-ripple 2s ease-out infinite;
}

.dash-online-card__dot::after {
    animation-delay: .6s;
    background: rgba(34,197,94,.3);
}

.dash-online-card__num {
    font-size: 1.4rem;
    font-weight: 800;
    color: #4ade80;
    line-height: 1;
}

.dash-online-card__label {
    font-size: .72rem;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 2px;
}
