/* =============================================================
   profile.css — ESTILOS DO MODAL MEU PERFIL
   ============================================================= */

.profile-modal-card .profile-modal-item,
.profile-modal-item,
.profile-row-inline-layout {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid var(--line) !important;
  grid-template-columns: none !important;
}

.profile-modal-card .profile-modal-label,
.profile-modal-label {
  width: 100px !important;
  min-width: 100px !important;
  flex-shrink: 0 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: var(--muted) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
}

.profile-modal-card .profile-modal-value.profile-read-field,
.profile-modal-value.profile-read-field {
  flex: 1 !important;
  text-align: left !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  line-height: 1.28 !important;
  margin-left: 12px !important;
}

.profile-read-field.hidden {
  display: none !important;
}

.profile-inline-edit-row.hidden {
  display: none !important;
}

.profile-inline-edit-row:not(.hidden) {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex: 1 !important;
  width: 100% !important;
}

.profile-editing-red {
  background-color: var(--card-soft) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  flex: 1 !important;
  width: auto !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.profile-row-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.btn-save-row-green {
  background-color: #059669 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3) !important;
}

.btn-cancel-row {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3) !important;
}

/* Avatar Nitido de Alto Contraste */
#profileHeroAvatar,
.profile-hero-avatar {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.45rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35) !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

/* Botao Alterar Senha Limpo e Elegante */
.btn-change-password-clean {
  background: var(--card-soft) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: var(--card-shadow) !important;
}

.btn-change-password-clean:hover {
  background: var(--hover-soft) !important;
  border-color: var(--line-strong) !important;
  color: var(--text) !important;
  transform: translateY(-1px) !important;
}

:root[data-theme="dark"] .profile-modal-card .profile-modal-value.profile-read-field,
:root[data-theme="dark"] .profile-modal-value.profile-read-field,
:root[data-theme="dark"] .profile-modal-value {
  color: #f1f5f9 !important;
}

:root[data-theme="dark"] .profile-modal-card .profile-modal-label,
:root[data-theme="dark"] .profile-modal-label {
  color: #94a3b8 !important;
}


/* Modal de Avatar & Galeria de Presets */
.avatar-modal-card {
  width: min(580px, calc(100vw - 32px)) !important;
  max-width: 580px !important;
  border-radius: 20px !important;
}

.avatar-preview-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 0 14px;
}

.avatar-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-preview-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--blue, #0e9d5d);
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.avatar-preview-hint {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}

.avatar-presets-section {
  margin: 10px 0;
}

.avatar-presets-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.avatar-presets-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 520px) {
  .avatar-presets-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.avatar-preset-btn {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 2px;
  background: transparent;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-preset-btn img,
.avatar-preset-btn svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.avatar-preset-btn:hover {
  transform: scale(1.12);
  border-color: var(--blue, #0e9d5d);
}

.avatar-preset-btn.is-selected {
  transform: scale(1.15);
  border-color: var(--blue, #0e9d5d);
  box-shadow: 0 0 0 3px rgba(14, 157, 93, 0.35), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.avatar-upload-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0 10px;
  color: var(--muted);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.avatar-upload-divider::before,
.avatar-upload-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--line);
}

.avatar-upload-divider span {
  padding: 0 10px;
}

.avatar-upload-action {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

.avatar-btn-upload {
  width: 100%;
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  background: var(--card-soft);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-btn-upload:hover {
  border-color: var(--blue, #0e9d5d);
  background: var(--hover-soft);
  color: var(--blue, #0e9d5d);
}


