/* === Root Color Palette === */
:root {
  --resist-blue-primary: #2252f1;
  --resist-blue-hover: #0635e7;
  --resist-blue-dark: #001b76;
  --resist-blue-soft: #6fa7ff;
  --resist-blue-muted: #bcd4f7;

  --resist-accent-red: #ff3333;
  --resist-accent-orange: #ff5e00;

  --resist-neutral-light: #f5f7fa;
  --resist-neutral-dark: #1f1f1f;
}

/* === Shared Overlay Form Styling === */
.overlay-form-wrapper {
  position: relative;
  background: white;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  margin: 10px auto;
  display: flex;
  flex-direction: column;
  max-width: 97vw;
  width: 100%;
  box-sizing: border-box;
  z-index: 700;
  /* REMOVE fixed height & scrolling */
}

@media (min-width: 768px), screen and (min-width: 1024px) {
  .overlay-form-wrapper {
    max-width: 640px;
    padding: 16px;
  }
   .user-tile-wrapper {
    padding: 75px 10px 10px 10px !important;
  }
}

.mobile-form {
  display: flex;
  flex-direction: column;
  padding: 4px;
  max-width: 600px;
  box-sizing: border-box;
}

.overlay-form-wrapper h2 {  
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
}

.overlay-form-wrapper label {
  display: block;
  font-weight: 500;
  font-size: 14px;
}

.overlay-form-wrapper textarea,
.overlay-form-wrapper input[type="text"],
.overlay-form-wrapper input[type="email"],
.overlay-form-wrapper input[type="password"],
.overlay-form-wrapper input[type="url"] {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 13px;
}

.alert-icon {
  width: 36px;  
  transition: transform 0.3s ease-in-out;
}

.alert-icon.pulse {
  animation: pulseGlow 1s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.25); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}
.incident-category-row {
  display: flex;
  justify-content: space-between;  
  margin-top: 0px;
}

.incident-category-option {
  flex: 1;  
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 10px;
  transition: border 0.2s ease;
}

.incident-category-option input[type="radio"] {
  display: none;
}
.incident-category-option:hover {
  border: 2px solid #999;
  background-color: #f5f5f5;
  transition: border 0.2s ease, background-color 0.2s ease;
}

