/*css of account.html code below */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fcdd89;
}

.account-page {
  max-width: 900px;
  margin: auto;
  padding: 1rem;
}

.profile-header {
  text-align: center;
  padding: 1rem;
}

.profile-header img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.account-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.account-card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.account-card.danger {
  border: 2px solid #d9534f;
}

button {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 4px;
  background: #007bff;
  color: #fff;
  cursor: pointer;
}

button.second {
  background: #6c757d;
}

button:hover {
  opacity: 0.9;
}

/* Modal backdrop */
.account-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.account-modal.hidden {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

/* Modal box */
.account-modal-box {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease-out;
}
.account-modal-box select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}

.account-modal-box select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
}
/* Title */
.account-modal-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #333;
  text-align: center;
}

/* Inputs */
.account-modal-box input,
.account-modal-box textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.account-modal-box input:focus,
.account-modal-box textarea:focus {
  border-color: #007bff;
  outline: none;
}

/* Password field */
.password-field {
  display: flex;
  align-items: center;
}

.password-field input {
  flex: 1;
}

.password-field button {
  margin-left: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Buttons */
.account-modal-box button {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.account-modal-box button:first-of-type {
  background: #007bff;
  color: #fff;
}

.account-modal-box button:first-of-type:hover {
  background: #0056b3;
}

.account-modal-box button.secondary {
  background: #f1f1f1;
  color: #333;
}

.account-modal-box button.secondary:hover {
  background: #ddd;
}
.profile-header {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #007bff, #00c6ff); /* gradient background */
  color: #fff;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.profile-photo-wrapper {
  position: relative;
  display: inline-block;
}

.profile-header img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.photo-actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.photo-btn {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.photo-btn:hover {
  background: rgba(255,255,255,0.4);
}

.edit-btn {
  margin-top: 1rem;
  background: #fff;
  color: #007bff;
  border-radius: 50%;
  padding: 0.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


