/* ============================================================
   calc-shared.css — HPLCCalculator unified calculator styles
   ============================================================ */

/* ── Card Shell ── */
.calc-card {
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  overflow: hidden;
  margin-bottom: 2rem;
  border: none;
}

/* ── Header ── */
.calc-header {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: white;
  padding: 1.4rem 1.6rem;
  text-align: center;
}
.calc-header h4 { color: white; font-weight: 700; margin-bottom: 4px; font-size: 1.4rem; }
.calc-header p  { color: rgba(255,255,255,0.82); font-size: 0.85rem; margin: 0; }

/* ── Body ── */
.calc-body { padding: 1.6rem; background: white; }

/* ── Input fields ── */
.input-group-custom { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1rem; }
.field-row { display: flex; flex-direction: column; gap: 4px; }
.field-row label { font-size: 0.88rem; font-weight: 600; color: #444; margin: 0; }
.field-row input, .field-row select, .field-row textarea {
  border: 1.5px solid #d0d7e2;
  border-radius: 9px;
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field-row input:focus, .field-row select:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
  outline: none;
}
.hint { font-size: 0.75rem; color: #888; margin-left: 4px; font-weight: 400; }
.req  { color: #e53935; }
.opt  { font-size: 0.75rem; color: #aaa; font-weight: 400; margin-left: 4px; }

/* ── Live result bar ── */
.live-result-bar {
  display: flex;
  gap: 0.8rem;
  background: linear-gradient(135deg, #e8f0fe, #f0f4ff);
  border: 1px solid #c5d8fb;
  border-radius: 12px;
  padding: 14px;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.live-tile { flex: 1; min-width: 100px; text-align: center; }
.lt-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: #555; letter-spacing: 0.06em; }
.lt-val   { font-size: 1.6rem; font-weight: 800; color: #1a73e8; line-height: 1.1; }
.lt-unit  { font-size: 0.72rem; color: #777; margin-top: 2px; }

/* ── Submit button ── */
.btn-calc {
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 40px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(26,115,232,0.4);
}
.btn-calc:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(26,115,232,0.5); }

/* ── Results ── */
.result-section { margin-top: 1.4rem; }
.result-section h5 { font-weight: 700; margin-bottom: 0.8rem; color: #333; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.8rem;
}
.result-tile {
  background: #f4f7ff;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  border: 1px solid #e0e8fa;
}
.result-tile.highlight { background: #e8f0fe; border-color: #aac4f5; }
.rt-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: #777; letter-spacing: 0.05em; margin-bottom: 4px; }
.rt-val   { font-size: 1.5rem; font-weight: 800; color: #1a73e8; }
.rt-unit  { font-size: 0.75rem; color: #888; margin-top: 4px; }

/* ── Alert ── */
.calc-alert { border-radius: 10px; padding: 12px 16px; margin-top: 1rem; font-size: 0.9rem; }
.calc-alert.error   { background: #fde8e8; color: #8b0000; border: 1px solid #f5c2c2; }
.calc-alert.success { background: #d1e7dd; color: #0a6b3e; border: 1px solid #badbcc; }

/* ── Formula box ── */
.formula-box {
  background: #f0f4ff;
  border-left: 4px solid #1a73e8;
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  margin-top: 1.2rem;
  font-size: 0.9rem;
}
.fb-title { font-weight: 700; color: #1a73e8; margin-bottom: 6px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
.fb-row   { color: #333; margin-bottom: 2px; }

/* ── Reference image ── */
.ref-img { text-align: center; margin-top: 1.4rem; opacity: 0.85; transition: opacity 0.2s; }
.ref-img:hover { opacity: 1; }
.ref-img img { max-width: 280px; width: 100%; border-radius: 8px; }

/* ── Section label ── */
.section-label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: #1a73e8; margin: 1rem 0 0.4rem;
}
