/* --- GLOBAL STYLES --- */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(150deg, #d2e8ff, #888787,#444040, #323131);
  color: white;
  height: 100vh;
}

/* --- HEADER --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(10, 10, 10, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
}

header nav {
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px 00px;
  width: 100%;
}

header nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 99px;
  color: white;
  background: rgba(18, 7, 7, 0.15);
  border: 1px solid rgba(1, 0, 0, 0.25);
  backdrop-filter: blur(6px) saturate(150%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}

header nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* --- DROPDOWN MENU --- */
.dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(18, 7, 7, 0.15);
  border: 1px solid rgba(1, 0, 0, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: rgba(30, 30, 30, 0.95);
  min-width: 160px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 1;
  overflow: hidden;
}

.dropdown-content button {
  width: 100%;
  background: transparent;
  color: white;
  border: none;
  text-align: left;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.dropdown-content button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* --- PROFILE SECTION --- */
.profile-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 120px;
  padding: 40px 20px;
}

.profile-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 550px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.profile-name {
  margin: 15px 0 5px;
  font-size: 26px;
}

.profile-email {
  color: #ccc;
  font-size: 16px;
  margin-bottom: 25px;
}

.profile-details {
  text-align: left;
}

.profile-details h2 {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 5px;
}

.profile-details p {
  margin: 8px 0;
  font-size: 16px;
}

.edit-btn {
  display: block;
  margin: 25px auto 0;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 10px 25px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.edit-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* --- SCROLL TO TOP --- */
.scroll-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
  .profile-card {
    padding: 25px;
  }

  header nav {
    flex-wrap: wrap;
    gap: 15px;
  }
}
/* Editable form styling */
#editForm label {
  display: block;
  margin-top: 10px;
  font-weight: 500;
}

#editForm input {
  width: 100%;
  padding: 8px 10px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
  outline: none;
}

#editForm input::placeholder {
  color: #ccc;
}

.edit-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.save-btn, .cancel-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  border-radius: 50px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.save-btn:hover, .cancel-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
