/* === Update Profile Section === */
.update-profile-section {
  padding: 3rem 1rem;
}

/* === Card Styling (applies to both cards) === */
.update-card,
.change-password-card {
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid #e3e6ea;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* === Unified Header Styling === */
.update-card h2,
.update-card h5,
.change-password-card h5 {
  font-weight: 600;
  color: #232f3e;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.update-card h5 i,
.change-password-card h5 i {
  font-size: 1.3rem;
  color: #1e3a8a;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* === Alerts === */
.alert {
  border-radius: 8px;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
}

.alert-success {
  background-color: #f0fdf4;
  border: 1px solid #a3e635;
  color: #166534;
}

.alert-danger {
  background-color: #fef2f2;
  border: 1px solid #f87171;
  color: #991b1b;
}

/* === Labels and Inputs === */
.form-label {
  font-weight: 500;
  color: #374151;
}

.form-control {
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  border-color: #ced4da;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: #4e9af1; /* gradient color accent */
  box-shadow: 0 0 0 0.15rem rgba(78, 154, 241, 0.25);
}

/* === Gradient Buttons (Matching .admin-orders .btn-primary) === */
.btn-update,
.btn-change-password {
  background: linear-gradient(90deg, #4e9af1, #6a67f2);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.6rem 1.5rem;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  min-width: 180px;
  box-shadow: 0 2px 4px rgba(78, 154, 241, 0.3);
}

.btn-update:hover,
.btn-change-password:hover {
  background: linear-gradient(90deg, #3c8de7, #5a56e6);
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 4px 10px rgba(78, 154, 241, 0.4);
}

/* === Password Visibility Icon === */
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: #4e9af1;
}

/* === Change Password Section === */
.change-password-section {
  margin-top: 2.5rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 2rem;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  .update-card,
  .change-password-card {
    padding: 2rem 1.75rem;
  }

  .update-card h2,
  .update-card h5,
  .change-password-card h5 {
    font-size: 1.5rem;
  }

  .btn-update,
  .btn-change-password {
    width: 100%;
    min-width: 100%;
    font-size: 1rem;
    white-space: nowrap;
    display: block;
  }
}

@media (max-width: 576px) {
  .update-profile-section {
    padding: 2rem 1rem;
  }

  .update-card,
  .change-password-card {
    padding: 1.5rem 1.25rem;
    box-shadow: none;
  }

  .update-card h2,
  .update-card h5,
  .change-password-card h5 {
    font-size: 1.3rem;
  }

  .btn-update,
  .btn-change-password {
    width: 100%;
    min-width: 100%;
    font-size: 0.95rem;
    padding: 0.6rem;
    white-space: nowrap;
    display: block;
  }
}
