/* ── Base ─────────────────────────────────────────────── */
* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }

/* ── Custom scrollbar ─────────────────────────────────── */
.custom-scroll::-webkit-scrollbar { width: 4px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: #374151; border-radius: 9999px; }
.custom-scroll::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* ── Input ────────────────────────────────────────────── */
.input-field {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid #374151;
    background: #111827;
    color: #e5e7eb;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.input-field:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.input-field::placeholder { color: #4b5563; }

/* ── Strategy cards ───────────────────────────────────── */
.strategy-card {
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #1f2937;
    background: #0f172a;
    cursor: pointer;
    transition: all 0.2s;
}
.strategy-card:hover { border-color: #374151; background: #111827; }
.strategy-card.selected { border-color: #4f46e5; background: #1e1b4b20; }

/* ── Exchange card ────────────────────────────────────── */
.exchange-card {
    padding: 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid #1f2937;
    background: #0f172a;
    transition: background 0.2s;
}
.exchange-card:hover { background: #111827; }

/* ── Analysis card ────────────────────────────────────── */
.analysis-card {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #1f2937;
    background: #0f172a;
}

/* ── Confidence bar ───────────────────────────────────── */
.confidence-bar {
    width: 4rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: #1f2937;
    overflow: hidden;
}
.confidence-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s ease-out;
}

/* ── Result block ─────────────────────────────────────── */
.result-block {
    padding: 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid #1e3a5f;
    background: linear-gradient(135deg, #0c1929 0%, #0f172a 100%);
    max-height: 50vh;
    overflow-y: auto;
}
.result-block::-webkit-scrollbar { width: 4px; }
.result-block::-webkit-scrollbar-track { background: transparent; }
.result-block::-webkit-scrollbar-thumb { background: #1e3a5f; border-radius: 9999px; }

/* ── Animations ───────────────────────────────────────── */
@keyframes fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fadein { animation: fadein 0.4s ease-out; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}
.pulse-dot { animation: pulse-dot 1.5s ease-in-out infinite; }
