:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --accent-color: #4cc9f0;
  --light-bg: #f8f9fa;
  --dark-bg: #212529;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body {
  background-color: #f5f7fb;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.profile-container {
  margin-top: 30px;
  margin-bottom: 50px;
}

.profile-card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  margin-bottom: 24px;
}

.profile-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.profile-card .card-header {
  background-color: var(--primary-color);
  color: white;
  border-radius: 12px 12px 0 0 !important;
  padding: 15px 20px;
  font-weight: 600;
}

.profile-image-container {
  position: relative;
  width: 150px;
  height: 150px;
  margin: -75px auto 20px;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.edit-image-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--accent-color);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.user-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-align: center;
}

.user-username {
  color: #6c757d;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 20px;
}

.nav-pills .nav-link {
  color: #495057;
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 10px 15px;

}

.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
  background-color: var(--primary-color);
  color: white;
}

.nav-pills .nav-link i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

.info-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 5px;
}

.info-value {
  background-color: var(--light-bg);
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  min-height: 44px;
}

.btn-edit {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-edit:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.action-btn {
  border-radius: 8px;
  padding: 8px 20px;
  font-weight: 500;
  transition: var(--transition);
}

.additional-info-table th {
  background-color: var(--light-bg);
  font-weight: 600;
}

.danger-zone {
  border-left: 4px solid #dc3545;
}

.form-control,
.form-select {
  border-radius: 8px;
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.tab-content {
  padding: 20px 0;
}

/* Edit mode styles */
#profile-form.edit-mode input:not([type="submit"]),
#profile-form.edit-mode textarea,
#profile-form.edit-mode select {
  background-color: white !important;
  border: 1px solid #ced4da !important;
}

.edit-submit {
  display: none;
}

#profile-form.edit-mode .edit-submit {
  display: flex !important;
}

.btn-edit-toggle {
  transition: var(--transition);
}

#profile-form input[readonly],
#profile-form textarea[readonly],
#profile-form select[readonly] {
  background-color: var(--light-bg);
  border: none;
  cursor: default;
}

#profile-form input[disabled],
#profile-form textarea[disabled],
#profile-form select[disabled] {
  background-color: var(--light-bg);
  border: none;
  cursor: not-allowed;
}
#profile-form.edit-mode input:not([type="submit"]),
#profile-form.edit-mode textarea,
#profile-form.edit-mode select {
  background-color: white !important;
  border: 1px solid #ced4da !important;
}

.edit-submit-btns {
  display: none;
}

#profile-form.edit-mode .edit-submit-btns {
  display: flex !important;
}
.edit-submit-btns {
  display: none !important;
}

.edit-mode .edit-submit-btns {
  display: flex !important;
}

@media (max-width: 768px) {
  .profile-image-container {
    width: 120px;
    height: 120px;
    margin: -60px auto 15px;
  }

  .user-name {
    font-size: 1.3rem;
  }
}
