@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Plus+Jakarta+Sans:wght@300;400;600;800&display=swap');

:root {
    --lab-accent: #6366f1;
    --lab-bg: #0b0f1a;
}

.lab-wrapper {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--lab-bg);
    color: #e2e8f0;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 40px;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

.glass {
    background: rgba(23, 32, 53, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.sim-area {
    background-image: radial-gradient(circle at 1px 1px, #1e293b 1px, transparent 0);
    background-size: 20px 20px;
    border: 1px solid #334155;
    position: relative;
    height: 350px;
    border-radius: 1rem;
    overflow: hidden;
}

.vector-arrow {
    height: 4px;
    background: #f59e0b;
    position: absolute;
    transform-origin: left center;
    border-radius: 2px;
    display: none;
    transition: opacity 0.3s ease;
}

.vector-arrow::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -4px;
    border-left: 8px solid #f59e0b;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

mjx-container {
    color: #a5b4fc !important;
    font-size: 1.1em !important;
}

input[type=range] {
    accent-color: var(--lab-accent);
    cursor: pointer;
}

@keyframes shake {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(3px, 0px);
    }

    75% {
        transform: translate(-3px, 0px);
    }
}

.shaking {
    animation: shake 0.15s infinite;
    border: 2px solid #f59e0b !important;
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.8));
    transition: stroke 0.3s ease;
}


/* --- DC Simülasyonu Animasyonları --- */
.flowing-electrons {
    animation: flow 1s linear infinite;
}

@keyframes flow {
    from {
        stroke-dashoffset: 50;
    }
    to {
        stroke-dashoffset: 0;
    }
}