/* =========================
   ANIMATIONS
   ========================= */
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes overlayFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes cardSlideIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes cardSlideOut {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to { opacity: 0; transform: scale(0.92) translateY(16px); }
}

@keyframes thankYouPop {
  0% { opacity: 0; transform: scale(0.7); }
  60% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes thankYouFadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.92); }
}

/* OVERLAY */
.alumni-modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  animation: overlayFadeIn 0.25s ease-out both;
}

.alumni-modal.modal-closing {
  animation: overlayFadeOut 0.22s ease-in both;
}

.alumni-modal.mode-relative {
  position: relative;
  background: transparent;
}

.alumni-modal.mode-absolute {
  position: absolute;
}

/* CARD */
.alumni-card {
  background: #fff;
  width: 100%;
  max-width: 600px;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Card entrance/exit animation */
.alumni-modal .alumni-card {
  height: auto;
  max-height: 90vh;
  z-index: 3001;
  animation: cardSlideIn 0.3s ease-out both;
}

.alumni-modal.modal-closing .alumni-card {
  animation: cardSlideOut 0.22s ease-in both;
}

/* Thank-you card animation */
.alumni-modal .alumni-card.success-card {
  animation: thankYouPop 0.4s ease-out both;
}

.alumni-modal.thank-you-closing .alumni-card.success-card {
  animation: thankYouFadeOut 0.3s ease-in both;
}

/* HEADER */
.alumni-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 18px;
  flex-shrink: 0;
}

.alumni-header::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 1px;
  background-color: #e5e7eb;
}

.alumni-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.alumni-header .close-icon {
  cursor: pointer;
  font-size: 24px;
  color: #6b7280;
  line-height: 1;
}

.alumni-header .close-icon:hover {
  color: #374151;
}

/* SCROLLABLE CONTENT AREA - between header and footer */
.alumni-content-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* PROFILE ROW */
.profile-row {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 18px 22px 20px;
}

/* AVATAR */
.avatar {
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  min-height: 68px !important;
  border-radius: 50% !important;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  position: relative !important;
}

.avatar i {
  font-size: 28px;
  color: #9ca3af;
  z-index: 1;
}

