/* ============================================================
   Tirzepatide Calculator — tirzepatide.css
   Load /css/style.css FIRST, then this file
   ============================================================ */

/* ── Calc Mode Tabs ──────────────────────────────────────── */
.tirz-tabs { display:flex; background:#f1f5f9; border-radius:12px; padding:4px; gap:3px; margin-bottom:18px; flex-wrap:wrap; }
.tirz-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; }
.tirz-tab.active { background:#1D3557; color:#fff; box-shadow:0 2px 8px rgba(0,0,0,0.12); }
.tirz-tab:hover:not(.active) { color:#1D3557; }

/* ── Result Box ──────────────────────────────────────────── */
#tirz-result-area { display:none; margin-top:18px; }
#tirz-result-area.show { display:block; animation:fadeInUp 0.4s ease forwards; }
.tirz-result-main { background:linear-gradient(135deg,#1D3557 0%,#2d4f7f 100%); border-radius:14px; padding:18px 20px; margin-bottom:14px; }
.tirz-result-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.tirz-result-box { text-align:center; }
.tirz-result-val { font-family:'Lexend',sans-serif; font-weight:900; font-size:32px; color:#fff; line-height:1; margin-bottom:3px; }
.tirz-result-label { font-family:'Inter',sans-serif; font-size:10px; color:rgba(255,255,255,0.65); text-transform:uppercase; letter-spacing:0.05em; }
.tirz-result-divider { width:1px; background:rgba(255,255,255,0.15); }
.tirz-formula-line { font-family:'Courier New',monospace; font-size:11px; color:rgba(255,255,255,0.6); background:rgba(0,0,0,0.2); border-radius:8px; padding:6px 12px; display:block; margin-top:10px; text-align:center; }

/* ── Syringe Fill Visual ─────────────────────────────────── */
.syringe-visual-wrap { display:flex; align-items:center; gap:14px; margin-bottom:12px; }
.syringe-info { flex:1; }
.syringe-stat { display:flex; justify-content:space-between; align-items:center; padding:5px 0; border-bottom:1px solid #f1f5f9; font-family:'Inter',sans-serif; font-size:12px; }
.syringe-stat:last-child { border-bottom:none; }
.syringe-stat-label { color:#94a3b8; }
.syringe-stat-val { font-family:'Lexend',sans-serif; font-weight:700; color:#1D3557; }

/* ── Titration Timeline ──────────────────────────────────── */
.titration-timeline { margin-bottom:14px; }
.titration-title { font-family:'Lexend',sans-serif; font-weight:700; color:#1D3557; font-size:13px; margin-bottom:10px; display:flex; align-items:center; gap:6px; }
.titration-steps { display:flex; gap:0; overflow-x:auto; padding-bottom:4px; }
.titration-step { flex-shrink:0; text-align:center; position:relative; }
.titration-step:not(:last-child)::after { content:'→'; position:absolute; right:-8px; top:50%; transform:translateY(-50%); color:#94a3b8; font-size:12px; }
.t-step-box { background:#f8fafc; border:1.5px solid #e2e8f0; border-radius:10px; padding:8px 10px; min-width:72px; margin:0 12px 0 0; transition:all 0.3s; }
.t-step-box.active-step { background:#1D3557; border-color:#1D3557; }
.t-step-box.active-step .t-step-dose { color:#fff; }
.t-step-box.active-step .t-step-weeks { color:rgba(255,255,255,0.7); }
.t-step-box.completed-step { background:#dcfce7; border-color:#86efac; }
.t-step-box.completed-step .t-step-dose { color:#15803d; }
.t-step-box.completed-step .t-step-weeks { color:#166534; }
.t-step-dose { font-family:'Lexend',sans-serif; font-weight:800; font-size:15px; color:#1D3557; }
.t-step-weeks { font-family:'Inter',sans-serif; font-size:9px; color:#94a3b8; text-transform:uppercase; }

/* ── Vial Preset Cards ───────────────────────────────────── */
.vial-presets { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
.vial-preset-btn { background:#f8fafc; border:1.5px solid #e2e8f0; border-radius:8px; padding:6px 12px; font-family:'Lexend',sans-serif; font-size:12px; font-weight:600; color:#64748b; cursor:pointer; transition:all 0.2s; }
.vial-preset-btn.active { background:#E63946; border-color:#E63946; color:#fff; }
.vial-preset-btn:hover:not(.active) { border-color:#1D3557; color:#1D3557; }

/* ── Comparison Table ────────────────────────────────────── */
.compare-drugs-table { width:100%; border-collapse:collapse; border-radius:12px; overflow:hidden; border:1px solid #e2e8f0; margin-bottom:24px; }
.compare-drugs-table thead tr { background:#1D3557; }
.compare-drugs-table th { text-align:left; padding:10px 12px; font-family:'Lexend',sans-serif; font-weight:600; font-size:11px; color:#fff; }
.compare-drugs-table td { padding:9px 12px; font-family:'Inter',sans-serif; font-size:12px; color:#475569; border-bottom:1px solid #f1f5f9; }
.compare-drugs-table tbody tr:nth-child(even) { background:#f8fafc; }
.compare-drugs-table tbody tr:last-child td { border-bottom:none; }
.compare-drugs-table tbody tr:hover { background:#eff6ff; }
.drug-name { font-weight:600; color:#1D3557; }
.winner-cell { color:#16a34a; font-weight:600; }
.highlight-row { background:#eff6ff !important; }

/* ── Weight Loss Tracker Panel ───────────────────────────── */
.wl-tracker { background:linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%); border:1px solid #86efac; border-radius:12px; padding:14px 16px; margin-bottom:12px; display:none; }
.wl-tracker.show { display:block; }
.wl-tracker-title { font-family:'Lexend',sans-serif; font-weight:700; color:#14532d; font-size:13px; margin-bottom:10px; }
.wl-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.wl-box { background:rgba(255,255,255,0.7); border-radius:10px; padding:10px; text-align:center; }
.wl-val { font-family:'Lexend',sans-serif; font-weight:800; font-size:20px; color:#15803d; }
.wl-label { font-family:'Inter',sans-serif; font-size:10px; color:#166534; text-transform:uppercase; }

/* ── Dosing Chart Table ──────────────────────────────────── */
.dosing-chart-table { width:100%; border-collapse:collapse; border-radius:12px; overflow:hidden; border:1px solid #e2e8f0; margin-bottom:24px; }
.dosing-chart-table thead tr { background:#1D3557; }
.dosing-chart-table th { text-align:center; padding:10px 8px; font-family:'Lexend',sans-serif; font-weight:600; font-size:11px; color:#fff; }
.dosing-chart-table td { padding:9px 8px; font-family:'Inter',sans-serif; font-size:12px; color:#475569; border-bottom:1px solid #f1f5f9; text-align:center; }
.dosing-chart-table tbody tr:nth-child(even) { background:#f8fafc; }
.dosing-chart-table tbody tr:hover { background:#eff6ff; }
.dosing-chart-table tbody tr:last-child td { border-bottom:none; }
.phase-start { color:#3b82f6; font-weight:600; }
.phase-mid { color:#8b5cf6; font-weight:600; }
.phase-maint { color:#16a34a; font-weight:600; }

/* ── Reconstitution Guide Steps ──────────────────────────── */
.recon-steps { display:flex; flex-direction:column; gap:12px; margin-bottom:24px; }
.recon-step { display:flex; gap:12px; align-items:flex-start; }
.recon-step-num { width:28px; height:28px; border-radius:50%; background:#E63946; color:#fff; font-family:'Lexend',sans-serif; font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.recon-step-content { flex:1; }
.recon-step-title { font-family:'Lexend',sans-serif; font-weight:700; color:#1D3557; font-size:13px; margin-bottom:3px; }
.recon-step-body { font-family:'Inter',sans-serif; font-size:12px; color:#64748b; line-height:1.6; }

/* ── Formula Box ─────────────────────────────────────────── */
.tirz-formula-box { background:#1e293b; border-radius:12px; padding:18px 20px; margin-bottom:20px; }
.tirz-formula-label { color:#94a3b8; font-size:11px; font-family:'Inter',sans-serif; font-weight:600; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:8px; }
.tirz-formula-eq { font-family:'Courier New',monospace; font-size:12px; line-height:2; }
.tf-green  { color:#4ade80; }
.tf-white  { color:#e2e8f0; }
.tf-yellow { color:#facc15; }
.tf-blue   { color:#93c5fd; }
.tf-gray   { color:#64748b; }
.tf-red    { color:#f87171; }

/* ── Stat Strip ──────────────────────────────────────────── */
.stat-strip-tirz { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:24px; }
.stat-strip-box-tirz { background:#fff; border:1px solid #e2e8f0; border-radius:10px; padding:12px; text-align:center; }
.stat-strip-num-tirz { font-family:'Lexend',sans-serif; font-weight:800; font-size:18px; color:#1D3557; }
.stat-strip-num-tirz.red { color:#E63946; }
.stat-strip-label-tirz { font-family:'Inter',sans-serif; font-size:10px; color:#94a3b8; text-transform:uppercase; letter-spacing:0.04em; margin-top:2px; }

/* ── Hero Badge ──────────────────────────────────────────── */
.tirz-hero-badge { display:inline-flex; align-items:center; gap:6px; background:linear-gradient(135deg,#1D3557 0%,#2d4f7f 100%); 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; }

/* ── Tips Grid ───────────────────────────────────────────── */
.tips-grid-tirz { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:24px; }
.tip-card-tirz { background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:16px; }
.tip-icon-tirz { font-size:22px; margin-bottom:8px; }
.tip-title-tirz { font-family:'Lexend',sans-serif; font-weight:600; color:#1D3557; font-size:14px; margin-bottom:6px; }
.tip-body-tirz { font-family:'Inter',sans-serif; font-size:12px; color:#64748b; line-height:1.6; }

/* ── Highlight Box ───────────────────────────────────────── */
.highlight-box-tirz { background:linear-gradient(135deg,#fff5f5 0%,#fef2f2 100%); border-left:4px solid #E63946; border-radius:0 12px 12px 0; padding:16px 18px; margin-bottom:24px; }
.highlight-box-tirz p { font-size:13px; margin-bottom:0; }

/* ── Mode Panel ──────────────────────────────────────────── */
.tirz-panel { display:none; }
.tirz-panel.active { display:block; animation:fadeInUp 0.3s ease; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width:768px) {
  .tirz-tabs { gap:3px; }
  .tirz-tab { font-size:10px; padding:7px 6px; min-width:80px; }
  .tirz-result-grid { grid-template-columns:1fr 1fr; }
  .tirz-result-divider { display:none; }
  .wl-grid { grid-template-columns:1fr 1fr; }
  .tips-grid-tirz { grid-template-columns:1fr; }
  .stat-strip-tirz { grid-template-columns:repeat(2,1fr); }
  .dosing-chart-table th, .dosing-chart-table td { padding:7px 5px; font-size:11px; }
  .titration-steps { gap:0; }
}
@media (max-width:480px) {
  .tirz-result-grid { grid-template-columns:1fr; }
  .wl-grid { grid-template-columns:1fr; }
  .vial-presets { gap:4px; }
}
@media print {
  .tirz-tabs,.share-row,.sidebar-card,.calc-btn,.vial-presets { display:none !important; }
}