/* Custom Stylesheet for Trade Lab Web Sandbox */

/* Core Typography Pairings */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color-scheme: dark;
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: rgba(6, 182, 212, 0.3);
    color: #fff;
}

/* Better Focus States */
:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 4px;
}

/* Glassmorphism Cards & Borders */
.card {
    background: rgba(13, 21, 39, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: rgba(6, 182, 212, 0.15);
    box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.05);
}

/* Glowing Neon Elements */
.glow-cyan {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.glow-emerald {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.glow-rose {
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.25);
}

/* Price Flash Animations on Sim Ticks */
@keyframes price-flash-green {
    0% { background-color: rgba(16, 185, 129, 0.2); }
    100% { background-color: transparent; }
}

@keyframes price-flash-red {
    0% { background-color: rgba(244, 63, 94, 0.2); }
    100% { background-color: transparent; }
}

.flash-up {
    animation: price-flash-green 0.8s ease-out forwards;
}

.flash-down {
    animation: price-flash-red 0.8s ease-out forwards;
}

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

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

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

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

/* Tab Panels Transitions */
.tab-panel {
    animation: fade-in 0.4s ease-out forwards;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Styles */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* Simulated Ad Countdown Ring */
@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.pulsing-spot {
    animation: pulse-ring 2s infinite ease-in-out;
}
