/* =============================================
   Profile Update — Stylesheet
   Path: static/css/apps/account/profile_update.css
   ============================================= */

/* ---------- Layout & Page ---------- */
.profile-page-header {
  border-bottom: 2px solid #eef2f7;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.profile-page-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a3c5e;
  margin: 0;
}

.profile-page-subtitle {
  font-size: 0.8rem;
  color: #8a9ab0;
  margin: 0;
}

/* ---------- Cards ---------- */
.profile-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: #fff;
}

.profile-card-header {
  background: linear-gradient(135deg, #1a3c5e 0%, #2d6a9f 100%);
  color: #fff;
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.profile-card-header .header-icon {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.profile-card-header .header-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.profile-card-header .header-subtitle {
  font-size: 0.73rem;
  opacity: 0.72;
  margin: 0;
}

.profile-card-body {
  padding: 1.5rem;
}

/* ---------- Avatar Section ---------- */
.avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.avatar-wrapper img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #2c5282;
  box-shadow: 0 4px 16px rgba(44, 82, 130, 0.2);
  transition: box-shadow 0.3s;
}

.avatar-wrapper img:hover {
  box-shadow: 0 6px 22px rgba(44, 82, 130, 0.35);
}

.avatar-status-dot {
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: 14px;
  height: 14px;
  background: #28a745;
  border-radius: 50%;
  border: 2px solid #fff;
}

.avatar-upload-label {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: #2c5282;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.avatar-upload-label:hover {
  background: #1a3c5e;
  transform: scale(1.1);
}

.avatar-upload-label i {
  color: #fff;
  font-size: 0.7rem;
}

.avatar-upload-input {
  display: none;
}

.profile-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a3c5e;
  margin-bottom: 0.2rem;
}

.profile-phone {
  font-size: 0.8rem;
  color: #8a9ab0;
}

/* ---------- Quick Info Badges ---------- */
.quick-info-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f0f4f8;
}

.quick-info-item:last-child {
  border-bottom: none;
}

.quick-info-icon {
  width: 30px;
  height: 30px;
  background: #eef2f7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #2c5282;
}

.quick-info-label {
  font-size: 0.7rem;
  color: #a0aab4;
  display: block;
  line-height: 1.2;
}

.quick-info-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2d3748;
  display: block;
}

/* ---------- Section Divider ---------- */
.section-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1.2rem;
}

.section-divider-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #1a3c5e, #2d6a9f);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.section-divider-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a3c5e;
  margin: 0;
}

.section-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, transparent, #dde4ed);
}

/* ---------- Form Fields ---------- */
.profile-form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.profile-form-label i {
  color: #2c5282;
  font-size: 0.82rem;
}

.profile-form-control {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #2d3748;
  padding: 0.5rem 0.85rem;
  background: #fafbfd;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.profile-form-control:focus {
  border-color: #2c5282;
  box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
  background: #fff;
  outline: none;
}

.profile-form-control.is-invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 0.08);
}

.profile-form-select {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #2d3748;
  padding: 0.5rem 0.85rem;
  background: #fafbfd;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-form-select:focus {
  border-color: #2c5282;
  box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
  outline: none;
}

.field-error {
  font-size: 0.73rem;
  color: #e53e3e;
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---------- Save Button ---------- */
.btn-profile-save {
  background: linear-gradient(135deg, #1a3c5e 0%, #2d6a9f 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.55rem 1.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(44, 82, 130, 0.3);
}

.btn-profile-save:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(44, 82, 130, 0.38);
  color: #fff;
}

.btn-profile-save:active {
  transform: translateY(0);
}

/* ---------- Settings Link ---------- */
.btn-settings-link {
  border: 1.5px solid #cbd5e0;
  border-radius: 50px;
  font-size: 0.8rem;
  color: #4a5568;
  padding: 0.45rem 1rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  background: transparent;
}

.btn-settings-link:hover {
  border-color: #2c5282;
  color: #2c5282;
  background: #eef2f7;
}

/* ---------- Completion Bar ---------- */
.completion-bar-wrap {
  background: #eef2f7;
  border-radius: 50px;
  height: 6px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.completion-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, #2d6a9f, #28a745);
  transition: width 0.6s ease;
}

.completion-label {
  font-size: 0.72rem;
  color: #8a9ab0;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .profile-card-body {
    padding: 1.1rem;
  }
}

@media (max-width: 575px) {
  .profile-page-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }
}
