/* =========================================
   JIPENDE PROFILE STYLES
   ========================================= */

.profile-header-full {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
  border-radius: 35px;
}

.avatar-container-full {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  margin: -80px auto 10px;
  overflow: hidden;
  background: #e0f2f1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-avatar-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-header-full h2 {
  margin: 5px 0;
  font-size: 22px;
  font-weight: 700;
}

.profile-header-full .email {
  font-size: 14px;
  opacity: 0.8;
}

.profile-details-full {
  background: #f7f9fa;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-radius: 30px;
}

/* --- Detail Row & Value Layout --- */
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Better for multi-badge wrapping */
  font-size: 16px;
  color: #333;
  padding: 12px 15px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.15s;
  gap: 15px;
}

.detail-row:hover {
  transform: translateY(-2px);
}

.label {
  font-weight: 600;
  color: #555;
  flex-shrink: 0;
}

/* This targets BOTH value-checkin and value-health containers */
.value {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: right;
  max-width: 65%;
  line-height: 1.4;
}

/* --- Shared Badge Design --- */
.badge {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Check-in Badge Colors */
.badge-sms {
  background-color: #e0f2f1;
  color: #00796b;
  border-color: #b2dfdb;
}

.badge-app {
  background-color: #f3e5f5;
  color: #7b1fa2;
  border-color: #e1bee7;
}

/* Health Focus Badge Colors */
.badge-wellness {
  background-color: #f1f8e9;
  color: #33691e;
  border-color: #dcedc8;
}

.badge-reminders {
  background-color: #e3f2fd;
  color: #0d47a1;
  border-color: #bbdefb;
}

/* --- Forms & Buttons --- */
.edit-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.hidden { display: none; }

.edit-btn-full {
  margin-top: 20px;
  width: 100%;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}


/* --- Mobile Fixes --- */
@media(max-width:480px){
  .profile-header-full { padding: 50px 15px 30px; }
  .avatar-container-full { width: 100px; height: 100px; margin: -60px auto 10px; }
  .detail-row { font-size: 14px; padding: 10px 12px; }
  .value { max-width: 60%; }
  .badge { font-size: 10px; padding: 3px 8px; }
}
#value-health {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
}
/* --- Keep your existing .logout-btn-full, but add/update these properties --- */
.logout-btn-full {
  margin-top: 10px;
  width: 100%;
  background: #fee2e2;
  color: #ef4444;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center; /* Centers the spinner when text is gone */
  align-items: center;
  gap: 8px;
  transition: 0.2s;
  min-height: 52px; /* CRITICAL: Keeps button height the same when text vanishes */
}

.logout-btn-full:hover { background: #fecaca; }




/* --- ADD THIS: Disabled State --- */
.logout-btn-full:disabled {
  background: #fca5a5;
  cursor: not-allowed;
  opacity: 0.8;
}


/* --- ADD THIS: The Spinner Animation --- */
.spinner-border-sm {
  width: 1.2rem;
  height: 1.2rem;
  border: 0.15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: logout-spin .75s linear infinite;
}

@keyframes logout-spin {
  to { transform: rotate(360deg); }
}

/* --- ADD THIS: Disabled State --- */
.logout-btn-full:disabled {
  background: #fca5a5;
  cursor: not-allowed;
  opacity: 0.8;
}
.help-container {
  display: flex;
  justify-content: center; /* Horizontal center */
  align-items: center;     /* Vertical center */
  padding: 20px 0;
}