/* Ultra-Optimized Styles for 60/120 FPS Buttery Smooth Scrolling */

/* Hardware acceleration and scrolling optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #090d16;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

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

/* High-Performance Panels and Cards (No heavy backdrop-filter lag on repeating elements) */
.glass-panel {
    background-color: #0f172a;
    border: 1px solid #1e293b;
}

.glass-card {
    background-color: #111827;
    border: 1px solid #1f2937;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    content-visibility: auto; /* Browser skips rendering off-screen cards during scrolling */
    contain-intrinsic-size: 0 250px;
    will-change: auto;
}

.glass-card:hover {
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.6);
}

/* Modal Animations */
.modal-overlay {
    transition: opacity 0.2s ease-out;
}

.modal-container {
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.modal-hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-hidden .modal-container {
    transform: scale(0.97) translateY(8px);
}

/* Lightweight GPU-accelerated status pulse (Uses opacity/transform only, no repaint-heavy box-shadows) */
.status-pulse-open {
    animation: simple-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-pulse-connecting {
    animation: simple-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes simple-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}
