* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
/* 🔹 Animated background for all pages */
body {
  background: linear-gradient(135deg, #ff9900, #6933ff);
  background-size: 300% 300%;
  animation: gradientAnimation 8s ease infinite;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}

/* 🔹 Smooth color change animation */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Glowing box container */
.container {
  width: 400px;
  height: 520px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 25px;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 30px;
  color: white;
  position: relative;
  transition: all 0.5s ease;
  overflow: hidden;
}

.page {
  display: none;
  flex-direction: column;
  justify-content: center;   
  align-items: center;       
  width: 100%;
  height: 100%;              
  animation: fadeIn 0.6s ease;
}


.page.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 0 10px #ffffff, 0 0 25px #ff00ff;
  letter-spacing: 1px;
}

input {
  width: 80%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 10px;
  outline: none;
}

button {
  margin-top: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: #ff006a;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #ff4081;
  transform: scale(1.05);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.dashboard-btn {
  width: 45%;
  height: 45px;
}

/* SOS button */
#sosBtn {
  background: red;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  margin-top: 15px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,0,0,0.7); }
  70% { box-shadow: 0 0 0 20px rgba(255,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,0,0,0); }
}

/* corner buttons */
.corner-btn {
  position: absolute;
  bottom: 25px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid white;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  padding: 10px 15px;
  transition: 0.3s;
  z-index: 100;
}

.corner-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.corner-btn.left {
  left: 40px;
}

.corner-btn.right {
  right: 40px;
}
.subPage {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  animation: fadeIn 0.6s ease;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  color: white;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.subPage.active {
  display: block;
}
/* 🔹 Logout Page container same as other boxes */
.logout-container {
  background: rgba(10, 10, 25, 0.95); /* dark background like dashboard */
  border-radius: 25px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6),
              0 0 20px rgba(255, 255, 255, 0.3);
  padding: 40px;
  text-align: center;
  color: white;
  width: 350px;
  margin: auto;
  animation: fadeIn 0.6s ease;
  backdrop-filter: blur(10px);
}

/* 🔹 Logout Page Title glow */
#logoutPage .title {
  text-shadow: 0 0 10px #ffffff, 0 0 25px #ff00ff;
}