.incident-category-option:hover .icon-wrapper img {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

.icon-wrapper img {
  width: 44px;
  height: 44px;
}

.icon-wrapper span {
  display: block;
  font-size: 0.85rem;
  margin-top: 6px;
}

.incident-category-option.selected {
  border: 2px solid #b30000;
  background-color: #fcecec;
}
.centered-label {
  display: block;
  text-align: center;
  font-weight: bold;
  margin-bottom: 8px;
}

.overlay-form-wrapper button[type="submit"] {
  margin-top: .75rem;
  padding: 10px 16px;
  background-color: var(--resist-blue-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
/* Reduce space between stacked elements */
.form-group-row {
margin: 8px 0px 0px 0px;
gap: 2px;
display: flex;
}

.links-group-row {
gap: 8px;
display: flex;
}
.overlay-form-wrapper button[type="submit"]:hover {
  background-color: var(--resist-blue-hover);
}

/* === Tag Styling === */
.tag-box {  
  display: flex;
  min-height: 42px;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;   /* Center horizontally */
  align-items: center;       /* Center vertically (optional) */
}

.tag-suggestion {
  background-color: #f0f0f0;
  color: #333;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.tag-suggestion.tag-selected {
  background-color: var(--resist-accent-red);
  color: white;
}

.inline-tag img {
  height: 42px;
  width: auto;
}

.inline-tag {
  background-color: #ddd;
  border-radius: 16px;
  padding: 2px 6px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
}

.inline-tag .remove-tag {
  margin-left: 6px;
  color: #666;
  cursor: pointer;
}

#manualTagsInput {
  border: none;
  padding: 6px 8px;
  outline: none;
  font-size: 12px;
  background-color: transparent;
  margin-top: 6px;
  margin-bottom: 6px;
}

.tag-suggestion {
  display: inline-block;
  background-color: #ccc;
  color: #333;
  padding: 4px 10px;
  margin: 4px 4px 0 0;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.tag-suggestion.tag-selected {
  background-color: var(--resist-blue-hover);
  color: white;
}

.manual-tag {
  display: inline-block;
  background-color: #444;
  color: white;
  padding: 4px 10px;
  margin: 4px 4px 0 0;
  border-radius: 999px;
  font-size: 12px;
  cursor: default;
  position: relative;
}

.manual-tag .remove-tag {
  font-size: 12px;
  margin-left: 6px;
  cursor: pointer;
  color: #ccc;
}

.manual-tag .remove-tag:hover {
  color: #fff;
}

.tag-input-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border: 0px solid #ccc;
  border-radius: 6px;  
  gap: 2px; 
  background: #fff;
}

.tag-input-wrapper input[type="text"] {
  border: none;
  outline: none;
  font-size: 13px;
  flex: 1;
  min-width: 100px;
  padding: 4px;
}

/* General action buttons */
.form-action-btn {
  background-color: var(--resist-blue-dark);
  color: #fff;
  border: none;
  padding: 9 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width:fit-content;  
}

.form-action-btn:hover {
  background-color: var(--resist-blue-primary);
}

#openImageBtn {
  display: block;
  margin: 10px auto;
}

.close-x-button {
  position: relative;
  top: 1px;
  right: 4px;
  font-size: 22px;
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
}

.close-x-button:hover {
  color: #000;
}

.form-instructions {
  font-size: 0.85rem;
  color: #555;
  margin-top: -12px;
  margin-bottom: 12px;
  line-height: 1.4;
}

#incidentModalContent.dragover {
  border: 3px dashed var(--resist-accent-red);
  background-color: rgba(255, 51, 51, 0.05);
  transition: background-color 0.2s ease, border 0.2s ease;
}

/* === Spark Form Specific Styling === */
.spark-form {
  background: linear-gradient(145deg, #e6e6e6, #ffffff);
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1.25rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.1);
}