.profile-preview {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
  z-index: 10 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* NAME, PHONE & EMAIL BESIDE AVATAR */
.profile-info-beside {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

/* Contact inline (phone & email) */
.contact-inline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ADD MODE — more spacing for contact */
.alumni-modal .contact-inline {
  gap: 18px;
  margin-top: 8px;
}

/* Ensure phone and email inputs have same width */
.contact-inline .input-with-icon {
  width: 100%;
  max-width: 100%;
}

.contact-inline .input-with-icon.phone-inline,
.contact-inline .input-with-icon.email-inline {
  width: fit-content !important;
  max-width: 100%;
}

/* Legacy support */
.profile-name-only {
  flex: 1;
  font-size: large;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* PHONE & EMAIL BELOW - legacy */
.contact-below {
  padding: 0 22px 1px;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  margin-top: 2px;
  margin-bottom: 10px;
  gap: 4px;
}
/* ADD MODE — MORE SPACING */
.alumni-modal .contact-below {
  gap: 23px;
  padding-left: 40px;
}

/* VIEW MODE — align with avatar */
.alumni-view-wrapper .contact-below {
  padding-left: 40px;
}

/* Ensure phone and email inputs have same width in add mode */
.alumni-modal .contact-below .input-with-icon {
  width: 180px;
  max-width: 180px;
}

.avatar-wrapper {
  position: relative;
  width: 68px;
  height: 68px;
}

.profile-edit-icon {
  position: absolute;
  bottom: 7px;
  right: 13px;
  width: 6px;
  height: 6px;
  padding: 8px 10px;
  border-radius: 50%;
  background: #bdcadf;
  border: none;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-edit-icon:hover {
  background: #eff0f2;
}

/* INPUT — UNDERLINE ONLY */
.form-control-add {
  width: 100%;
  border: none;
  border-bottom: 1px solid #d1d5db;
  background: transparent;
  padding: 4px 0;
  font-size: 14px;
  outline: none;
  line-height: 1.4;
}

/* INTERACTIVE INPUT FOCUS */
.form-control-add:focus {
  border-bottom: 2px solid #242831;
}

/* Normal placeholder */
.form-control-add::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Placeholder becomes bold on focus */
.form-control-add:focus::placeholder {
  font-weight: 400 !important;
  color: #6b7280 !important;
}

/* VIEW MODE — NO INTERACTION */
.alumni-view-wrapper .form-control-add:focus {
  border-bottom: none !important;
}

.alumni-view-wrapper .form-control-add:focus::placeholder {
  font-weight: 400 !important;
  color: #6b7280 !important;
}

/* OTHER FIELDS */
.compact-form-area {
  padding: 1px 22px 18px;
}

/* ICON + INPUT — shared underline */
.input-with-icon {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid #d1d5db;
  width: fit-content;
  max-width: 100%;
  padding-left: 0;
}

/* VIEW MODE — no underline for phone/email */
.alumni-view-wrapper .input-with-icon {
  border-bottom: none !important;
}

/* EDIT MODE in view — show underline for phone/email */
.alumni-view-wrapper .input-with-icon:has(.form-control-add:not([disabled]):not([readonly])) {
  border-bottom: 1px solid #d1d5db !important;
}


/* FIELD LABELS - Gray semi-bold */
.field-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 2px;
  display: block;
}

.input-with-icon i {
  font-size: 13px;
  color: #6b7280;
  min-width: 14px;
}
.input-with-icon .form-control-add {
  border-bottom: none !important;
  padding: 0 !important;
  width: auto;
}

.view-contact-value {
  font-size: 14px;
  color: #1f2937;
  line-height: 1.35;
  min-width: 0;
}

.email-view-value {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* View mode: give contact rows more width so long emails can wrap naturally */
.alumni-view-wrapper .contact-inline {
  width: 100%;
  max-width: 100%;
}

.alumni-view-wrapper .contact-inline .input-with-icon {
  width: 100%;
  max-width: 100%;
  align-items: flex-start;
}

.alumni-view-wrapper .email-view-value {
  max-width: 100%;
}
.input-with-icon:focus-within {
  border-bottom: 2px solid #242831;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 16px;
}

/* VIEW MODE — 2 columns only */
.alumni-view-wrapper .compact-grid {
  grid-template-columns: repeat(2, 1fr);
}

.input-group {
  width: 100%;
}

/* Align nicely */
.profile-name-only .input-group {
  width: 90%;
}

.contact-below .input-group {
  width: 85%;
}

.compact-grid .input-group {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 4px;
  margin-top: 2px;
}
/* LABEL + VALUE — multiline safe layout */
.view-inline-field {
  display: grid;
  grid-template-columns: minmax(110px, 40%) minmax(0, 1fr);
  column-gap: 6px;
  align-items: start;
  padding: 2px 0;
  min-width: 0;
  overflow: hidden;
}


/* Override input padding inside view-inline-field for edit mode */
.view-inline-field .form-control-add {
  padding: 0 !important;
  border-bottom: 1px solid #d1d5db !important;
  margin: 0;
}

.view-label {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 400;
  white-space: normal;
  text-transform: capitalize;
  align-self: start;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.view-value {
  font-size: 14px;
  color: #0f141e;
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  min-width: 0;
  display: block;
  width: 100%;
  align-self: start;
}

.profile-name-input {
  height: auto;
  min-height: 24px;
  line-height: 1.4;
  padding: 0 0 4px 0 !important;
  font-size: 16px;
  font-weight: 600;
  max-width: 100%;
  background: transparent !important;
  background-color: transparent !important;
  resize: none;
  overflow-x: hidden;
  overflow-y: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-family: inherit;
}

.name-field {
  overflow-wrap: normal;
  word-break: normal;
}

.email-textarea {
  height: auto;
  min-height: 22px;
  line-height: 1.35;
  resize: none;
  overflow-x: hidden;
  overflow-y: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere !important;
  word-break: break-word;
}

/* Add mode - show underline for name */
.alumni-modal .profile-name-input {
  border-bottom: 1px solid #d1d5db !important;
}

.alumni-view-wrapper .profile-name-input {
  cursor: default;
  border-bottom: none !important;
}

/* Show underline for name when editing in view mode */
.alumni-view-wrapper .profile-name-input:not([disabled]):not([readonly]) {
  border-bottom: 1px solid #d1d5db !important;
  cursor: text;
}

/* SUBMIT BUTTON IN VIEW MODE - positioned where edit button was */
.submit-btn-inline {
  background: #76787b;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.submit-btn-inline:hover {
  background: #b5b5b7;
}

.cancel-btn-inline {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 6px 14px;
  border-radius: 6px;
  color: #374151;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cancel-btn-inline:hover {
  background: #f9fafb;
}

/* FOOTER */
.alumni-footer {
  padding: 16px 20px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.save-btn-add {
  background: #51a6f5;
  color: #fff;
  border: none;
  padding: 10px 34px;
  border-radius: 22px;
  font-size: 14px;
  cursor: pointer;
}

.save-btn-add:hover {
  background: #3e97eb;
}

.alumni-card.mode-relative-card {
  box-shadow: none;
}

/* MOBILE */
@media (max-width: 600px) {
  .profile-row {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 20px;
  }

  .profile-row .avatar-wrapper {
    align-self: center;
    margin-left: auto;
    margin-right: auto;
  }

  .profile-info-beside {
    width: 100%;
    align-items: flex-start;
  }

  .profile-name-only {
    width: 100%;
    align-items: flex-start;
  }

  .profile-name-input {
    text-align: left;
    max-width: 100%;
  }

  .contact-inline {
    width: 100%;
  }

  .contact-inline .input-with-icon {
    width: 100%;
    max-width: 100%;
  }

  .avatar-wrapper {
    margin-bottom: 10px;
  }

  .compact-grid {
    grid-template-columns: 1fr;
  }

  .alumni-view-wrapper .compact-grid {
    grid-template-columns: 1fr;
  }

  .compact-grid .input-group {
    padding-left: 0;
    padding-right: 0;
  }
}

/* HARD RESET — KEEP */
.alumni-card input,
.alumni-card select,
.alumni-card textarea {
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid #d1d5db !important;
  padding: 4px 0 !important;
  box-shadow: none !important;
}

/* FORCE 14px FONT FOR ALL INPUTS IN MODAL */
.alumni-card input,
.alumni-card input::placeholder,
.alumni-card textarea,
.alumni-card select {
  font-size: 14px !important;
}

.scroll-indicator {
  display: flex;
  justify-content: center;
  padding: 6px 0;
  color: #9ca3af;
  font-size: 14px;
  animation: bounce 1.6s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.alumni-view-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.alumni-view-wrapper .alumni-card {
  box-shadow: none;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 2px;
  max-width: 100%;
  height: auto;
  max-height: none;
}

/* View mode header with action buttons */
.alumni-view-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 16px;
  gap: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.alumni-view-header .action-btn {
  background: transparent;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #374151;
  transition: all 0.2s;
}

.alumni-view-header .action-btn.edit-btn {
  color: #030c1c;
  background: white;
}

.alumni-view-header .action-btn.delete-btn {
  color: #ef4444;
}

.alumni-view-header .action-btn.delete-btn:hover {
  background: #ffffff;
}

.alumni-view-header .action-btn.recall-btn {
  color: #f59e0b;
}

.alumni-view-header .action-btn.recall-btn:hover {
  background: #fffbeb;
}

/* Container for each profile card in list view */
.modal-container-div {
  margin-bottom: 8px;
}

.modal-container-div .alumni-profile-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* ===========================
   VIEW MODE — NO INPUT LINES (only when not editing)
   =========================== */
.alumni-view-wrapper .form-control-add {
  border-bottom: none !important;
  padding-bottom: 2px;
  cursor: default;
}

.alumni-view-wrapper .form-control-add:focus {
  border-bottom: none !important;
}

.alumni-view-wrapper .form-control-add:hover {
  border-bottom: none !important;
}

/* EDIT MODE in view wrapper — show underlines */
.alumni-view-wrapper .form-control-add:not([disabled]):not([readonly]) {
  cursor: text;
}

.view-menu-wrapper {
  position: relative;
  background: #fff;
}

.view-menu-wrapper:hover {
  background: #fff;
}

.menu-icon-btn {
  background: transparent;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
}

.menu-icon-btn:hover {
  background: #ffffff;
}

.view-menu-dropdown {
  position: absolute;
  top: 36px;
  right: 0;
  min-width: 140px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  z-index: 20;
  overflow: hidden;
}

.menu-item {
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  text-align: left;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.menu-item:hover {
  background: #f9fafb;
}

.menu-item.recall {
  color: #f59e0b;
}

.menu-item.delete {
  color: #ef4444;
}

.menu-item.publish {
  color: #22c55e;
}

.profile-row-view {
  position: relative;
}

.profile-divider {
  height: 1px;
  min-height: 1px;
  max-height: 1px;
  background: #e5e7eb;
  margin: 5px 22px;
  transform: scaleY(1);
}

.scrollable-card {
  max-height: 420px;
  overflow-y: auto;
  position: relative;
}

/* Remove scroll for view and edit modes */
.alumni-view-wrapper .alumni-card.no-scroll,
.alumni-modal .alumni-card.no-scroll {
  max-height: none;
  overflow-y: visible;
}

.scroll-indicator {
  position: sticky;
  display: flex;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #6b7280;
  padding: 6px 0;
}

.scroll-indicator.down {
  bottom: 0;
}

.scroll-indicator.up {
  top: 0;
}

.profile-actions {
  position: absolute;
  top: 20px;
  right: 5px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 20;
}

.review-status-badge {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* Legacy menu styles (not used now)
.legacy-post-menu .author-details,
.legacy-post-menu .author-logo,
.legacy-post-menu .post-date {
  display: none !important;
}

.legacy-post-menu {
  position: absolute;
  top: 20px;
  right: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 25;
}

.legacy-post-menu .post-info-container {
  position: relative;
}

.legacy-post-menu .postMenuContainer {
  position: absolute;
  right: 0;
  top: 22px;
  z-index: 30;
}
*/

/* =========================
   VIEW MODE – EDIT BUTTON
   Scoped only to alumni view
   ========================= */
.alumni-view-wrapper .profile-actions .profile-edit-btn {
  background: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.alumni-view-wrapper .profile-actions .profile-edit-btn i {
  color: #475569;
  font-size: 13px;
}

/* Profile image edit button (camera icon) for add/edit modes */
.profile-image-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d4d5d8;
  border: 2px solid #fff;
  color: #374151;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  padding: 0;
}

.profile-image-edit-btn:hover {
  background: #d3d8e3;
}

/* Show profile image edit button in view mode when editing */
.alumni-view-wrapper .profile-image-edit-btn {
  display: flex;
}

/* Edit mode input with label */
.edit-field-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.edit-field-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
}

/* Edit mode inline input/textarea - side by side with label */
.edit-inline-input {
  flex: 1;
  min-width: 0;
  padding: 0 !important;
  margin: 0;
  height: auto;
  min-height: 22px;
  line-height: 1.45em;
  resize: none;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: inherit;
}

.multiline-underline {
  border-bottom: none !important;
  line-height: 1.45em !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(1.45em - 1px),
    #d1d5db calc(1.45em - 1px),
    #d1d5db 1.45em
  );
  background-size: 100% 1.45em;
  background-repeat: repeat-y;
  background-position: 0 0;
  background-color: transparent !important;
  background-clip: content-box;
}

.multiline-underline:focus {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(1.45em - 2px),
    #242831 calc(1.45em - 2px),
    #242831 1.45em
  );
}

.edit-inline-input.multiline-underline,
.name-field.multiline-underline,
.email-textarea.multiline-underline {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(1.45em - 1px),
    #d1d5db calc(1.45em - 1px),
    #d1d5db 1.45em
  ) !important;
  background-size: 100% 1.45em !important;
  background-repeat: repeat-y !important;
  background-position: 0 0 !important;
  border-bottom: none !important;
}

.edit-inline-input::placeholder {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

/* =========================
   ADD MODE — INDIVIDUAL FIELD CONTROL
   ========================= */

/* NAME — tight underline just below text */
.alumni-modal .name-field {
  max-width: 100%;
  padding: 0 0 2px 0 !important;
  margin: 0;
  line-height: 1.3;
}

/* ADD MODE — name alignment fix */
.alumni-modal .profile-name-only {
  justify-content: flex-start;
  padding-top: 0;
}
/* ROW HEIGHT — allow growth for multi-line content */
.view-inline-field {
  min-height: 22px;
  align-items: flex-start;
}
/* EDIT MODE — textarea must behave like text */
.view-inline-field .edit-inline-input {
  height: auto;
  min-height: 22px;
  grid-column: 2;
  line-height: 1.4;
  padding: 0 !important;
  margin: 0 !important;
  border: none;
  border-bottom: none !important;
  width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  resize: none;
  overflow: hidden;
  background-color: transparent;
}

.view-inline-field .edit-inline-input.multiline-underline {
  align-self: start;
}

.view-inline-field.stacked-field {
  grid-template-columns: 1fr;
  row-gap: 4px;
}

.view-inline-field.stacked-field .view-label {
  grid-column: 1;
}

.view-inline-field.stacked-field .view-value,
.view-inline-field.stacked-field .edit-inline-input {
  grid-column: 1;
  width: 100%;
}
/* DO NOT allow global input/textarea padding to affect inline edit */
.view-inline-field input,
.view-inline-field textarea {
  padding: 0 !important;
}

/* ADD MODE — Label styling */
.alumni-modal .view-label {
  color: #6b7280;
  font-weight: 500;
}
/* Success state */
.success-card {
  padding: 40px 30px;
  text-align: center;
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.success-icon {
  font-size: 48px;
  color: #22c55e;
}

.success-content h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.success-content p {
  font-size: 14px;
  color: #6b7280;
}

/* =========================
   VALIDATION ERROR STYLES
   ========================= */
.input-wrapper {
  display: flex;
  background-color:#ffffff;
  flex-direction: column;
  width: 100%;
}

.input-with-icon-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.error-message {
  color: #ef4444;
  font-size: 11px;
  margin-top: 2px;
  padding-left: 0;
  display: block;
}

.input-with-icon-wrapper .error-message {
  padding-left: 26px;
}

/* Error state for inputs */
.input-error {
  border-bottom-color: #ef4444 !important;
}

.input-error:focus-within {
  border-bottom-color: #ef4444 !important;
}

.form-control-add.input-error {
  border-bottom: 1px solid #ef4444 !important;
}

.form-control-add.input-error:focus {
  border-bottom: 2px solid #ef4444 !important;
}

/* =========================
   PUBLISH/RECALL BUTTONS OUTSIDE MENU
   ========================= */
.profile-actions .action-btn.publish-btn,
.profile-actions .action-btn.recall-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.profile-actions .action-btn.publish-btn {
  background: #dcfce7;
  color: #16a34a;
}

.profile-actions .action-btn.publish-btn:hover {
  background: #bbf7d0;
}

.profile-actions .action-btn.recall-btn {
  background: #fef3c7;
  color: #d97706;
}

.profile-actions .action-btn.recall-btn:hover {
  background: #fde68a;
}

.profile-actions .action-btn .btn-text {
  font-weight: 500;
}

.profile-actions .action-btn i {
  font-size: 12px;
}

/* Mobile responsive for buttons */
@media (max-width: 480px) {
  .profile-actions .action-btn.publish-btn .btn-text,
  .profile-actions .action-btn.recall-btn .btn-text {
    display: none;
  }

  .profile-actions .action-btn.publish-btn,
  .profile-actions .action-btn.recall-btn {
    padding: 6px 8px;
  }
}

/* =========================
   IMAGE PREVIEW MODAL
   ========================= */
.image-preview-modal {
  position: fixed;
  inset: 0;
  background:transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  cursor: pointer;
}

.image-preview-content {
  position: relative;
  width: 300px;
  height: 300px;
  background: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  cursor: default;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-preview-content img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  border-radius: 12px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.image-preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}

.image-preview-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Responsive image preview for mobile */
@media (max-width: 480px) {
  .image-preview-content {
    width: 260px;
    height: 260px;
  }
}

/* Avatar clickable state */
.avatar.clickable {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.avatar.clickable:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =========================
   DARK MODE / LIGHT MODE
   ========================= */

/* Light Mode (default) */
.light-mode .alumni-card,
.alumni-modal:not(.dark-mode) .alumni-card,
.alumni-view-wrapper:not(.dark-mode) .alumni-card {
  background: #fff;
  color: #1f2937;
}

.light-mode .alumni-header h3,
.alumni-modal:not(.dark-mode) .alumni-header h3,
.alumni-view-wrapper:not(.dark-mode) .alumni-header h3 {
  color: #1f2937;
}

.light-mode .form-control-add,
.alumni-modal:not(.dark-mode) .form-control-add,
.alumni-view-wrapper:not(.dark-mode) .form-control-add {
  color: #1f2937;
  border-bottom-color: #d1d5db;
}

.light-mode .view-label,
.alumni-modal:not(.dark-mode) .view-label,
.alumni-view-wrapper:not(.dark-mode) .view-label {
  color: #6b7280;
}

.light-mode .view-value,
.alumni-modal:not(.dark-mode) .view-value,
.alumni-view-wrapper:not(.dark-mode) .view-value {
  color: #1f2937;
}

.light-mode .input-wrapper,
.alumni-modal:not(.dark-mode) .input-wrapper,
.alumni-view-wrapper:not(.dark-mode) .input-wrapper {
  background-color: #ffffff;
}

/* Dark Mode */
.dark-mode .alumni-card {
  background: #1e1e1e;
  color: #e5e5e5;
  border-color: #333;
}

.dark-mode .alumni-header {
  border-bottom-color: #333;
}

.dark-mode .alumni-header::after {
  background-color: #333;
}

.dark-mode .alumni-header h3 {
  color: #e5e5e5;
}

.dark-mode .alumni-header .close-icon {
  color: #9ca3af;
}

.dark-mode .alumni-header .close-icon:hover {
  color: #e5e5e5;
}

.dark-mode .avatar {
  background: #333;
}

.dark-mode .avatar i {
  color: #6b7280;
}

.dark-mode .form-control-add {
  color: #e5e5e5;
  border-bottom-color: #444 !important;
}

.dark-mode .form-control-add::placeholder {
  color: #6b7280;
}

.dark-mode .form-control-add:focus {
  border-bottom-color: #666 !important;
}

.dark-mode .input-with-icon {
  border-bottom-color: #444;
}

.dark-mode .input-with-icon:focus-within {
  border-bottom-color: #666;
}

.dark-mode .input-with-icon i {
  color: #6b7280;
}

.dark-mode .view-label,
.dark-mode .field-label {
  color: #9ca3af;
}

.dark-mode .view-value {
  color: #e5e5e5;
}

.dark-mode .profile-divider {
  background: #333;
}

.dark-mode .alumni-footer {
  background: #1e1e1e;
  border-top-color: #333;
}

.dark-mode .save-btn-add {
  background: #3b82f6;
  color: #fff;
}

.dark-mode .save-btn-add:hover {
  background: #2563eb;
}

.dark-mode .input-wrapper {
  background-color: #1e1e1e;
}

.dark-mode .review-status-badge {
  background: #333;
  color: #9ca3af;
  border-color: #444;
}

.dark-mode .view-menu-wrapper {
  background: #1e1e1e;
}

.dark-mode .view-menu-dropdown {
  background: #2d2d2d;
  border-color: #444;
}

.dark-mode .menu-item {
  color: #e5e5e5;
}

.dark-mode .menu-item:hover {
  background: #333;
}

.dark-mode .menu-item.recall {
  color: #fbbf24;
}

.dark-mode .menu-item.delete {
  color: #f87171;
}

.dark-mode .menu-icon-btn {
  color: #9ca3af;
}

.dark-mode .menu-icon-btn:hover {
  background: #333;
}

.dark-mode .profile-actions .profile-edit-btn {
  background: #2d2d2d;
}

.dark-mode .profile-actions .profile-edit-btn i {
  color: #9ca3af;
}

.dark-mode .profile-actions .action-btn.publish-btn {
  background: #166534;
  color: #86efac;
}

.dark-mode .profile-actions .action-btn.publish-btn:hover {
  background: #15803d;
}

.dark-mode .profile-actions .action-btn.recall-btn {
  background: #92400e;
  color: #fcd34d;
}

.dark-mode .profile-actions .action-btn.recall-btn:hover {
  background: #a16207;
}

.dark-mode .edit-inline-input {
  color: #e5e5e5;
  border-bottom-color: #444 !important;
}

.dark-mode .submit-btn-inline {
  background: #3b82f6;
  color: #fff;
}

.dark-mode .cancel-btn-inline {
  background: #333;
  color: #e5e5e5;
  border-color: #444;
}

.dark-mode .profile-image-edit-btn {
  background: #444;
  border-color: #1e1e1e;
  color: #e5e5e5;
}

.dark-mode .profile-image-edit-btn:hover {
  background: #555;
}
