/* ============================================================
   Nu Babysitter — Edit Babysitter Profile Styles
   File: assets/nu-babysitter-edit-profile.css
   ============================================================ */

:root {
  --ep-coral:        #F07272;
  --ep-coral-dark:   #D85A30;
  --ep-coral-light:  #FDE8E0;
  --ep-teal:         #4DBFB5;
  --ep-teal-dark:    #2EA89E;
  --ep-teal-light:   #D8F5F2;
  --ep-yellow:       #F9C832;
  --ep-yellow-light: #FEF5D5;
  --ep-cream:        #FFFAF6;
  --ep-white:        #FFFFFF;
  --ep-text:         #2C2018;
  --ep-text-mid:     #6B5B4E;
  --ep-text-light:   #A8998C;
  --ep-border:       #F0E4DC;
  --ep-radius:       16px;
  --ep-radius-sm:    10px;
  --ep-radius-pill:  999px;
  --ep-shadow:       0 4px 20px rgba(240,114,114,0.08);
  --ep-shadow-focus: 0 0 0 3px rgba(240,114,114,0.18);
  --ep-font:         'Nunito', sans-serif;
}

/* ── WRAPPER ── */
.nubs-ep-wrap {
  font-family: var(--ep-font);
  color: var(--ep-text);
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 60px;
}

/* ── NOTICE ── */
.nubs-ep-notice {
  padding: 14px 20px;
  border-radius: var(--ep-radius-sm);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
}
.nubs-notice-warn {
  background: var(--ep-yellow-light);
  color: #8B6914;
  border: 1.5px solid var(--ep-yellow);
}
.nubs-notice-success {
  background: #E8F5E0;
  color: #2A6F10;
  border: 1.5px solid #8ACF6A;
}
.nubs-notice-error {
  background: var(--ep-coral-light);
  color: var(--ep-coral-dark);
  border: 1.5px solid var(--ep-coral);
}

/* ── HEADER ── */
.nubs-ep-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  background: var(--ep-white);
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--ep-shadow);
}
.nubs-ep-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nubs-ep-avatar-wrap {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.nubs-ep-avatar-img,
.nubs-ep-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  background: var(--ep-coral-light);
  color: var(--ep-coral-dark);
  border: 3px solid var(--ep-coral-light);
}
.nubs-ep-avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(240,114,114,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  color: white;
}
.nubs-ep-avatar-wrap:hover .nubs-ep-avatar-overlay { opacity: 1; }

.nubs-ep-name {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 6px;
  color: var(--ep-text);
}
.nubs-ep-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nubs-ep-status {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--ep-radius-pill);
}
.status-active  { background: #E8F5E0; color: #2A6F10; }
.status-disabled{ background: var(--ep-yellow-light); color: #8B6914; }
.nubs-ep-divider { color: var(--ep-text-light); }
.nubs-ep-location-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ep-text-mid);
}
.nubs-ep-location-badge svg { color: var(--ep-teal); }

/* Completeness bar */
.nubs-ep-completeness {
  min-width: 220px;
  flex: 0 0 220px;
}
.nubs-ep-comp-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--ep-text-mid);
  margin-bottom: 7px;
}
.nubs-ep-comp-label strong {
  color: var(--ep-coral-dark);
  font-weight: 900;
}
.nubs-ep-comp-bar {
  height: 8px;
  background: var(--ep-coral-light);
  border-radius: var(--ep-radius-pill);
  overflow: hidden;
}
.nubs-ep-comp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ep-coral), var(--ep-teal));
  border-radius: var(--ep-radius-pill);
  transition: width 0.6s ease;
}
.nubs-ep-comp-hint {
  font-size: 11px;
  color: var(--ep-text-light);
  margin-top: 6px;
  font-weight: 600;
}

/* ── FLASH NOTICES AREA ── */
#nubs-ep-notices { margin-bottom: 8px; }
#nubs-ep-notices .nubs-ep-notice { animation: fadeDown 0.35s ease; }
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SECTIONS ── */
.nubs-ep-section {
  background: var(--ep-white);
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--ep-shadow);
  transition: box-shadow 0.2s;
}
.nubs-ep-section:focus-within {
  box-shadow: 0 6px 28px rgba(240,114,114,0.12);
  border-color: rgba(240,114,114,0.3);
}
.nubs-ep-section-admin {
  background: #FAFAF8;
  border-style: dashed;
}

