/* Add Challenge Modal Styles */
.add-challenge-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.32);
  z-index: 10010;
}
.add-challenge-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: none;
  z-index: 10020;
  width: 340px;
  padding: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border-radius: 0;
}
.add-challenge-modal-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.add-challenge-modal-x {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  bottom: auto;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: #111;
  font-size: 1.7em;
  font-weight: 900;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: color 0.15s;
}
.add-challenge-modal-x:hover {
  color: #d00;
  background: none;
}
.add-challenge-modal-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 38px 0 18px;
}
.add-challenge-modal-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid #eee;
  box-shadow: none;
}
.add-challenge-modal-username {
  font-family: "Founders Grotesk Text", sans-serif;
  font-size: 1.13em;
  font-weight: 700;
  color: #222;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.add-challenge-modal-body {
  padding: 18px 18px 0 18px;
  text-align: center;
}
.add-challenge-modal-input {
  width: 100%;
  min-height: 48px;
  font-size: 1.18em;
  font-weight: 700;
  border: none;
  outline: none;
  background: transparent;
  border-radius: 8px;
  padding: 10px 12px;
  flex: 1 1 0%;
  margin-bottom: 0;
  resize: none;
  text-align: center;
}
.add-challenge-modal-input::placeholder {
  color: #7a7a7a;
}
.add-challenge-modal-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 0 18px;
  gap: 16px;
  box-sizing: border-box;
  margin: 18px auto 10px auto;
  flex-wrap: nowrap;
}
.add-challenge-modal-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.05em;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  user-select: none;
  flex: 1;
  min-width: 0;
  transition: color 0.28s ease, opacity 0.28s ease;
}
.add-challenge-modal-toggle > span:first-child {
  flex: 1;
  min-width: 0;
}
.add-challenge-modal-switch {
  flex: 0 0 auto;
  margin-left: auto;
  width: 38px;
  height: 22px;
  background: rgba(255,255,255,0.35);
  border-radius: 12px;
  position: relative;
  transition: background 0.28s ease;
  display: inline-block;
  /* box-shadow removed */
}
.add-challenge-modal-switch input {
  display: none;
}
.add-challenge-modal-switch-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease;
  transform: translateX(0);
}
.add-challenge-modal-switch input:checked + .add-challenge-modal-switch-slider {
  transform: translateX(16px);
  background: #ffd600;
}
.add-challenge-modal-switch input:checked + .add-challenge-modal-switch-slider {
  box-shadow: none;
}
.add-challenge-modal-switch:has(input:checked) {
  background: rgba(224,171,15,0.55);
  box-shadow: none;
}
.add-challenge-modal-save {
  position: static;
  left: auto;
  bottom: auto;
  background: #ffd600;
  color: #222;
  font-weight: 700;
  font-size: 1.08em;
  border: none;
  border-radius: 8px;
  padding: 8px 22px;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
  margin-right: 18px;
}
.add-challenge-modal-save:hover {
  background: #ffe066;
}
