/* BUTTONS */
.button-glass {
  cursor: pointer;
  margin: auto;
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(255, 153, 187, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.15);
  color: rgb(0, 0, 0);
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.button-glass:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.button-glass:hover {
  background: rgba(255, 153, 187, 0.915);
  transform: translateY(-1px);
}

#button-print {
  background: rgba(153, 221, 255, 0.5);
}

#button-print:hover {
  background: rgba(153, 221, 255, 0.886);
}

.button-nable {
  background: rgba(255, 224, 153, 0.5);
}

.button-nable:hover {
  background: rgba(255, 224, 153, 0.886);
}

.content {
  margin-left: 300px;
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.dek {
  margin: 1.5rem 0 0;
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
}

/* DISCLAIMER BOX (Report)*/
.disclaimer-box {
  margin: 6px auto;
  padding: 6px 6px;
  display: flex;
  gap: 5px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 6px solid #ffa5a5;
  border-radius: 16px;
}

.disclaimer-content {
  flex: 1;
}

.disclaimer-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: #fdf2f2;
  color: #c81e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.disclaimer-text {
  margin: 0;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.1;
  font-weight: normal;
}

.disclaimer-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: bold;
}

.doc-image {
  width: 100%;
  max-width: 900px;
}

/* EXPAND CONTENT */
.expand-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.expand-wrap {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.25s ease,
    margin-top 0.4s ease;
  margin-top: 0;
}

.expand-wrap.open {
  opacity: 1;
  visibility: visible;
  margin-top: 6px;
}

/* FAQ */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: #ffffff;
}

.faq-item:hover {
  background: #f5eeffb1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transform: translateX(2px);
}


.faq-item:hover::before,
.faq-item:hover::before {
  transform: translateX(2px);
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Custom arrow */
.faq-item summary::after {
  content: "＋";
  float: right;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-content {
  margin-top: 0.75rem;
  color: #475569;
}

.faq-content ul {
  margin-top: 0.5rem;
}

.fieldset_input {
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 10px;
}

/* FORM CARD */
.form-card {
  max-width: 1400px;
  width: 100%;
  padding: 1rem;
  margin: 1rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.47);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.664);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 24px 12px rgba(255, 255, 255, 1.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(30px);
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
}

.form-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8),
    transparent,
    rgba(255, 255, 255, 0.3)
  );
}

/* GRID (Report)*/
.grid-badge {
  position: absolute;
  left: -20px;
  top: 8px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eefff4;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 22px;
}

.grid-box {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 8px;
  position: relative;
  background: white;
  gap: 5px;
  margin: 6px;
  border-left: 6px solid #bcbcbc;
}

.grid-text {
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.grid-text li {
  text-align: center;
  margin: 1px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

.grid-text strong {
  text-align: center;
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}

.grid-text ul {
  text-align: center;
  margin: 0;
  padding: 0;
  list-style: none;
}


/* HELP BUTTON */
.help-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  font-size: 18px;
  font-weight: bold;
  color: rgb(0, 0, 0);
  background: linear-gradient(135deg, #c2f7ff81, #d0f9ff);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.25s ease;
}

.help-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.help-btn:active {
  transform: scale(0.95);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
}

.input-group input {
  width: 45px;
  height: 26px;
  padding: 0 5px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
}

.input-group span {
  line-height: 1.2;
}

/* .input-group span {
  display: flex;
  align-items: flex-start;
  min-height: 48px;
  line-height: 1.2;
} */

/* Logo */
.logo img {
  height: 60px;
}


/* USER GUIDE OUTLINE */
.outline {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.664);
  box-shadow: var(--shadow);
}

.outline::after {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.8),
      transparent,
      rgba(255, 255, 255, 0.3)
    );
}

.outline::before {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.8),
      transparent,
      rgba(255, 255, 255, 0.3)
    );
}

.outline-title {
  margin: 0 0 0.75rem;
  padding: 0 0.75rem;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.outline a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.outline a::before {
  content: ">";
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease;
}

.outline a:hover,
.outline a:focus {
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transform: translateX(2px);
  outline: none;
}

.outline a:hover::before,
.outline a:focus::before {
  color: var(--text);
  transform: translateX(2px);
}

/* USER GUIDE SECTION */
.section {
  padding: clamp(1.2rem, 4vw, 1.6rem);
  scroll-margin-top: 2rem;
  background: rgb(255, 255, 255);
  border: 1px solid rgba(255, 255, 255, 0.664);
  scroll-margin-top: var(--sidebar-top);
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: left;
}

.section * {
  text-align: left;
}

.sidebar {
  position: fixed;
  top: var(--sidebar-top);
  left: 1.5rem; /* match page padding */
  width: 260px; /* lock width */
  height: calc(100vh - 4rem);
}

/* IMAGE CELL (Report)*/
.image-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-template-rows: auto 120px 1fr;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px 16px;
  margin: 10px auto;
}

