/* ═══════════════════════════════════════════════════════════
   Simulator Styles
   ═══════════════════════════════════════════════════════════ */

.sim-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.sim-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}

.sim-presets {
    margin-bottom: 20px;
}

.sim-presets-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
}

.preset-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preset-btn:hover {
    border-color: var(--accent-blue);
    background: var(--bg-card-hover);
}

.preset-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.preset-dot.red {
    background: var(--accent-red);
}

.preset-dot.green {
    background: var(--accent-green);
}

.preset-dot.orange {
    background: var(--accent-orange);
}

.preset-dot.purple {
    background: var(--accent-purple);
}

/* ── Input Row ────────────────────────────── */
.sim-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.sim-input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    transition: border-color 0.2s;
}

.sim-input:focus {
    border-color: var(--accent-blue);
}

.sim-input::placeholder {
    color: var(--text-muted);
}

.sim-btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
}

.sim-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(74, 142, 255, 0.3);
}

/* ── Output ───────────────────────────────── */
.sim-output {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.8;
    min-height: 200px;
    white-space: pre-wrap;
    overflow-x: auto;
}

.sim-output .step-pass {
    color: var(--accent-green);
}

.sim-output .step-fail {
    color: var(--accent-red);
}

.sim-output .step-review {
    color: var(--accent-orange);
}

.sim-output .step-info {
    color: var(--text-secondary);
}

.sim-output .step-tool {
    color: var(--accent-cyan);
}

.sim-output .step-lobe {
    color: var(--accent-purple);
}

.sim-output .final-verdict {
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.sim-output .refusal-msg {
    color: var(--accent-orange);
    display: block;
    margin-top: 6px;
    padding: 8px 12px;
    border-left: 3px solid var(--accent-orange);
    background: rgba(245, 158, 11, 0.05);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
    .sim-input-row {
        flex-direction: column;
    }

    .preset-grid {
        grid-template-columns: 1fr;
    }
}