/* ── Leaflet overrides ── */
.leaflet-container { font-family: 'Inter', sans-serif; }
.leaflet-popup-content-wrapper { border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.leaflet-popup-content { font-size: 12px; margin: 10px 14px; }
.leaflet-control-zoom { border: none !important; box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important; }
.leaflet-control-zoom a { border-radius: 6px !important; border: 1px solid #e5e7eb !important; color: #374151 !important; font-weight: 600; }

/* ── Animations ── */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes pulse   { 0%,100% { opacity:1; } 50% { opacity:.5; } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }
@keyframes fadeIn  { from { opacity:0; transform: translateY(4px); } to { opacity:1; transform:none; } }

.animate-spin    { animation: spin 1s linear infinite; }
.animate-pulse   { animation: pulse 2s ease-in-out infinite; }
.animate-fade-in { animation: fadeIn 0.2s ease-out; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ── Status dot live ── */
.dot-live {
    position: relative;
}
.dot-live::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.25;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ── Dark terminal logs ── */
.log-terminal {
    background: #0f172a;
    color: #94a3b8;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.6;
    padding: 16px;
    max-height: 340px;
    overflow-y: auto;
}

/* ── Stat badge shimmer ── */
.shimmer-line {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.07);
    border-radius: 6px;
}
.shimmer-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
    animation: shimmer 1.5s infinite;
}
