* {
  box-sizing: border-box;
}

.edit-profile-body {
  margin: 0;
  min-height: 100vh;
  background: #f7f7f7;
  color: #111;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background 0.25s ease, color 0.25s ease;
}

.edit-profile-page {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 65px 0 100px;
  transition: margin-left 0.25s ease, width 0.25s ease;
}


body.host-layout .edit-profile-page {
  width: min(760px, calc(100% - var(--sidebar-width, 280px) - 48px));
  margin-left: calc(var(--sidebar-width, 280px) + (100% - var(--sidebar-width, 280px) - 760px) / 2);
}

/* HEADER */

.edit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 50px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #6355e7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}

.edit-header h1 {
  margin: 0 0 12px;
  color: #111;
  font-size: 42px;
  font-weight: 750;
  letter-spacing: -1px;
}

.edit-header p:not(.eyebrow) {
  margin: 0;
  color: #777;
  line-height: 1.6;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #111;
  background: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.back-btn:hover {
  border-color: #6355e7;
  background: #fafafa;
}

/* CARDS */

.settings-card {
  margin-bottom: 25px;
  padding: 32px;
  border: 1px solid #ddd;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.card-heading {
  margin-bottom: 28px;
}

.card-heading h2 {
  margin: 0 0 8px;
  color: #111;
  font-size: 22px;
}

.card-heading p {
  margin: 0;
  color: #777;
  font-size: 15px;
}

/* FORM */

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 9px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d7d7d7;
  border-radius: 9px;
  outline: none;
  background: #ffffff;
  color: #111;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #6355e7;
  box-shadow: 0 0 0 3px rgba(99, 85, 231, 0.08);
}

.primary-btn,
.secondary-btn {
  border: none;
  border-radius: 9px;
  padding: 14px 22px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #6956e8, #5744d3);
}

.primary-btn:hover,
.secondary-btn:hover {
  filter: brightness(1.06);
}

.primary-btn:disabled,
.secondary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.secondary-btn {
  background: #f0f0f0;
  color: #111;
  border: 1px solid #ddd;
}

.secondary-btn:hover {
  background: #e7e7e7;
}

.password-help {
  margin: -5px 0 22px;
  color: #777;
  font-size: 13px;
  line-height: 1.6;
}

.form-message {
  min-height: 20px;
  margin: 15px 0 0;
  font-size: 14px;
}

.hidden {
  display: none !important;
}

.otp-section {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #eee;
}

.resend-otp-container {
  margin-top: 12px;
}

/* DARK MODE */

html[data-theme="dark"] .edit-profile-body {
  background: #0b1120;
  color: #e5e7eb;
}

html[data-theme="dark"] .edit-header h1 {
  color: #f3f4f6;
}

html[data-theme="dark"] .edit-header p:not(.eyebrow) {
  color: #9ca3af;
}

html[data-theme="dark"] .settings-card {
  background: #111827;
  border-color: #263247;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .card-heading h2 {
  color: #f3f4f6;
}

html[data-theme="dark"] .card-heading p,
html[data-theme="dark"] .password-help {
  color: #9ca3af;
}

html[data-theme="dark"] .form-group label {
  color: #d1d5db;
}

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select {
  background: #0b1120;
  border-color: #334155;
  color: #f3f4f6;
}

html[data-theme="dark"] .form-group input::placeholder {
  color: #6b7280;
}

html[data-theme="dark"] .secondary-btn {
  background: #263247;
  border-color: #334155;
  color: #f3f4f6;
}

html[data-theme="dark"] .secondary-btn:hover {
  background: #334155;
}

html[data-theme="dark"] .back-btn {
  background: #1e293b;
  border-color: #334155;
  color: #f3f4f6;
}

html[data-theme="dark"] .back-btn:hover {
  background: #263247;
}

html[data-theme="dark"] .otp-section {
  border-color: #263247;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .edit-profile-page,
  body.host-layout .edit-profile-page {
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 80px;
  }
}

@media (max-width: 600px) {
  .edit-profile-page,
  body.host-layout .edit-profile-page {
    width: calc(100% - 32px);
    padding: 30px 0 60px;
  }

  .edit-header {
    flex-direction: column;
    gap: 22px;
    margin-bottom: 35px;
  }

  .edit-header h1 {
    font-size: 34px;
  }

  .back-btn {
    width: 100%;
  }

  .settings-card {
    padding: 24px;
  }

  .card-heading h2 {
    font-size: 20px;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }
}
/* SweetAlert2 - Always appear above navbar and sidebar */

.swal2-container {
  z-index: 20000 !important;
}

.swal2-backdrop-show {
  z-index: 19999 !important;
}

.swal2-popup {
  position: relative;
  z-index: 20001 !important;
}

/* Keep the alert properly positioned on smaller screens */

@media (max-width: 600px) {
  .swal2-container {
    padding: 16px !important;
  }

  .swal2-popup {
    width: 100% !important;
    max-width: 420px;
  }
}