/* ============================================================
   Peptide Reconstitution Calculator — peptide-reconstitution.css
   Load /css/style.css FIRST, then this file
   ============================================================ */

/* ── Mode Tabs ───────────────────────────────────────────── */
.pept-tabs { display:flex; background:#f1f5f9; border-radius:12px; padding:4px; gap:3px; margin-bottom:18px; flex-wrap:wrap; }
.pept-tab { flex:1; min-width:100px; padding:8px 10px; border-radius:9px; border:none; font-family:'Lexend',sans-serif; font-size:11px; font-weight:600; cursor:pointer; transition:all 0.2s; color:#64748b; background:transparent; text-align:center; white-space:nowrap; }
.pept-tab.active { background:#1D3557; color:#fff; box-shadow:0 2px 8px rgba(0,0,0,0.12); }
.pept-tab:hover:not(.active) { color:#1D3557; }

/* ── Dose Unit Toggle ────────────────────────────────────── */
.dose-unit-bar { display:flex; background:#f1f5f9; border-radius:10px; padding:3px; gap:3px; margin-bottom:10px; }
.dose-unit-btn { flex:1; padding:6px; border-radius:8px; border:none; font-family:'Lexend',sans-serif; font-size:12px; font-weight:600; cursor:pointer; transition:all 0.2s; color:#64748b; background:transparent; }
.dose-unit-btn.active { background:#E63946; color:#fff; }

/* ── Peptide Presets ─────────────────────────────────────── */
.pept-presets { display:flex; gap:5px; flex-wrap:wrap; margin-bottom:12px; }
.pept-preset { background:#f8fafc; border:1.5px solid #e2e8f0; border-radius:8px; padding:4px 10px; font-family:'Lexend',sans-serif; font-size:11px; font-weight:600; color:#64748b; cursor:pointer; transition:all 0.2s; }
.pept-preset.active { background:#1D3557; border-color:#1D3557; color:#fff; }
.pept-preset:hover:not(.active) { border-color:#1D3557; color:#1D3557; }

/* ── Result Area ─────────────────────────────────────────── */
#pept-result-area { display:none; margin-top:18px; }
#pept-result-area.show { display:block; animation:fadeInUp 0.4s ease forwards; }

/* ── Primary Result Box ──────────────────────────────────── */
.pept-result-main { background:linear-gradient(135deg,#1D3557,#2d4f7f); border-radius:14px; padding:18px 20px; margin-bottom:12px; }
.pept-result-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.pept-r-box { text-align:center; }
.pept-r-val { font-family:'Lexend',sans-serif; font-weight:900; font-size:22px; color:#fff; line-height:1; margin-bottom:3px; }
.pept-r-label { font-family:'Inter',sans-serif; font-size:9px; color:rgba(255,255,255,0.65); text-transform:uppercase; letter-spacing:0.05em; }
.pept-r-divider { width:1px; background:rgba(255,255,255,0.15); }

/* ── Syringe Visual (horizontal) ────────────────────────── */
.pept-syringe-section { background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:14px 16px; margin-bottom:12px; }
.pept-syringe-title { font-family:'Lexend',sans-serif; font-weight:700; color:#1D3557; font-size:12px; margin-bottom:10px; display:flex; align-items:center; gap:6px; }
.syringe-h-wrap { position:relative; height:44px; border-radius:8px; overflow:hidden; border:2px solid #e2e8f0; background:#f1f5f9; }
.syringe-h-fill { position:absolute; left:0; top:0; height:100%; background:linear-gradient(90deg,#E63946,#c0303c); border-radius:6px 0 0 6px; transition:width 0.8s cubic-bezier(0.34,1.56,0.64,1); min-width:2px; }
.syringe-h-ticks { position:absolute; top:0; left:0; width:100%; height:100%; display:flex; pointer-events:none; }
.syringe-h-tick { border-left:1px solid rgba(29,53,87,0.15); flex:1; height:100%; position:relative; }
.syringe-h-tick:nth-child(5n)::after { content:attr(data-label); position:absolute; bottom:2px; left:2px; font-family:'Inter',sans-serif; font-size:8px; color:#94a3b8; }
.syringe-h-label { display:flex; justify-content:space-between; font-family:'Inter',sans-serif; font-size:10px; color:#94a3b8; margin-top:4px; padding:0 2px; }
.pept-unit-readout { text-align:center; margin-top:6px; }
.pept-unit-val { font-family:'Lexend',sans-serif; font-weight:800; font-size:24px; color:#E63946; }
.pept-unit-sub { font-family:'Inter',sans-serif; font-size:11px; color:#64748b; }

/* ── Stats Row ───────────────────────────────────────────── */
.pept-stats-row { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:12px; }
.pept-stat { background:#f8fafc; border:1px solid #e2e8f0; border-radius:10px; padding:10px; text-align:center; }
.pept-stat-val { font-family:'Lexend',sans-serif; font-weight:800; font-size:18px; color:#1D3557; line-height:1; margin-bottom:2px; }
.pept-stat-label { font-family:'Inter',sans-serif; font-size:10px; color:#94a3b8; text-transform:uppercase; letter-spacing:0.04em; }

/* ── Formula Line ────────────────────────────────────────── */
.pept-formula-line { font-family:'Courier New',monospace; font-size:11px; color:#64748b; background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; padding:8px 12px; margin-bottom:12px; word-break:break-all; display:none; }
.pept-formula-line.show { display:block; }

/* ── Doses Table ─────────────────────────────────────────── */
.pept-doses-table { width:100%; border-collapse:collapse; border-radius:12px; overflow:hidden; border:1px solid #e2e8f0; margin-bottom:12px; display:none; }
.pept-doses-table.show { display:table; }
.pept-doses-table th { background:#1D3557; color:#fff; padding:8px 10px; font-family:'Lexend',sans-serif; font-size:11px; font-weight:600; text-align:center; }
.pept-doses-table td { padding:7px 10px; font-family:'Inter',sans-serif; font-size:12px; color:#475569; border-bottom:1px solid #f1f5f9; text-align:center; }
.pept-doses-table tbody tr:nth-child(even) { background:#f8fafc; }
.pept-doses-table tbody tr:hover { background:#eff6ff; }
.pept-doses-table tbody tr:last-child td { border-bottom:none; }
.current-dose-row { background:#dbeafe !important; font-weight:600; }

/* ── Stability Badge ─────────────────────────────────────── */
.stability-badge { display:inline-flex; align-items:center; gap:6px; background:#f0fdf4; border:1px solid #86efac; border-radius:20px; padding:4px 12px; font-family:'Lexend',sans-serif; font-size:11px; font-weight:600; color:#15803d; margin-bottom:12px; }

/* ── Mode Panel ──────────────────────────────────────────── */
.pept-panel { display:none; }
.pept-panel.active { display:block; animation:fadeInUp 0.3s ease; }

/* ── Formula Box ─────────────────────────────────────────── */
.pept-formula-box { background:#1e293b; border-radius:12px; padding:16px 18px; margin-bottom:20px; }
.pept-formula-label { color:#94a3b8; font-size:11px; font-family:'Inter',sans-serif; font-weight:600; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:6px; }
.pept-formula-eq { font-family:'Courier New',monospace; font-size:12px; line-height:2; }
.pf-green  { color:#4ade80; }
.pf-white  { color:#e2e8f0; }
.pf-yellow { color:#facc15; }
.pf-blue   { color:#93c5fd; }
.pf-gray   { color:#64748b; }
.pf-red    { color:#f87171; }

/* ── Peptide Reference Table ─────────────────────────────── */
.pept-ref-table { width:100%; border-collapse:collapse; border-radius:12px; overflow:hidden; border:1px solid #e2e8f0; margin-bottom:24px; }
.pept-ref-table thead tr { background:#1D3557; }
.pept-ref-table th { text-align:left; padding:10px 10px; font-family:'Lexend',sans-serif; font-weight:600; font-size:11px; color:#fff; }
.pept-ref-table td { padding:8px 10px; font-family:'Inter',sans-serif; font-size:12px; color:#475569; border-bottom:1px solid #f1f5f9; }
.pept-ref-table tbody tr:nth-child(even) { background:#f8fafc; }
.pept-ref-table tbody tr:hover { background:#eff6ff; }
.pept-ref-table tbody tr:last-child td { border-bottom:none; }
.pept-name { font-weight:600; color:#1D3557; }

/* ── Stability Table ─────────────────────────────────────── */
.stability-table { width:100%; border-collapse:collapse; border-radius:12px; overflow:hidden; border:1px solid #e2e8f0; margin-bottom:24px; }
.stability-table th { background:#1D3557; color:#fff; padding:9px 12px; font-family:'Lexend',sans-serif; font-size:11px; font-weight:600; text-align:left; }
.stability-table td { padding:9px 12px; font-family:'Inter',sans-serif; font-size:12px; color:#475569; border-bottom:1px solid #f1f5f9; }
.stability-table tbody tr:nth-child(even) { background:#f8fafc; }
.stability-table tbody tr:last-child td { border-bottom:none; }
.s-good { color:#16a34a; font-weight:600; }
.s-warn { color:#ca8a04; font-weight:600; }
.s-bad  { color:#dc2626; font-weight:600; }

/* ── Reconstitution Steps ────────────────────────────────── */
.recon-steps-pept { display:flex; flex-direction:column; gap:10px; margin-bottom:24px; }
.recon-step-pept { display:flex; gap:10px; align-items:flex-start; }
.rs-num { width:26px; height:26px; border-radius:50%; background:#E63946; color:#fff; font-family:'Lexend',sans-serif; font-weight:700; font-size:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:1px; }
.rs-title { font-family:'Lexend',sans-serif; font-weight:700; color:#1D3557; font-size:13px; margin-bottom:2px; }
.rs-body { font-family:'Inter',sans-serif; font-size:12px; color:#64748b; line-height:1.6; }

/* ── Tips Grid ───────────────────────────────────────────── */
.tips-grid-pept { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:24px; }
.tip-pept { background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:16px; }
.tip-icon-pept { font-size:22px; margin-bottom:8px; }
.tip-title-pept { font-family:'Lexend',sans-serif; font-weight:600; color:#1D3557; font-size:14px; margin-bottom:6px; }
.tip-body-pept { font-family:'Inter',sans-serif; font-size:12px; color:#64748b; line-height:1.6; }

/* ── Highlight Box ───────────────────────────────────────── */
.hl-box-pept { background:linear-gradient(135deg,#fff5f5,#fef2f2); border-left:4px solid #E63946; border-radius:0 12px 12px 0; padding:16px 18px; margin-bottom:24px; }
.hl-box-pept p { font-size:13px; margin:0; }

/* ── Hero Badge ──────────────────────────────────────────── */
.pept-hero-badge { display:inline-flex; align-items:center; gap:6px; background:linear-gradient(135deg,#1D3557,#2d4f7f); color:#fff; border-radius:20px; padding:5px 14px; font-size:12px; font-weight:600; font-family:'Lexend',sans-serif; letter-spacing:0.3px; margin-bottom:16px; }

/* ── Stat Strip ──────────────────────────────────────────── */
.stat-strip-pept { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:24px; }
.stat-box-pept { background:#fff; border:1px solid #e2e8f0; border-radius:10px; padding:12px; text-align:center; }
.stat-num-pept { font-family:'Lexend',sans-serif; font-weight:800; font-size:18px; color:#1D3557; }
.stat-num-pept.red { color:#E63946; }
.stat-lbl-pept { font-family:'Inter',sans-serif; font-size:10px; color:#94a3b8; text-transform:uppercase; letter-spacing:0.04em; margin-top:2px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width:768px) {
  .pept-result-grid { grid-template-columns:1fr 1fr; }
  .pept-r-divider { display:none; }
  .pept-stats-row { grid-template-columns:1fr 1fr; }
  .tips-grid-pept { grid-template-columns:1fr; }
  .stat-strip-pept { grid-template-columns:repeat(2,1fr); }
  .pept-tabs { gap:2px; }
  .pept-tab { font-size:10px; padding:7px 5px; min-width:80px; }
}
@media (max-width:480px) {
  .pept-result-grid { grid-template-columns:1fr 1fr; }
  .pept-presets { gap:3px; }
}
@media print {
  .pept-tabs,.share-row,.sidebar-card,.calc-btn,.pept-presets { display:none !important; }
}