.spark-form h2 {
  color: var(--resist-accent-orange);
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.spark-form p {
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.spark-intro {
  display: flex;
  align-items: center;  
  background: linear-gradient(135deg, #f9f9f9, #f0f0f0);
  border: 1px solid #ddd; 
  border-radius: 6px;  
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.event-intro {
  align-items: center;  
  background: linear-gradient(135deg, #f9f9f9, #f0f0f0);
  border: 1px solid #ddd; 
  border-radius: 6px;
  margin-bottom: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.spark-avatar-left {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.spark-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--resist-accent-red);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spark-tagline {
  text-align: center;
  font-size: 0.9rem;
  color: #444;  
  font-style: italic;
  margin: 2px
}

.spark-form label {
  font-size: 0.8rem;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
  display: block;
}

.spark-form input,
.spark-form textarea {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #fdf4e3;
  padding: 0.6rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  width: 100%;
  font-size: 0.85rem;
  line-height: 1.4;
}

.spark-form input::placeholder,
.spark-form textarea::placeholder {
  color: #888;
  font-size: 0.8rem;
}

.spark-form .tag-box {
  gap: 6px; 
  font-weight: 500;
}

.spark-submit:hover {
  background-color: var(--resist-accent-orange);
  box-shadow: 0 0 12px rgba(255, 94, 0, 0.5), 0 0 20px rgba(255, 94, 0, 0.3);
  cursor: pointer;
}

.spark-badge {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 40px;
  height: 40px;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.form-submit-btn {
  background-color: var(--resist-accent-red);
  display: block;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin: 1.5rem auto 0 auto;
}

.form-submit-btn:hover {
  background-color: #e63946;
}

.form-submit-btn:active {
  transform: scale(0.98);
}
/* === Event Timing Layout === */
.event-timing-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0px 0px 0px;
}

.event-timing-group {
  display: flex;
  flex-direction: column;
}

.event-timing-group.start-time,
.event-timing-group.end-time {
  flex: 2;
  min-width: 100px;
}

.event-timing-group.duration {
  flex: 0 0 80px;
  min-width: 80px;
}

.event-timing-group label {
  font-size: 13px;
  font-weight: 600;
}

.event-timing-group input {
  width: 100%;
  padding: 6px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

/* === Event Location Layout === */
.event-location-row-international {
  display: flex; 
  gap: 3px;
  margin-top: 4px;
}

.event-location-group {
  flex: 1;
  min-width: 80px;
}

.event-location-group.country {
  flex: 0 0 90px;
}

.event-location-group.region {
  flex: 0 0 90px;
}

.event-location-group.city {
  flex: 1.2;
  min-width: 80px;
}

.event-location-group.zip {
  flex: 0 0 60px;
}

.event-location-group select,
.event-location-group input {
  width: 100%;
  padding: 4px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

/* === Banner Modal === */
.banner-image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.banner-image-modal.hidden {
  display: none;
}

.banner-image-modal-content {
  background-color: #fff;
  padding: 20px; 
  border-radius: 10px;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.banner-image-modal-content input[type="file"] {
  margin-bottom: 12px;
}

#bannerImagePreviewContainer img {
  max-width: 100%;
  margin-top: 10px;
  border-radius: 6px;
}

#bannerFrameOverlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  aspect-ratio: 3 / 1;
  transform: translate(-50%, -50%);
  border: 2px dashed #ff0000;
  pointer-events: none;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.banner-frame-label {
  position: absolute;
  top: -18px;
  background: rgba(255, 255, 255, 0.8);
  color: #ff0000;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
}

/* Banner section */
.event-banner-box {
  position: relative;
  margin-bottom: 10px;
  text-align: center;
}

.event-banner-preview {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Form fields */
.event-form-wrapper label {
  display: block;
  margin: 6px 0 6px;
  font-weight: 600;
  font-size: 12px;
}

.event-banner-edit-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.2s;
}

.event-banner-edit-icon:hover {
  background-color: rgba(240, 240, 240, 0.95);
}

.event-banner-edit-icon img {
  width: 24px;
  height: 24px;
  display: block;
}
.address-header-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.address-label {
  font-weight: 500;
  font-size: 14px;
  margin: 0;
}

.public-checkbox-wrapper {
  display: flex;
  align-items: center;
  font-size: 14px;
  gap: 6px;
}
/* === Optional Actions / Event Options (Updated) === */
.action-options-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.action-option-box {
  padding: 8px;
  border: 1px solid #ccc;  
  border-radius: 10px;
  background-color: #fafafa;
  transition: box-shadow 0.2s ease-in-out, border-left 0.2s ease;
  position: relative;
  margin-bottom: 2px;  
}

.action-option-box:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.action-option-box .option-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  font-size: 15px;  
}

.action-option-box input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.1);
  accent-color: #2a8;
}

.action-option-box .option-desc {
  font-size: 13px;
  color: #666;
  margin: 6px 0 12px;
  line-height: 1.4;
}

.config-fields-wrapper {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #ccc;  
  animation: fadeSlideIn 0.25s ease-in-out;
}

.config-fields-wrapper .action-config-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;  
  border-bottom: 1px dashed #eee;
}

.config-fields-wrapper .action-config-field:last-child {
  border-bottom: none;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.action-config-field label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

.action-config-field input[type="text"],
.action-config-field input[type="number"],
.action-config-field textarea,
.action-config-field select {
  width: 100%;
  font-size: 12px;
  padding: 6px 4px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border 0.2s ease;
}

.action-config-field input:focus,
.action-config-field textarea:focus,
.action-config-field select:focus {
  border-color: #2a8;
  outline: none;
}

.action-config-field textarea {
  resize: vertical;
  min-height: 80px;
}

.form-static-label {
  font-size: 13px;
  color: #444;
  font-style: italic;
  margin-bottom: 8px;
}

.action-options-block .section-header {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #333;
}

/* Shared layout for top row */
.option-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;  
}

.option-header-row input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
}

.option-desc-inline {
  font-size: 13px;
  color: #555;
  flex: 1;
  min-width: 160px;
}

.question-style {
  border-left: 4px solid #5a8ded;
}

.donation-style {
  border-left: 4px solid #28a745;
}

#avatarCropContainer {
  width: 300px;
  height: 300px;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid #007bff;
  background: #f0f0f0;
}

.ep-tile {
position:relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
  /*border: 2px solid #0968f7;  */  
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;  
}

.ep-tile-header {
  height: 30px; /*  hard-coded fixed height */
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px; /*  adjust padding: no vertical padding */
  font-weight: bold;
  font-size: 16px; /*  slightly smaller font to fit cleanly */
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
  box-sizing: border-box;
}
.ep-tile-banner-handle {
  position: absolute;
  bottom: 4px;
  left: 110px;  
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.ep-tile-image {
  position: relative; 
}
.ep-tile-banner {
  position: relative;
  height: 140px;
  width: 100%;
  overflow: hidden;
  border-top-left-radius: 13px;
  border-top-right-radius: 13px; 
}

.ep-tile-banner img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  border-top-left-radius: 13px;
  border-top-right-radius: 13px; 
}

/* Avatar positioned inside banner */
.ep-avatar-circle {
  position: absolute;
  bottom: 8px;
  left: 12px;
  border: 2px solid #fff;
  background: #fff;
  border-radius: 50%;
  overflow: hidden;
  width: 95px;
  height: 95px;
  z-index: 2;
}

.ep-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Edit icon inside avatar, bottom-right */
.ep-edit-avatar-button {
  position: absolute;
  bottom: 12px;
  left: 84px; /* 12 + 90 - 18 (right edge of avatar) */
  background: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 3;
  border: 1px solid #ccc;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: background 0.2s ease;
}

.ep-edit-avatar-button img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.ep-edit-avatar-button:hover {
  background-color: #eee;
}
.ep-edit-banner-button {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 3;
  border: 1px solid #ccc;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: background 0.2s ease;
}

.ep-edit-banner-button img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.ep-edit-banner-button:hover {
  background-color: #eee;
}



/* ========== ACTION STACK ========== */
#actionStack.media-mode {
  position: absolute;
  right: 1px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;  
  padding: 4px 0px 4px 0px;
  border-radius: 13px;
  /* optional */
  background-color: rgba(0, 0, 0, 0.4);
  gap: 12px;
}

.mactionbtn {
  width: 40px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease;
  gap: 4px;
}
.mactionbtn img {
  width: 24px; 
  object-fit: contain;
}
.mactionbtn:hover {
  transform: scale(1.20);
  /*background-color: rgba(130, 130, 130, 0.8);*/
  cursor: pointer;
}

.mactionBtn.pulsing {
  animation: floatPulse 2s ease-in-out infinite;
}
.maction-label {
  font-size: 0.65rem;
  color: #ffffff;
  line-height: 1.1;
  text-align: center;
  margin: 2px 0 0 0;
  height: 12px;
}

.mlike-count {
  font-weight: normal;
}
@keyframes floatPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
/* Avatar image, round with optional blue border when followed */
.mconnect-avatar {
  width: 40px;
  height: 40px;
  margin-bottom: 12;
  border-radius: 50% !important;
  border: 2px solid transparent;
  display: block;
  transition: transform 0.2s ease;
}

.mconnect-avatar.followed {
  border-color: #2e90fa; /* Bright blue ring */
}

/* Follow + button */
.mconnect-action-button {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 18px;
  padding: 0;
  text-align: center;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 5;
  background-color: red;
}

.mconnect-action-button:hover {
  transform: translateX(-50%) scale(1.1);
}

/* Basic container alignment */
.mconnection-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


/* Form tag should be neutral unless needed for layout */
.form {
  width: 100%;
  display: contents; /* so it doesn’t interfere with layout */
}
.incident-form {  
  width: 50px;
  display: contents; /* so it doesn’t interfere with layout */
}
.form-body {
  padding: 0 2px;
  box-sizing: border-box;
  width: 100%;
}

.form-group,
.mobile-form .form-group {
  margin: 0px auto 10px auto;  
}

.form-group-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}


