/* ── PROFILE VIEW STYLES ── */
.user-profile-card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  border-radius: 24px;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.profile-avatar-wrap {
  width: 70px;
  height: 70px;
  border-radius: 24px;
  background: var(--accent-teal-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(13, 148, 136, 0.2);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1);
}

body.dark .profile-avatar-wrap {
  background-color: rgba(13, 148, 136, 0.15);
}

.avatar-icon {
  font-size: 2.25rem;
}

.profile-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.profile-details h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.profile-details p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.expired-badge {
  background-color: var(--danger-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  width: max-content;
  margin-top: 0.25rem;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

.badge.success-badge {
  background-color: var(--success-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  width: max-content;
  margin-top: 0.25rem;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.metrics-form-card {
  padding: 1.5rem;
  border-radius: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.field-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background-color: var(--bg-color);
  border: 1.5px solid var(--border-color);
  padding: 0.85rem 1rem;
  border-radius: 16px;
  transition: all 0.25s ease;
}

.field-col:focus-within:not(.highlight-teal) {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

body.dark .field-col {
  background-color: rgba(255, 255, 255, 0.015);
}

.field-col .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.profile-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  width: 100%;
  padding: 0.2rem 0;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.profile-input:not(:disabled) {
  border-bottom-color: var(--accent-teal);
  background-color: rgba(13, 148, 136, 0.04);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
}

select.profile-input {
  cursor: pointer;
}

select.profile-input:disabled {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* ── BMI GAUGE VISUALIZATION ── */
.field-col.highlight-teal {
  grid-column: span 2;
  border: 1.5px solid var(--accent-teal);
  background: rgba(13, 148, 136, 0.03);
}

body.dark .field-col.highlight-teal {
  background-color: rgba(13, 148, 136, 0.08);
}

.profile-value-display {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-teal);
  padding: 0.15rem 0;
  display: block;
}

.bmi-gauge-container {
  margin-top: 0.75rem;
  width: 100%;
}

.bmi-gauge-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, 
    #3b82f6 0%, #3b82f6 20%,      /* Underweight: <18.5 */
    #10b981 20%, #10b981 60%,     /* Normal: 18.5 - 25 */
    #f59e0b 60%, #f59e0b 80%,     /* Overweight: 25 - 30 */
    #ef4444 80%, #ef4444 100%     /* Obese: >30 */
  );
  position: relative;
  margin-bottom: 1.25rem;
}

.bmi-gauge-marker {
  position: absolute;
  top: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #fff;
  border: 3px solid var(--accent-teal);
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transform: translateX(-50%);
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bmi-gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.bmi-label-item {
  position: relative;
}

/* ── BUTTONS ── */
.btn-save-profile {
  width: 100%;
  background-color: var(--accent-teal);
  color: #fff;
  border: none;
  padding: 0.85rem;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  transition: all 0.2s ease;
}

.btn-save-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.btn-logout {
  background-color: transparent;
  border: 1.5px solid var(--danger-color);
  color: var(--danger-color);
  padding: 0.7rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-logout:hover {
  background-color: var(--danger-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
