/* Background & Font */
body {
  margin: 0;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
background-attachment: fixed;
  color: #fff;
  /* min-height: 1000px;
  max-height: 1000px; */
  display: flex;
  flex-direction: column;
}

/* Navbar */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

nav h1 {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ff00de, #00eaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav a,
nav button {
  margin-left: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s ease;
}

nav a:hover,
nav button:hover {
  background: linear-gradient(90deg, #ff00de, #00eaff);
  box-shadow: 0 0 12px #ff00de, 0 0 22px #00eaff;
}

/* Main */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
}

/* Glass container */
.container {
  width: 90%;
  text-align: center;
  align-self: center;
  max-width: 600px;
  scale: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  /* margin-bottom: 0px; */
  margin-top: 50px;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.8s ease forwards;
}
.landingContainer {
  width: 90%;
  text-align: center;
  align-self: center;
  max-width: 600px;
  scale: 1.5;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  /* margin-bottom: 0px; */
  margin-top: 250px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.8s ease forwards;
}
header {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 0 0 10px #ff00de, 0 0 20px #00eaff;
  animation: glow 2s infinite alternate;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Headings */
h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  font-weight: 600;
  text-shadow: 0 0 15px #00eaff, 0 0 25px #ff00de;
}

/* Hero section (Landing page) */
.hero {
  text-align: center;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.hero h2 {
  margin-bottom: 1rem;
}

.hero .btn-cta {
  display: inline-block;
  margin-top: 2rem;
  background: linear-gradient(90deg, #ff00de, #00eaff);
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}

.hero .btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #00eaff, 0 0 45px #ff00de;
}

/* Form elements */
form label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

input,
textarea {
  width: 95%;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.3rem;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  transition: 0.3s ease;
}

textarea {
  border-radius: 16px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 12px #00eaff, 0 0 25px #ff00de;
}
.partyButtonsContainer {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center; /* center buttons */
}

.partyButtons {
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  scale: 0.9;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.partyButtons:hover {
  transform: scale(1.02);
  background: #b700ff25;
  box-shadow: 0 0 10px #ff00de, 0 0 25px #00eaff;
}

/* Profile */
#profilePicPreview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #00eaff;
  margin: 1rem auto 2rem;
  display: block;
  object-fit: cover;
  box-shadow: 0 0 12px #ff00de;
}

/* Output containers */
#profileDisplay,
#roomsList,
#partyList {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
  min-height: 80px;
}

/* Room cards */
.room-card {
  padding: 1rem;
  margin: 0.8rem 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transition: 0.3s ease;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 15px #00eaff, 0 0 25px #ff00de;
}

#notifications {
  position: fixed;
  top: 140px; /* adjust based on navbar height */
  left: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scale: 1.15;
  z-index: 200;
}

.notification {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem 0.8rem 3rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  box-shadow: 0 0 12px #00eaff, 0 0 20px #ff00de;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideIn 0.4s forwards, fadeOut 0.4s forwards var(--fadeOutDelay, 3000ms);
  overflow: hidden;
}

/* glowing strip */
.notification::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 100%;
  background: var(--barColor, #0080ff);
  box-shadow: 0 0 15px var(--barColor, #0080ff);
}

/* icon inside strip */
.notification i {
  position: absolute;
  left: 0.6rem;
  font-size: 1.3rem;
  color: #fff;
  z-index: 1;
}

.notification.success {
  background: rgba(0, 255, 128, 0.2);
  --barColor: #00ff80;
  box-shadow: 0 0 15px #00ff80;
}

.notification.error {
  background: rgba(255, 0, 64, 0.2);
  --barColor: #ff0040;
  box-shadow: 0 0 15px #ff0040;
}

.notification.info {
  background: rgba(0, 128, 255, 0.2);
  --barColor: #0080ff;
  box-shadow: 0 0 15px #0080ff;
}


@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0); /* fix, was -100 (invalid) */
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}
