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

/* ── Base ────────────────────────────────────────────────── */
body {
    font-family: 'Inter', sans-serif;
    background: #0a0e17;
    min-height: 100vh;
}

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

/* ── Glow Effects ────────────────────────────────────────── */
.glow-border {
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.08), inset 0 1px 0 rgba(255,255,255,0.04);
}

.glow-cyan {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.15), 0 0 60px rgba(34, 211, 238, 0.05);
}

.result-glow {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.2), 0 0 80px rgba(34, 211, 238, 0.08);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(34, 211, 238, 0.2), 0 0 80px rgba(34, 211, 238, 0.08); }
    50% { box-shadow: 0 0 40px rgba(34, 211, 238, 0.3), 0 0 100px rgba(34, 211, 238, 0.12); }
}

/* ── Grid Background ─────────────────────────────────────── */
.grid-bg {
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ── Operator Buttons ────────────────────────────────────── */
.op-btn {
    transition: all 0.2s ease;
}
.op-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.25);
}
.op-btn.active {
    background: linear-gradient(135deg, #22d3ee, #0891b2);
    color: #0a0e17;
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.35);
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111827; }
::-webkit-scrollbar-thumb { background: #1e3a4a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #22d3ee; }

/* ── Input Focus ─────────────────────────────────────────── */
input:focus, select:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.15);
}

/* ── Table ───────────────────────────────────────────────── */
.table-row:hover {
    background: rgba(34, 211, 238, 0.04);
}

/* ── Status Indicator ────────────────────────────────────── */
.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Error Shake ─────────────────────────────────────────── */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
.shake { animation: shake 0.3s ease; }

/* ── Toast Notifications ─────────────────────────────────── */
.toast {
    animation: slide-in 0.3s ease, fade-out 0.4s ease 2.6s forwards;
}
@keyframes slide-in {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fade-out {
    to { opacity: 0; transform: translateY(-10px); }
}

/* ── Mic Button ──────────────────────────────────────────── */
.mic-btn {
    outline: none;
    cursor: pointer;
}
.mic-btn.mic-active {
    color: #f87171 !important;
    border-color: rgba(248, 113, 113, 0.5) !important;
    animation: mic-pulse 1s ease-in-out infinite;
}
.mic-btn.mic-active svg {
    filter: drop-shadow(0 0 5px rgba(248, 113, 113, 0.75));
}
@keyframes mic-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