.form-group-row input[type="text"] {
  flex: 1;  
}
.form-group-row button {
  flex-shrink: 0;
}

.half-width {
  width: 50%;
}

.icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.c {
  all: unset;
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
}

.close-x-button {
  position: absolute; 
  right: 8px;	
  top: 6px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}


.close-x-button:hover {
  color: #000; /* or whatever hover color you prefer */
  background: none;
}


.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
  font-size: 16px;
}

/* Quick Alert modal layout */
.qa-form-wrapper {
  max-width: 500px;
  margin: 10vh auto;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  font-family: inherit;
  position: relative;
}

.qa-form-wrapper h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.qa-alert-type-selector {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  margin: 1rem 0;
}

.qa-alert-option {
  flex: 1;
  border: 2px solid #ccc;
  border-radius: 12px;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qa-alert-option:hover {
  background-color: #f9f9f9;
}

.qa-alert-option.selected {
  border-color: #e60000;
  background-color: #ffe5e5;
}

.qa-alert-option .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.qa-alert-option .label {
  font-weight: bold;
  font-size: 1rem;
}

/* Textarea and button */
.qa-message-box {
  width: 100%;
  height: 80px;
  resize: vertical;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

.qa-submit-btn {
  display: block;
  margin: 0 auto;
  padding: 1rem 2rem;
  background-color:var(--resist-blue-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.qa-submit-btn:hover {
  background-color: var(--resist-blue-hover);
}
/* Notification Settings Table */
.notify-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  margin: 20px 0 24px 0;
  overflow: hidden;
  font-size: 1.04rem;
}

.notify-table th, .notify-table td {
  padding: 14px 10px;
  text-align: center;
  vertical-align: middle;
}

.notify-table th {
  background: #f7f7f9;
  color: #223;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1rem;
  border-bottom: 2px solid #eee;
}

.notify-table tr:not(:last-child) td {
  border-bottom: 1px solid #f2f2f2;
}

.notify-table td:first-child {
  font-weight: 500;
  text-align: left;
  padding-left: 20px;
  color: #222;
}

.notify-table input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #e33;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 0 0 1.5px #bbb;
  transition: accent-color 0.15s;
}

.notify-table input[type="checkbox"]:hover {
  accent-color: #ff4a4a;
}

@media (max-width: 650px) {
  .notify-table th, .notify-table td {
    padding: 10px 4px;
    font-size: 0.95rem;
  }
  .notify-table td:first-child {
    padding-left: 7px;
    font-size: 0.98rem;
  }
}

@media (max-width: 480px) {
  .notify-table {
    font-size: 0.95rem;
    border-radius: 10px;
  }
  .notify-table th, .notify-table td {
    padding: 8px 2px;
  }
}
.phone-verify-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sms-verified-icon {
  width: 50px;
  height: 50px;
  margin-left: 5px;
  vertical-align: middle;
}

.sms-verify-btn {
  padding: 5px 6px;
  border: none;
  background: #3cb371;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.98em;
  margin-left: 5px;
  transition: background 0.18s;
}

.sms-verify-btn:hover {
  background: #2c8b57;
}
