/* ═══════════════════════════════════════════════════════════════
   OmicsLab — Primer Design styles (Prompt 21)
   ═══════════════════════════════════════════════════════════════ */
.pd-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.pd-header { margin-bottom: 1.5rem; }
.pd-badge { font-size: .65rem; font-weight: 700; letter-spacing: .12em; color: #3fb950; background: rgba(63,185,80,.1); border: 1px solid rgba(63,185,80,.25); border-radius: 20px; padding: .25rem .7rem; display: inline-block; margin-bottom: .5rem; }
.pd-title { font-size: 1.9rem; font-weight: 700; margin: 0 0 .4rem; }
.pd-subtitle { color: #8b949e; font-size: .92rem; max-width: 680px; margin: 0; }

/* ── Layout ── */
.pd-main { display: grid; grid-template-columns: 340px 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 820px) { .pd-main { grid-template-columns: 1fr; } }
.pd-left { display: flex; flex-direction: column; gap: 1rem; }
.pd-right { min-height: 300px; }

/* ── Cards ── */
.pd-card { background: #161b22; border: 1px solid #21262d; border-radius: 10px; padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; }
.pd-card-title { font-size: .85rem; font-weight: 700; color: #e6edf3; margin-bottom: .1rem; }

/* ── Mode radio ── */
.pd-mode-row { display: flex; gap: 1rem; }
.pd-mode-opt { display: flex; align-items: center; gap: .35rem; font-size: .82rem; color: #8b949e; cursor: pointer; }
.pd-mode-opt input { accent-color: #3fb950; }

/* ── Inputs ── */
.pd-field-label { font-size: .75rem; color: #8b949e; }
.pd-sel { background: #0d1117; border: 1px solid #30363d; border-radius: 6px; color: #e6edf3; font-size: .82rem; padding: .35rem .5rem; width: 100%; }
.pd-sel:focus { outline: none; border-color: #3fb950; }
.pd-textarea { background: #0d1117; border: 1px solid #30363d; border-radius: 8px; color: #e6edf3; font-family: 'JetBrains Mono', monospace; font-size: .78rem; padding: .5rem; resize: vertical; width: 100%; box-sizing: border-box; }
.pd-textarea:focus { outline: none; border-color: #3fb950; }
.pd-inp { background: #0d1117; border: 1px solid #30363d; border-radius: 6px; color: #e6edf3; font-size: .85rem; padding: .35rem .6rem; width: 100%; box-sizing: border-box; }
.pd-inp:focus { outline: none; border-color: #3fb950; }

/* ── Run button ── */
.pd-run-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: .65rem; background: rgba(63,185,80,.1); border: 1px solid #3fb950; border-radius: 8px; color: #3fb950; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background .12s; }
.pd-run-btn:hover { background: rgba(63,185,80,.18); }

/* ── Reference card ── */
.pd-reference-card { background: #161b22; border: 1px solid #21262d; border-radius: 10px; padding: .9rem 1rem; }
.pd-ref-row { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px solid #21262d; font-size: .74rem; }
.pd-ref-row:last-of-type { border-bottom: none; }
.pd-ref-key { color: #8b949e; }
.pd-ref-val { color: #e6edf3; text-align: right; }
.pd-ref-note { font-size: .68rem; color: #6e7681; margin-top: .5rem; }

/* ── Empty state ── */
.pd-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; min-height: 300px; color: #6e7681; text-align: center; background: #161b22; border: 1px solid #21262d; border-radius: 10px; padding: 2rem; }
.pd-empty-icon { display: flex; align-items: center; justify-content: center; color: var(--text-muted,#8b949e); opacity: .5; }
.pd-empty-text { font-size: .88rem; max-width: 280px; }
.pd-error { background: rgba(255,107,107,.08); border: 1px solid rgba(255,107,107,.25); border-radius: 8px; padding: .8rem 1rem; color: #ff6b6b; font-size: .85rem; }

/* ── Results ── */
.pd-result-header { margin-bottom: .9rem; }
.pd-result-title { font-size: 1rem; font-weight: 700; color: #e6edf3; }
.pd-result-sub { font-size: .78rem; color: #8b949e; margin-top: .15rem; }

.pd-pair-card { background: #161b22; border: 1px solid #21262d; border-radius: 10px; padding: 1rem; margin-bottom: .85rem; display: flex; flex-direction: column; gap: .7rem; }
.pd-pair-rank { font-size: .8rem; font-weight: 700; }
.pd-pair-seqs { display: flex; flex-direction: column; gap: .4rem; }
.pd-seq-row { display: flex; align-items: center; gap: .6rem; }
.pd-seq-lbl { font-size: .68rem; font-weight: 800; padding: .15rem .45rem; border-radius: 4px; flex-shrink: 0; }
.fwd-lbl { background: rgba(63,185,80,.15); color: #3fb950; border: 1px solid rgba(63,185,80,.3); }
.rev-lbl { background: rgba(255,107,107,.15); color: #ff6b6b; border: 1px solid rgba(255,107,107,.3); }
.pd-seq { font-family: 'JetBrains Mono', monospace; font-size: .78rem; color: #e6edf3; word-break: break-all; }

/* ── Stats grid ── */
.pd-pair-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px,1fr)); gap: .5rem; }
.pd-stat { background: #0d1117; border: 1px solid #21262d; border-radius: 6px; padding: .4rem .5rem; text-align: center; }
.pd-stat-label { font-size: .65rem; color: #6e7681; margin-bottom: .15rem; }
.pd-stat-val { font-size: .88rem; font-weight: 700; color: #e6edf3; font-family: 'JetBrains Mono', monospace; }

/* ── Alignment SVG ── */
.pd-align-svg { width: 100%; height: auto; }

/* ── Issues ── */
.pd-issues { display: flex; flex-direction: column; gap: .35rem; }
.pd-issue { font-size: .76rem; padding: .3rem .6rem; border-radius: 5px; line-height: 1.4; }
.pd-issue-error { background: rgba(255,107,107,.08); color: #ff6b6b; border-left: 2px solid #ff6b6b; }
.pd-issue-warn  { background: rgba(227,179,65,.08); color: #e3b341; border-left: 2px solid #e3b341; }
.pd-all-pass { font-size: .8rem; color: #3fb950; }

/* ── Disclaimer ── */
.pd-disclaimer { font-size: .7rem; color: #6e7681; background: rgba(227,179,65,.06); border: 1px solid rgba(227,179,65,.15); border-radius: 6px; padding: .4rem .65rem; line-height: 1.45; margin-top: .25rem; }
