/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&display=swap');

body {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  background: url('Star map.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
.profile-header {
  text-align: center;
  padding: 20px;
}

.profile-header h1 {
  font-size: 2rem;
  margin: 0;
}

/* Profile container */
.profile-container {
  background: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  max-width: 400px;
  width: 90%;
  text-align: center;
  margin-top: 20px;
}

/* Profile pic */
.profile-pic-wrapper {
  position: relative;
  margin-bottom: 20px;
}

#profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
}

.upload-btn {
  display: inline-block;
  margin-top: 10px;
  background: #ff9800;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.upload-btn:hover {
  background: #e68900;
}

/* Profile details */
.profile-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profile-details input {
  padding: 10px;
  border-radius: 6px;
  border: none;
  outline: none;
  font-size: 1rem;
}

#save-profile {
  background: #2196f3;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
}

#save-profile:hover {
  background: #1976d2;
}
/* === Toast Alerts === */
.toast-alert {
  position: fixed;
  top: 30px;
  right: -400px;
  background: rgba(0, 123, 255, 0.95);
  color: #fff;
  padding: 16px 28px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
  opacity: 0;
  transition: all 0.6s ease;
}

.toast-alert.show {
  right: 30px;
  opacity: 1;
}

.toast-alert.error {
  background: rgba(220, 53, 69, 0.95);
  box-shadow: 0 0 15px rgba(220, 53, 69, 0.4);
}
