/* WaggleTails web components: the .wt-* classes of Appendix C parts 5-6 (MAUI Styles.xaml / OnboardingStyles.xaml). */

/* The hidden attribute must win over every class that sets display (badges, fields, gallery blocks are toggled by script). */
[hidden] {
  display: none !important;
}

/* 4.1 Card - ShelterCardBorderStyle / SurfaceCardBorderStyle / ShelterHibaCardBorderStyle */
.wt-card {
  background: var(--wt-card);
  border: 1px solid var(--wt-card-border);
  border-radius: var(--wt-radius-card);
  padding: 16px;
  box-shadow: var(--wt-shadow-sm);
}
.wt-card--raised {
  border: 0;
  padding: 24px;
  box-shadow: var(--wt-shadow-card);
}
.wt-card--tight {
  border-radius: 16px;
  padding: 12px;
}
.wt-card--sheet {
  border: 0;
  border-radius: var(--wt-radius-sheet);
  padding: 24px;
  box-shadow: var(--wt-shadow-strong);
}
.wt-card--lifted {
  border: 1px solid var(--wt-border);
  padding: 24px;
  box-shadow: var(--wt-shadow-soft-lift);
}
.wt-card--flush {
  padding: 0;
  overflow: hidden;
}

/* 4.2 Buttons - PrimaryActionButtonStyle and friends */
.wt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: var(--wt-btn-height);
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 28px;
  font-family: var(--wt-font);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 80ms ease-out, filter 120ms ease-out;
  overflow-wrap: anywhere;
}
.wt-btn:active {
  transform: scale(.98);
}
.wt-btn--primary {
  background: var(--wt-primary);
  color: #fff;
}
.wt-btn--primary:hover {
  background: var(--wt-primary-pressed);
}
.wt-btn--primary-gradient {
  background: var(--wt-gradient-brand);
  color: #fff;
  box-shadow: var(--wt-shadow-strong);
}
.wt-btn--gold {
  background: var(--wt-gradient-gold);
  color: #fff;
  box-shadow: var(--wt-shadow-gold);
}
.wt-btn--blue {
  background: var(--wt-gradient-blue);
  color: #fff;
  box-shadow: var(--wt-shadow-blue);
}
.wt-btn--secondary {
  background: var(--wt-card);
  color: var(--wt-primary);
  border-color: var(--wt-primary);
}
.wt-btn--quiet {
  background: transparent;
  color: var(--wt-text-body-soft);
  border-color: var(--wt-border);
}
.wt-btn--danger {
  background: var(--wt-error);
  color: #fff;
}
.wt-btn--compact {
  width: auto;
  min-height: var(--wt-btn-height-compact);
  padding: 8px 14px;
  border-radius: 19px;
  font-size: 13px;
}
.wt-btn--icon {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 20px;
  background: var(--wt-surface-muted);
  color: var(--wt-text-body-soft);
  font-size: 16px;
}
.wt-btn[disabled],
.wt-btn.is-busy {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}

/* Sign-in provider pill - SignupHomeProviderButtonStyle (60 px, radius 30, 1.5 px outline, PoppinsSemiBold 15, icon left) */
.wt-btn--provider {
  min-height: 60px;
  padding: 0 22px;
  gap: 12px;
  justify-content: flex-start;
  border: 1.5px solid var(--wt-provider-border);
  border-radius: 30px;
  background: var(--wt-provider-bg);
  color: var(--wt-provider-text);
  font-size: 15px;
  box-shadow: var(--wt-provider-shadow);
}
.wt-btn--provider img,
.wt-btn--provider svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.wt-btn--provider .wt-btn__label {
  flex: 1 1 auto;
  text-align: center;
}
/* SignupHomeAppleButtonStyle - filled near-black, white text, no outline */
.wt-btn--provider-apple {
  border-color: transparent;
  background: var(--wt-apple-bg);
  color: var(--wt-apple-text);
  box-shadow: var(--wt-apple-shadow);
}

/* 4.3 Chips and choice cards - SelectableChipBorderStyle / SelectableChoiceBorderStyle */
/* The media viewer - media-viewer.js, MediaViewerPopup.xaml: a #F2000000 scrim, the title and counter pills and the close
   disc along the top, the previous / next discs at mid-height, the hint under the stage. */
