* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 100px 20px 20px 20px;
  min-height: 100vh;
  margin: 0;
}

form {
  width: 100%;
  max-width: 480px;
  background-color: white;
  padding: 24px;
  margin-bottom: 40px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

form h1 {
  background-color: #36b3a8;
  color: white;
  font-size: clamp(1.4rem, 5vw, 24px);
  font-weight: bold;
  text-align: center;
  padding: 16px;
  margin: -24px -24px 24px -24px;
  border-radius: 10px 10px 0 0;
  box-sizing: border-box;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

textarea {
  resize: vertical;
}

button {
  width: 100%;
  background-color: #36b3a8;
  color: white;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #2a9c93;
}

@media (max-width: 500px) {
  form {
    padding: 20px;
  }

  form h1 {
    font-size: 18px;
  }

  input,
  textarea,
  select,
  button {
    font-size: 15px;
  }
}

/* Radio button styles */
.radio-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 16px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.status-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: white;
  margin-bottom: 10px;
}

.status-btn.approve {
  background-color: #28a745;
}

.status-btn.reject {
  background-color: #dc3545;
}

.status-btn.save {
  background-color: #6c757d;
}

.status-btn:hover {
  opacity: 0.9;
}

.button-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.status-btn {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: white;
}

/* Keep button colors */
.status-btn.approve {
  background-color: #28a745;
}

.status-btn.reject {
  background-color: #dc3545;
}

.status-btn.save {
  background-color: #6c757d;
}

.status-btn:hover {
  opacity: 0.9;
}

/* Clean link style: neutral black, subtle hover */
:root {
  --link-color: #111; /* tweak if you want slightly lighter/darker */
}

/* Main content areas (safe to target across your pages) */
.page a,
.dashboard-section a,
main a,
table a,
.expand-dots a,
.view-button,
.content a {
  color: var(--link-color) !important;
  text-decoration: none;
}

/* Visited stays the same color */
.page a:visited,
.dashboard-section a:visited,
main a:visited,
table a:visited,
.expand-dots a:visited,
.view-button:visited,
.content a:visited {
  color: var(--link-color) !important;
}

/* Hover/focus underline for affordance */
.page a:hover,
.dashboard-section a:hover,
main a:hover,
table a:hover,
.expand-dots a:hover,
.view-button:hover,
.content a:hover,
.page a:focus-visible,
.dashboard-section a:focus-visible,
main a:focus-visible,
table a:focus-visible,
.expand-dots a:focus-visible,
.view-button:focus-visible,
.content a:focus-visible {
  text-decoration: underline;
}

/* Optional: utility to opt-out and use accent color when needed */
a.link-accent {
  color: var(--accent, #36b3a8) !important; /* or your brand color */
  text-decoration: underline;
}

/* Layout: two responsive cards */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

/* Card */
.member-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 16px 18px;
}

/* Card header (title + count pill) */
.member-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.member-card h4 {
  margin: 0;
  font-weight: 700;
}

/* Count pill */
.count-pill {
  background: #eef7f6;
  color: #2a6b66;
  border: 1px solid #bfe3df;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Names as chips */
.name-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.name-list li {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.95rem;
  white-space: normal;
  max-width: 100%;
}

/* Empty state */
.name-list li.empty {
  background: transparent;
  border: 0;
  color: #6b7280;
  padding: 0;
  font-style: italic;
}

/* Make name-list entries inside the member-card render as rounded-rectangle rows
   (match the outer member-card style rather than pills/ovals). */
.member-card .name-list {
  display: block;
  padding-left: 0;
  margin: 0;
}
.member-card .name-list li {
  list-style: none;
  background: #ffffff;
  border: 1px solid #e6eef0;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 8px 0;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.06);
}
.member-card .name-list li .signup-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.member-card .name-list li .primary-meta {
  text-align: left;
  color: #475569;
  font-size: 13px;
}

/* Add breathing room under the primary's meta so guest boxes don't sit flush */
.member-card .name-list li .primary-meta {
  margin-bottom: 8px;
}

/* Ensure guest signup cards get a small top gap inside the guest list */
.member-card .name-list li .guest-list .signup-card-guest {
  margin-top: 6px;
}

/* Ensure guest-remove button inside member-card isn't styled as a full-width CTA */
.member-card .guest-remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 26px !important;
  height: 22px !important;
  padding: 0 !important;
  margin-left: 8px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  border-radius: 6px !important;
  border: 1px solid #e6eef0 !important;
  background: #ffffff !important;
  color: #b91c1c !important;
  cursor: pointer !important;
}
.member-card .guest-remove svg {
  width: 12px;
  height: 12px;
  display: block;
}
.member-card .guest-remove:focus {
  outline: 2px solid rgba(54, 179, 168, 0.18);
}
