/* Peptide Draw & Dose Calculator — pdc-style.css */

/* ── Wrapper ────────────────────────────────────────────────── */
.pdc-wrap {
    background: #0d1b3e;
    border-radius: 16px;
    padding: 2rem 2rem 1.5rem;
    color: #fff;
    font-family: inherit;
    max-width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
    background-image: ;
}

.pdc-wrap *,
.pdc-wrap *::before,
.pdc-wrap *::after {
  box-sizing: border-box;
}

/* ── Title ──────────────────────────────────────────────────── */
.pdc-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

/* ── Three-panel grid ───────────────────────────────────────── */
.pdc-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .pdc-panels {
    grid-template-columns: 1fr;
  }
}

/* ── Individual panel ───────────────────────────────────────── */
.pdc-panel {
  background: #1a2a52;
  border-radius: 12px;
  padding: 1rem;
}

.pdc-panel-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0px;
    letter-spacing: 0.5px;
    line-height: 30px;
}
.pdc-panel-sub {
  text-align: center;
  font-size: 14px;
  color: #fff;
  margin-bottom: 10px;
}

/* ── Button grids ───────────────────────────────────────────── */
.pdc-btn-grid {
    display: grid;
    gap: 6px;
    margin-bottom: 6px;
    margin-top: 10px;
}

.pdc-grid4 { grid-template-columns: repeat(4, 1fr); }
.pdc-grid3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 480px) {
  .pdc-grid4 { grid-template-columns: repeat(3, 1fr); }
}

/* ── Buttons ────────────────────────────────────────────────── */
.pdc-btn {
  background: #243560;
  border: none;
  border-radius: 8px;
  color: #c8d6f0;
  font-size: 11px;
  font-weight: 500;
  padding: 8px 4px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  line-height: 1.3;
}

.pdc-btn:hover {
  background: #2e4278;
  color: #fff;
}

.pdc-btn.pdc-active {
  background: #e8c13a;
  color: #1a2a00;
  font-weight: 700;
}

/* ── Custom input ───────────────────────────────────────────── */
.pdc-custom {
  margin-top: 8px;
}

.pdc-custom input {
  width: 100%;
  background: #243560;
  border: 1px solid #3a4f7a;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  padding: 7px 10px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.pdc-custom input:focus {
  border-color: #6a8fcc;
}

.pdc-custom input::placeholder {
  color: #5a7099;
}

/* ── Notes / labels ─────────────────────────────────────────── */
.pdc-note {
  font-size: 12px;
  color: #fff;
  text-align: center;
  margin: 8px 0 0;
  min-height: 15px;
}

.pdc-common-label {
  font-size: 14px;
  color: #fff;
  margin: 10px 0 3px;
  font-weight:700;
}

.pdc-common-items {
  font-size: 13px;
  color: #fff;
  line-height: 1.7;
  margin: 0;
}

/* ── Result section ─────────────────────────────────────────── */
.pdc-result-section {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

/* ── Syringe image + fill ───────────────────────────────────── */
.pdc-syringe {
  flex-shrink: 0;
  width: 100px;
}

.pdc-syringe-inner {
  position: relative;
  width: 100%;
  justify-items: center;
}

.pdc-syringe-img {
  width: 50%;
  height: auto;
    display: flex;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/*
  FILL OVERLAY
  Your syringe image proportions (from the PNG):
  - Needle + cap:  top 0% → ~20%
  - Barrel start:  ~20% from top
  - Barrel end:    ~85% from top
  - Barrel height: ~65% of total image height
  - Barrel left:   ~28% from left
  - Barrel right:  ~72% from left (width ~44%)

  Fill grows DOWNWARD from barrel top.
  --pdc-fill-pct: 0 = empty, 1 = 100 units (full barrel)
*/
.pdc-syringe-fill-overlay {
    position: absolute;
    z-index: 1;
    left: 35%;
    width: 30%;
    top: 29%;
    height: calc(var(--pdc-fill-pct, 0.05) * 53%);
    background: rgba(58, 170, 220, 0.60);
    border-radius: 2px;
    transition: height 0.45s ease;
    pointer-events: none;
}

.pdc-result-right {
  flex: 1;
  min-width: 0;
}

.pdc-result-title {
  font-size: 33px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem;
}

.pdc-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pdc-result-card {
  background: #1a2a52;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: center;
  height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pdc-result-card.pdc-highlight {
  background: #e8c13a;
}

.pdc-result-val {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.pdc-result-card.pdc-highlight .pdc-result-val {
  color: #1a2a00;
}

.pdc-result-lbl {
  font-size: 12px;
  letter-spacing: 0px;
  text-transform: uppercase;
  color: #fff;
  margin-top: 4px;
}

.pdc-result-card.pdc-highlight .pdc-result-lbl {
  color: #162040;
}

/* ── Disclaimer ─────────────────────────────────────────────── */
.pdc-disclaimer {
  font-size: 12px;
  color: #fff;
  text-align: center;
  margin: 0.5rem 0 0;
}

@media only screen and (max-width:992px){
    .pdc-result-grid {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    justify-items: center;
}
.pdc-result-section {
    display: flex;
    gap: 0.5rem;
    align-items: end;
}
.pdc-result-card {

    height: auto;
    
}
.pdc-result-lbl {
    font-size: 11px;
}
}
