/* ================================================================
   Live Visitor Counter — lvc-style.css
   ================================================================ */

.lvc-widget {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.875rem;
    color: #374151;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 6px 14px 6px 10px;
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lvc-widget:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Animated "live" dot */
.lvc-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    position: relative;
}

.lvc-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.35);
    animation: lvc-pulse 1.8s ease-out infinite;
}

@keyframes lvc-pulse {
    0%   { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2);   opacity: 0; }
}

/* Number */
.lvc-count {
    font-weight: 700;
    color: #111827;
    transition: transform 0.25s cubic-bezier(.175,.885,.32,1.275), opacity 0.2s;
}

.lvc-count.lvc-updating {
    transform: scale(1.35);
    opacity: 0.6;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .lvc-widget {
        background: #1f2937;
        border-color: #374151;
        color: #d1d5db;
    }
    .lvc-widget:hover {
        background: #111827;
        border-color: #4b5563;
    }
    .lvc-count {
        color: #f9fafb;
    }
}

/* ── History Graph (front-end) ─────────────────────────────────── */

.lvc-graph-wrap {
    margin: 1.5em 0;
}

.lvc-graph-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px;
}

.lvc-graph-container {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
    .lvc-graph-container {
        background: #1f2937;
        border-color: #374151;
    }
    .lvc-graph-title { color: #f9fafb; }
}