.nubs-ep-section-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--ep-border);
}
.nubs-ep-section-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}
.nubs-ep-section-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--ep-text);
  margin: 0 0 3px;
}
.nubs-ep-section-sub {
  font-size: 13px;
  color: var(--ep-text-light);
  font-weight: 600;
  margin: 0;
}

/* ── GRIDS ── */
.nubs-ep-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .nubs-ep-grid-2 { grid-template-columns: 1fr; }
}

/* ── FIELDS ── */
.nubs-ep-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nubs-ep-field-full {
  grid-column: 1 / -1;
}

.nubs-ep-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ep-text-mid);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.nubs-ep-field-note {
  font-size: 11px;
  font-weight: 600;
  color: var(--ep-text-light);
  font-style: italic;
}
.nubs-ep-field-hint {
  font-size: 11px;
  color: var(--ep-text-light);
  font-weight: 600;
  margin: 0;
}

/* Inputs */
.nubs-ep-input,
.nubs-ep-select,
.nubs-ep-textarea {
  width: 100%;
  padding: 11px 15px;
  border: 2px solid var(--ep-border);
  border-radius: var(--ep-radius-sm);
  font-family: var(--ep-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--ep-text);
  background: var(--ep-cream);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.nubs-ep-input:focus,
.nubs-ep-select:focus,
.nubs-ep-textarea:focus {
  border-color: var(--ep-coral);
  background: var(--ep-white);
  box-shadow: var(--ep-shadow-focus);
}
.nubs-ep-input::placeholder,
.nubs-ep-textarea::placeholder { color: var(--ep-text-light); }

.nubs-input-readonly {
  background: #F5F0EC;
  color: var(--ep-text-light);
  cursor: not-allowed;
}

.nubs-ep-select {
  -webkit-appearance: none;
  background: var(--ep-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A8998C' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 13px center;
  cursor: pointer;
  padding-right: 40px;
}

.nubs-ep-textarea { resize: vertical; line-height: 1.65; }

/* Phone prefix */
.nubs-ep-input-prefix-wrap {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--ep-border);
  border-radius: var(--ep-radius-sm);
  overflow: hidden;
  background: var(--ep-cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nubs-ep-input-prefix-wrap:focus-within {
  border-color: var(--ep-coral);
  box-shadow: var(--ep-shadow-focus);
}
.nubs-ep-input-prefix {
  padding: 11px 13px;
  background: var(--ep-coral-light);
  color: var(--ep-coral-dark);
  font-size: 13px;
  font-weight: 800;
  border-right: 1.5px solid var(--ep-border);
  flex-shrink: 0;
}
.nubs-input-prefixed {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  flex: 1;
}
.nubs-input-prefixed:focus { box-shadow: none; }

/* Char counter */
.nubs-ep-char-count {
  font-size: 11px;
  color: var(--ep-text-light);
  font-weight: 700;
  text-align: right;
  align-self: flex-end;
}
.nubs-ep-char-count.near-limit { color: var(--ep-yellow); }
.nubs-ep-char-count.at-limit   { color: var(--ep-coral); }

/* ── RANGE SLIDER ── */
.nubs-rate-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nubs-rate-min, .nubs-rate-max {
  font-size: 12px;
  font-weight: 700;
  color: var(--ep-text-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.nubs-ep-range {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: var(--ep-radius-pill);
  background: linear-gradient(to right, var(--ep-coral) 0%, var(--ep-coral) 15%, #F0E4DC 15%);
  outline: none;
  cursor: pointer;
}
.nubs-ep-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ep-coral);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(240,114,114,0.4);
  cursor: pointer;
  transition: transform 0.15s;
}
.nubs-ep-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.nubs-rate-display {
  margin-left: 10px;
  font-size: 20px;
  font-weight: 900;
  color: var(--ep-coral);
}

/* ── CHIPS (multi-select) ── */
.nubs-ep-multi-select-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nubs-ep-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 8px 16px;
  border-radius: var(--ep-radius-pill);
  border: 2px solid var(--ep-border);
  background: var(--ep-cream);
  font-size: 13px;
  font-weight: 700;
  color: var(--ep-text-mid);
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
}
.nubs-ep-chip input[type="checkbox"] { display: none; }
.nubs-ep-chip:hover {
  border-color: var(--ep-coral);
  color: var(--ep-coral-dark);
  background: var(--ep-coral-light);
}
.nubs-ep-chip.chip-active,
.nubs-ep-chip:has(input:checked) {
  background: var(--ep-teal);
  border-color: var(--ep-teal);
  color: white;
}

/* ── CHECKBOX GROUP ── */
.nubs-ep-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nubs-ep-checkbox-label {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ep-text-mid);
  cursor: pointer;
}
.nubs-ep-checkbox-label input[type="checkbox"] { display: none; }
.nubs-ep-checkbox-custom {
  width: 20px; height: 20px;
  border: 2px solid var(--ep-border);
  border-radius: 6px;
  background: var(--ep-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 900;
  color: white;
  transition: all 0.18s;
}
.nubs-ep-checkbox-label:has(input:checked) .nubs-ep-checkbox-custom {
  background: var(--ep-teal);
  border-color: var(--ep-teal);
}
.nubs-ep-checkbox-label:has(input:checked) .nubs-ep-checkbox-custom::after {
  content: '✓';
}

/* ── PHOTO UPLOAD AREA ── */
.nubs-ep-photo-upload-area {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--ep-cream);
  border: 2px dashed var(--ep-border);
  border-radius: var(--ep-radius);
  padding: 20px;
  transition: border-color 0.2s;
}
.nubs-ep-photo-upload-area:hover { border-color: var(--ep-coral); }
.nubs-ep-photo-thumb {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ep-coral-light);
  flex-shrink: 0;
}
.nubs-ep-photo-placeholder {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--ep-coral-light);
  color: var(--ep-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nubs-ep-photo-label {
  font-size: 14px; font-weight: 800;
  color: var(--ep-text);
  margin-bottom: 4px;
}
.nubs-ep-photo-hint {
  font-size: 12px;
  color: var(--ep-text-light);
  font-weight: 600;
  margin-bottom: 12px;
}

/* File button */
.nubs-ep-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ep-coral);
  color: white;
  font-family: var(--ep-font);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--ep-radius-pill);
  cursor: pointer;
  transition: background 0.2s;
}
.nubs-ep-file-btn:hover { background: var(--ep-coral-dark); }
.nubs-file-btn-sm { padding: 8px 16px; font-size: 12px; }
.nubs-ep-file-hidden { display: none; }

