/* ═══════════════════════════════════════════════════
   edit_profile_modal.css — dark-first, CSS variables
   ═══════════════════════════════════════════════════ */

/* ── Modal overlay ───────────────────────────────── */
.modal-overlay,
.modal-overlay-1 {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(4,12,24,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-overlay .modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: translateY(-20px);
  transition: transform 0.3s;
  overflow: hidden;
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-overlay .modal-close {
  position: absolute;
  top: 15px; right: 15px;
  background: rgba(255,255,255,0.1);
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  border-radius: 6px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.modal-overlay .modal-close:hover { color: #fff; background: rgba(255,255,255,0.2); }

/* ── Modal headers ───────────────────────────────── */
.modal-header-user-bell,
.modal-overlay .modal-header-user-profile {
  background: linear-gradient(135deg, #040c18 0%, #0d2044 50%, #1e40af 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.modal-overlay .modal-header-user-profile {
  color: #fff;
  padding: 30px;
  text-align: center;
  flex-direction: column;
  position: relative;
}

/* ── User avatar ─────────────────────────────────── */
.user-avatar {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 15px;
  border: 4px solid rgba(255,255,255,0.2);
}
.user-name { font-size: 20px; font-weight: bold; color: #fff; margin-bottom: 5px; }
.user-role { font-size: 13px; opacity: 0.8; color: rgba(255,255,255,0.8); }

.modal-overlay .modal-body { padding: 25px; }

/* ── User info items ─────────────────────────────── */
.user-info-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.user-info-item:last-child { border-bottom: none; }
.info-label { font-size: 13px; color: var(--text-muted);    font-weight: 500; }
.info-value { font-size: 13px; color: var(--text-primary); }

/* ── Modal footer ────────────────────────────────── */
.modal-overlay .modal-footer {
  display: flex;
  gap: 10px;
  padding: 20px 25px;
  background: var(--bg-surface-2);
  border-top: 1px solid var(--border);
}

.form-actions .btn-secondary,
.modal-footer .btn-secondary {
  flex: 1;
  padding: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
  font-family: inherit;
}
.form-actions .btn-secondary:hover,
.modal-footer .btn-secondary:hover { background: rgba(59,130,246,0.08); }

.btn-danger {
  flex: 1;
  padding: 10px;
  background: var(--c-critical);
  border: none;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
  font-family: inherit;
}
.btn-danger:hover { background: #dc2626; }

/* ── Edit form ───────────────────────────────────── */
.hidden { display: none; }

.profile-edit-form { margin-top: 1rem; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.form-input {
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-surface-2);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form-actions .btn-primary {
  background-color: var(--accent);
  color: #fff;
  padding: 0.55rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}
.form-actions .btn-primary:hover { background-color: var(--accent-hover); }