.wt-viewer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, .95);
  color: #fff;
}
.wt-viewer[hidden] {
  display: none;
}
.wt-viewer-open {
  overflow: hidden;
}
.wt-viewer__top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.wt-viewer__title,
.wt-viewer__counter {
  padding: 6px 14px;
  border-radius: var(--wt-radius-pill);
  background: rgba(255, 255, 255, .14);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  overflow-wrap: anywhere;
}
.wt-viewer__counter[hidden] {
  display: none;
}
.wt-viewer__disc {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 21px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.wt-viewer__disc:hover,
.wt-viewer__disc:focus-visible {
  background: rgba(255, 255, 255, .32);
}
.wt-viewer__close {
  margin-left: auto;
}
.wt-viewer__arrow[hidden] {
  display: none;
}
.wt-viewer__stage {
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  touch-action: pan-y;
}
.wt-viewer__media {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}
.wt-viewer__hint {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .75);
}
.wt-viewer__hint[hidden] {
  display: none;
}
@media (max-width: 600px) {
  .wt-viewer {
    grid-template-columns: 44px 1fr 44px;
    padding: 8px;
  }
}

/* The image adjust step - image-crop.js, ImageAdjustmentPage.xaml (Islam 2026-10-16, E98: one step for the event cover and
   the pet photos): a scrim, a dark stage with the frame of the asked aspect, the zoom row, two lines of copy; the X and the
   check are the page's two header discs. The script sizes the frame to the stage, never past 430 px, so it holds on a
   narrow screen. The glyphs the step and the tile's Adjust disc draw are declared here beside it. */
.fa-xmark::before { content: "\f00d"; }
.fa-check::before { content: "\f00c"; }
.fa-magnifying-glass-minus::before { content: "\f010"; }
.fa-magnifying-glass-plus::before { content: "\f00e"; }
.fa-crop-simple::before { content: "\f565"; }
.wt-crop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--wt-scrim);
}
.wt-crop[hidden] {
  display: none;
}
.wt-crop-open {
  overflow: hidden;
}
.wt-crop__card {
  width: 100%;
  max-width: 478px;
  max-height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: var(--wt-radius-card);
  background: var(--wt-card);
  box-shadow: var(--wt-shadow-strong);
}
.wt-crop__head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
}
.wt-crop__title {
  margin: 0;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-crop__disc {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 21px;
  background: var(--wt-surface-muted);
  color: var(--wt-text-body);
  font-size: 16px;
  cursor: pointer;
}
.wt-crop__disc--primary {
  background: var(--wt-primary);
  color: #fff;
}
.wt-crop__disc:disabled {
  opacity: .6;
  cursor: default;
}
.wt-crop__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  border-radius: 18px;
  background: var(--wt-text-body-strong);
}
.wt-crop__frame {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  border: 2px solid #fff;
  border-radius: 4px;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.wt-crop__frame:active {
  cursor: grabbing;
}
.wt-crop__frame canvas {
  display: block;
}
.wt-crop__zoom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--wt-text-secondary);
  font-size: 14px;
}
.wt-crop__zoom input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: var(--wt-primary);
}
.wt-crop__hint,
.wt-crop__note {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--wt-text-secondary);
}

.wt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 10px 14px;
  border: 2px solid var(--wt-border);
  border-radius: var(--wt-radius-pill);
  background: var(--wt-surface-muted);
  color: var(--wt-text-body);
  font-size: 13px;
  white-space: nowrap;
}
.wt-chip.is-selected {
  background: var(--wt-primary);
  border-color: var(--wt-primary);
  color: var(--wt-on-primary);
}
.wt-chip--soft {
  padding: 6px 12px;
  border: 0;
  background: var(--wt-soft-teal-bg);
  color: var(--wt-soft-teal);
  font-size: 14px;
}
.wt-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wt-choice {
  display: block;
  width: 100%;
  border: 2px solid var(--wt-border);
  border-radius: var(--wt-radius-input);
  padding: 12px 14px;
  background: var(--wt-card);
  color: var(--wt-text);
  text-align: left;
}
.wt-choice.is-selected {
  background: var(--wt-selection-bg);
  border-color: var(--wt-primary);
  color: var(--wt-selection-text);
}