/* ── DOCUMENT PREVIEW ── */
.nubs-ep-doc-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ep-teal-light);
  border: 1.5px solid rgba(77,191,181,0.25);
  border-radius: var(--ep-radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ep-teal-dark);
  margin-bottom: 10px;
}
.nubs-ep-doc-preview svg { color: var(--ep-teal); flex-shrink: 0; }
.nubs-ep-doc-preview span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nubs-ep-doc-view {
  font-size: 12px;
  font-weight: 800;
  color: var(--ep-teal-dark);
  text-decoration: underline;
  flex-shrink: 0;
}
.nubs-ep-doc-status {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--ep-radius-pill);
}
.doc-uploaded { background: #E8F5E0; color: #2A6F10; }
.doc-missing  { background: var(--ep-yellow-light); color: #8B6914; }

/* ── READ-ONLY VALUES ── */
.nubs-ep-readonly-value {
  padding: 12px 16px;
  border-radius: var(--ep-radius-sm);
  font-size: 14px;
  font-weight: 700;
}
.rv-active   { background: #E8F5E0; color: #2A6F10; border: 1.5px solid #8ACF6A; }
.rv-disabled { background: var(--ep-yellow-light); color: #8B6914; border: 1.5px solid var(--ep-yellow); }

/* ── SAVE ROW ── */
.nubs-ep-save-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 0 0;
}
.nubs-ep-save-btn {
  background: var(--ep-coral);
  color: white;
  font-family: var(--ep-font);
  font-size: 16px;
  font-weight: 900;
  padding: 15px 40px;
  border-radius: var(--ep-radius-pill);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(240,114,114,0.3);
}
.nubs-ep-save-btn:hover {
  background: var(--ep-coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(240,114,114,0.38);
}
.nubs-ep-save-btn:disabled {
  background: var(--ep-text-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.nubs-ep-btn-text,
.nubs-ep-btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nubs-ep-save-hint {
  font-size: 12px;
  color: var(--ep-text-light);
  font-weight: 600;
  max-width: 280px;
}

/* Spinner */
.nubs-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nubs-ep-header       { flex-direction: column; }
  .nubs-ep-completeness { min-width: 0; width: 100%; }
  .nubs-ep-section      { padding: 20px; }
  .nubs-ep-save-row     { flex-direction: column; align-items: flex-start; }
  .nubs-ep-save-btn     { width: 100%; justify-content: center; }
  .nubs-ep-photo-upload-area { flex-direction: column; text-align: center; }
}
