@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Lora", serif;
}

.user-profile-wrapper {
  max-width: 600px;
  margin: 100px auto;
  padding: 30px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-in-out;
}

.profile-header {
  text-align: center;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.username {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.user-email {
  color: #666;
  margin-bottom: 15px;
}

.edit-btn {
  padding: 8px 18px;
  background-color: #0f9d58;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.edit-btn:hover {
  background-color: #0b7d45;
}

.edit-profile-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.edit-profile-form label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
}

.edit-profile-form input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 5px;
}

.form-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.save-btn,
.cancel-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.save-btn {
  background-color: #4285f4;
  color: white;
}

.cancel-btn {
  background-color: #e0e0e0;
}

.hidden {
  display: none;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