/* 4.4 Text entry - InputContainerBorderStyle (2 px stroke, radius 18) + ShelterFormFieldLabelStyle */
.wt-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wt-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 16px;
  color: var(--wt-text-body);
}
.wt-field label img {
  width: 18px;
  height: 18px;
}
.wt-field__helper {
  font-size: 13px;
  color: var(--wt-text-secondary);
}
.wt-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 2px solid var(--wt-border);
  border-radius: var(--wt-radius-input);
  background: var(--wt-input-bg);
  color: var(--wt-text);
  font-family: var(--wt-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 120ms ease-out;
}
.wt-input::placeholder {
  color: var(--wt-text-muted);
}
.wt-input:focus {
  outline: none;
  border-color: var(--wt-primary);
}
.wt-input[readonly] {
  background: var(--wt-surface-subtle);
  color: var(--wt-text-secondary);
}
textarea.wt-input {
  min-height: 120px;
  resize: none;
}
.wt-input.input-validation-error {
  border-color: var(--wt-validation-border);
}
.wt-input-group {
  position: relative;
}
.wt-input-group .wt-input {
  padding-right: 52px;
}
.wt-input-group__toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
}
.wt-input-group__toggle img {
  width: 20px;
  height: 20px;
}
.wt-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--wt-text-body);
  cursor: pointer;
}
.wt-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--wt-primary);
}

/* 4.5 Validation summary - ValidationSummaryBorderStyle (radius 10, 13 px). The MVC tag helper emits
   validation-summary-errors / validation-summary-valid, so both are styled. */
.wt-validation,
.validation-summary-errors {
  border: 1px solid var(--wt-validation-border);
  border-radius: var(--wt-radius-validation);
  padding: 10px 12px;
  background: var(--wt-error-bg);
  color: var(--wt-validation-text);
  font-size: 13px;
  line-height: 1.45;
}
.wt-validation ul,
.validation-summary-errors ul {
  margin: 0;
  padding-left: 18px;
}
.wt-validation.validation-summary-valid,
.validation-summary-valid {
  display: none;
}
.field-validation-error {
  display: block;
  font-size: 12px;
  color: var(--wt-error);
}
.field-validation-valid {
  display: none;
}

/* Status message - EmailAuthPage.xaml StatusBorder (teal info / red error, radius 18) */
.wt-status {
  border: 1px solid var(--wt-soft-teal);
  border-radius: var(--wt-radius-input);
  padding: 12px;
  background: var(--wt-soft-teal-bg);
  color: var(--wt-soft-teal);
  font-size: 13px;
  line-height: 1.45;
}
.wt-status--error {
  border-color: var(--wt-error);
  background: var(--wt-error-bg);
  color: var(--wt-validation-text);
}
.wt-status a {
  font-weight: 600;
  color: inherit;
}

/* 4.6 Section header with icon disc - FormSectionHeaderView / FormSectionIconBorderStyle */
.wt-section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}
.wt-section-head h2,
.wt-section-head h3 {
  font-weight: 700;
  font-size: 16px;
  color: var(--wt-text);
}
.wt-icon-disc {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--wt-soft-teal-bg);
  color: var(--wt-primary);
  font-size: 16px;
}
.wt-icon-disc--round {
  border-radius: 50%;
}
.wt-icon-disc--sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
}
.wt-icon-disc--xl {
  width: 80px;
  height: 80px;
  border-radius: 40px;
  font-size: 36px;
}
.wt-icon-disc--filled {
  background: var(--wt-primary);
  color: #fff;
}
.wt-icon-disc--teal {
  background: var(--wt-soft-teal-bg);
  color: var(--wt-soft-teal);
}
.wt-icon-disc--gold {
  background: var(--wt-soft-gold-bg);
  color: var(--wt-soft-gold);
}
.wt-icon-disc--green {
  background: var(--wt-soft-success-bg);
  color: var(--wt-success);
}
.wt-icon-disc--blue {
  background: var(--wt-soft-blue-bg);
  color: var(--wt-soft-blue);
}
.wt-icon-disc--purple {
  background: var(--wt-soft-purple-bg);
  color: var(--wt-soft-purple);
}
.wt-icon-disc--red {
  background: var(--wt-soft-danger-bg);
  color: var(--wt-danger-accent);
}
.wt-icon-disc--amber {
  background: var(--wt-warning-bg);
  color: var(--wt-pill-amber-text);
}
.wt-icon-disc--brand {
  background: var(--wt-gradient-brand);
  color: #fff;
}
.wt-icon-disc--sky {
  background: var(--wt-gradient-blue);
  color: #fff;
}
.wt-icon-disc--gray {
  background: var(--wt-pill-gray-bg);
  color: var(--wt-pill-gray-text);
}

