/* myBCA Mockup v2.0.1 — Privacy switches, stamp controls, range fields and action buttons. */

.switch-card {
  min-height: 68px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.switch-card:hover {
  border-color: #c4d7e3;
  background: #fbfdfe;
}
.switch-card:has(input:checked) {
  border-color: #bfd8e7;
  background: linear-gradient(180deg, #fbfeff, #f5fbff);
  box-shadow: 0 10px 24px rgba(17, 82, 129, 0.045);
}
.switch-row {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.switch-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.switch-ui {
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  padding: 3px;
  border-radius: 999px;
  background: #c8d4db;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}
.switch-ui::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.17);
  transition: transform 150ms cubic-bezier(.2, .8, .2, 1);
}
.switch-row input:checked + .switch-ui { background: var(--brand-500); }
.switch-row input:checked + .switch-ui::after { transform: translateX(16px); }
.switch-row input:focus-visible + .switch-ui { box-shadow: 0 0 0 3px var(--focus); }
.switch-copy { min-width: 0; display: grid; gap: 2px; }
.switch-copy strong { color: #355568; font-size: 11.7px; line-height: 1.25; }
.switch-copy small { color: var(--text-soft); font-size: 10.2px; font-weight: 500; line-height: 1.35; }

.stamp-settings-card {
  grid-column: 1 / -1;
  padding: 14px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fcfeff, #f7fbfd);
  transition: opacity 150ms ease, filter 150ms ease, border-color 150ms ease;
}
.stamp-settings-card.is-disabled { opacity: 0.58; filter: grayscale(0.08); }
.stamp-settings-head { display: grid; gap: 3px; }
.stamp-settings-head strong { color: #355568; font-size: 11.7px; line-height: 1.25; }
.stamp-settings-head small { color: var(--text-soft); font-size: 10.2px; font-weight: 500; line-height: 1.45; }
.range-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
input[type="range"] {
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--brand-600);
  cursor: pointer;
}
.range-value {
  min-width: 58px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: #34576b;
  font-size: 12.2px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stamp-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
input.stamp-file-input {
  height: 46px;
  padding: 5px 8px;
  color: #607582;
  background: #fff;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.stamp-file-input::file-selector-button,
.stamp-file-input::-webkit-file-upload-button {
  height: 32px;
  margin-right: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: var(--brand-600);
  background: var(--brand-100);
  font-family: var(--font-app);
  font-size: 10.8px;
  font-weight: 700;
  cursor: pointer;
}
.stamp-clear-button { height: 46px; padding-inline: 16px; white-space: nowrap; }
.stamp-file-status {
  min-height: 18px;
  color: #84949e;
  font-size: 10.2px;
  line-height: 1.45;
}
.stamp-file-status.has-file { color: #356c54; }
.stamp-file-status.has-error { color: #a94a4a; }

.actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
}
.button {
  height: 45px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12.2px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 120ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.actions .button {
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}
.actions .button:hover,
.actions .button:active { transform: none; }
.button:focus-visible,
.icon-button:focus-visible { box-shadow: 0 0 0 3px var(--focus); }
.button.primary {
  color: #fff;
  background: var(--brand-600);
  box-shadow: 0 8px 18px rgba(0, 92, 170, 0.17);
}
.button.primary:hover { background: #00579f; }
.button.secondary { color: var(--brand-600); background: var(--brand-100); }
.button.secondary:hover { background: #e2f1fa; }
.button.ghost { color: var(--brand-600); background: #fff; border-color: #cfe0ea; }
.button.ghost:hover { background: var(--brand-050); border-color: #bcd3e1; }
.button.small { height: 36px; padding-inline: 14px; font-size: 11.2px; }
.button:disabled { cursor: not-allowed; opacity: 0.62; transform: none; box-shadow: none; }
.action-status {
  grid-column: 1 / -1;
  min-height: 16px;
  margin: -3px 2px 0;
  color: #6f828d;
  font-size: 10.5px;
  line-height: 1.4;
}