/* INPUT BUBBLE (Report)*/
.input-bubble {
  background-color: #ffd1ea;
  border-radius: 16px;
  padding: 4px 8px;
  display: inline-block;
  margin-right: 5px;
  margin: 6px;
  font-size: 0.65em;
}



@keyframes label-nudge {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

.manual-panel {
  max-width: 700px;
  margin: 1rem auto;
  padding: 1.5rem;
  border-radius: 12px;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.manual-panel.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nable-row {
  display: flex;
  justify-content: center;   /* centers horizontally */
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.options-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.options-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.popover {
  display: none;
  position: absolute;
  z-index: 1000;
  margin-top: 8px;
  padding: 16px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.popover.show {
  display: block;
}

.popover .input-group {
  margin-bottom: 12px;
}

.popover input {
  width: 40px;
  margin-right: 6px;
}


#bmi_input:focus-within #bmi_popover {
  display: block;
}

.site-header {
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 12px 40px;
  margin-bottom: 40px;

  display: flex;
  align-items: center;

  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.664);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 24px 12px rgba(255, 255, 255, 1.2);

  box-sizing: border-box;
}

.site-header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.site-header-text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 40px;
}

.header-text-block {
  display: flex;
  flex-direction: column; /* STACK text and note vertically */
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  padding: 0.4rem 0.75rem;
  text-decoration: none;
  font-weight: 600;
  color: #7a7a7a;
  transition: color 0.2s ease;
  border-radius: 18px;
}

.site-nav a.active {
  color: #202020;
  font-weight: 700;
}

.site-nav a:hover {
  color: #b494ff; /* matches your accent */
  background: #ffffff;
}

.source-grid {
  display: grid;
  grid-template-columns: minmax(520px, 2fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
}

/* TOGGLE */
.toggle {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: var(--toggle-width);
  height: var(--toggle-height);
  margin-left: auto;
}


.toggle-label {
  line-height: 1.2;
}

.toggle-label-title {
  font-size: 1.5rem;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle input:checked + .toggle-slider {
  background: var(--toggle-bg-on);
  box-shadow:
    0 3px 8px rgba(248, 175, 199, 0.18),
    inset 0 0 6px rgba(255, 255, 255, 0.06);
}

.toggle input:checked + .toggle-slider::before {
  left: calc(var(--toggle-width) - var(--knob-size) - var(--toggle-padding));
}

.toggle input:focus-visible + .toggle-slider {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.toggle-card-group {
  padding: 0;
  overflow: hidden;
  flex: 0 0 320px;
  max-width: 300px;
}

.toggle-section {
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.toggle-section:last-child {
  border-bottom: none;
}

.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  background: var(--toggle-bg-off);
  border: 1px solid var(--glass-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--toggle-padding);
  width: var(--knob-size);
  height: var(--knob-size);
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--knob-bg);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.14),
    inset 0 1px 2px rgba(255, 255, 255, 0.45);
  transition: left 0.3s ease;
}

.toggle-wrap {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.wide-input {
  min-width: 120px;
}

/* LOGIN PAGE */
.login-page {
  margin: 0;
  min-height: 100vh;
  background: url("/predictor_images/example_report_background.png") center center / cover
    no-repeat fixed;
}

/* Full-page frosted glass over the background image */
.login-wrap {
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.login-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 380px;
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.664);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 24px 12px rgba(255, 255, 255, 1.2);
    
  border-radius: var(--radius-lg);

}

.login-logo {
  height: 84px;
}

.login-title {
  margin: 4px 0 0;
  color: var(--primary-dark);
  font-size: 1.6rem;
}

.login-subtitle {
  margin: 0 0 8px;
  text-align: center;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-right: 0;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(10px);
}

.login-field span {
  font-weight: 700;
  color: var(--text);
}

.login-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
}

.login-field input:focus {
  outline: none;
  border-color: var(--primary-strong);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.password-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.password-wrap input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: color 0.15s ease, background 0.15s ease;
}

.password-toggle:hover {
  color: var(--primary-dark);
  background: var(--bg-accent-1);
}

.password-toggle:focus-visible {
  outline: none;
  color: var(--primary-dark);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.login-submit {
  position: relative;
  overflow: hidden;
  width: auto;
  min-width: 140px;
  margin: 8px auto 0;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(122, 66, 88, 0.45);
  /* glossy gel: bright top half, deeper pink bottom half */
  background: #f8afc7;
  transition: filter 0.15s ease;
}


.login-submit:hover {
  filter: brightness(1.1);
}

.login-submit:active {
  filter: brightness(0.95);
}

.login-submit:focus-visible {
  outline: none;
  box-shadow:
    0 4px 12px rgba(122, 66, 88, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 0 3px var(--focus-ring);
}

.form-error {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  box-sizing: border-box;
  text-align: center;
  color: var(--primary-dark);
  background: var(--bg-accent-1);
  border: 1px solid var(--primary-strong);
  border-radius: var(--radius-md);
}