/* 4.7 Status badges - ShelterDashboardPage.xaml:274 (padding 12 4, radius 12, PoppinsMedium 12) */
.wt-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--wt-radius-badge);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.wt-badge--pending {
  background: var(--wt-pill-amber-bg);
  color: var(--wt-pill-amber-text);
}
.wt-badge--approved {
  background: var(--wt-pill-green-bg);
  color: var(--wt-pill-green-text);
}
.wt-badge--rejected {
  background: var(--wt-pill-red-bg);
  color: var(--wt-pill-red-deep);
}
.wt-badge--neutral {
  background: var(--wt-pill-gray-bg);
  color: var(--wt-pill-gray-text);
}
.wt-badge--info {
  background: var(--wt-pill-blue-bg);
  color: var(--wt-pill-blue-text);
}
.wt-badge--adopted {
  background: var(--wt-pill-purple-bg);
  color: var(--wt-pill-purple-text);
}
.wt-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--wt-badge-bg);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}

/* 4.9 Page header - ShelterDashboardPage.xaml:49-54 (80 % white, blur, 1 px rule, teal 24 px title) */
.wt-page-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--wt-glass);
  border-bottom: 1px solid var(--wt-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.wt-page-head h1 {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  color: var(--wt-primary);
  overflow-wrap: anywhere;
}
.wt-page-head__logo {
  height: 32px;
  width: auto;
}
.wt-page-head__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.wt-page-head__action {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--wt-text-body-soft);
  font-size: 18px;
  cursor: pointer;
}
.wt-page-head__action .wt-count {
  position: absolute;
  top: 0;
  right: 0;
}

/* 4.8 Navigation item - AppBottomNavigationBar.xaml (10 px label, active mint pill lifted 2 px) and .wt-dock */
.wt-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--wt-nav-fg);
  font-size: 10px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 120ms ease-out;
}
.wt-nav-item i {
  font-size: 16px;
}
.wt-nav-item.is-active {
  background: var(--wt-nav-active-bg);
  color: var(--wt-primary);
  transform: translateY(-2px);
}
.wt-nav-item[aria-disabled="true"] {
  opacity: .6;
  cursor: default;
}
.wt-dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  height: var(--wt-dock-height);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 2px 1px;
  background: var(--wt-nav-bg);
  border-top: 1px solid var(--wt-border);
  box-shadow: var(--wt-shadow-dock);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.wt-dock .wt-nav-item {
  padding: 6px 2px;
  margin: 2px;
}

/* Theme toggle - moon in light, sun in dark */
.wt-theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 20px;
  background: var(--wt-surface-muted);
  color: var(--wt-text-body-soft);
  font-size: 16px;
  cursor: pointer;
}
.wt-theme-toggle .fa-sun {
  display: none;
}
[data-theme=dark] .wt-theme-toggle .fa-moon {
  display: none;
}
[data-theme=dark] .wt-theme-toggle .fa-sun {
  display: inline-block;
}

/* Progress track - ProgressFillBrush (S:205-215) */
.wt-progress {
  height: 8px;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-surface-muted);
  overflow: hidden;
}
.wt-progress__fill {
  height: 100%;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-gradient-brand);
}

/* Typography roles (Appendix C part 4) */
.wt-title {
  font-weight: 500;
  font-size: var(--wt-fs-title);
  line-height: 1.3;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-title--teal {
  color: var(--wt-primary);
}
.wt-hero-title {
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  color: var(--wt-text);
  text-align: center;
  overflow-wrap: anywhere;
}
.wt-hero-subtitle {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  color: var(--wt-text-secondary);
  text-align: center;
}
.wt-h2 {
  font-weight: 500;
  font-size: 18px;
  color: var(--wt-text);
}
.wt-body {
  font-size: var(--wt-fs-body);
  line-height: 1.45;
  color: var(--wt-text-body);
}
.wt-body--lg {
  font-size: 16px;
  line-height: 1.5;
  color: var(--wt-text-secondary);
}
.wt-helper {
  font-size: 13px;
  color: var(--wt-text-secondary);
}
.wt-caption {
  font-size: 12px;
  color: var(--wt-text-muted);
}
.wt-muted {
  color: var(--wt-text-muted);
}
.wt-center {
  text-align: center;
}
.wt-link {
  color: var(--wt-primary);
  text-decoration: underline;
}
.wt-link--strong {
  font-weight: 600;
  text-decoration: none;
}
.wt-legal {
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--wt-text-secondary);
}
.wt-legal--sm {
  font-weight: 300;
  font-size: 12px;
}
.wt-legal a {
  color: var(--wt-primary);
  text-decoration: underline;
}
.wt-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wt-stack--sm {
  gap: 8px;
}
.wt-stack--lg {
  gap: 24px;
}
.wt-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wt-row--between {
  justify-content: space-between;
}
.wt-row--center {
  justify-content: center;
}
.wt-divider {
  height: 1px;
  background: var(--wt-card-border);
}
.wt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
