/* Custom overrides — most styling via Tailwind utility classes */

/* Smooth transitions for HTMX swaps */
.htmx-swapping {
    opacity: 0;
    transition: opacity 200ms ease-out;
}

.htmx-settling {
    opacity: 1;
    transition: opacity 200ms ease-in;
}

/* Status dot pulse */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.status-dot-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Signal detail expand animation */
.signal-detail-panel {
    animation: slide-down 200ms ease-out;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile bottom tab bar — safe area for notched phones */
.mobile-tab-bar {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        scroll-padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Subtle scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #D6D3D1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A8A29E;
}
