html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Common background animation */
body {
  margin: 0;
  height: 100vh;
  background-size: 800% 800%;
  animation: gradient 15s ease infinite;
  transition: background 1s ease;
  transform: translateZ(0); /* Prevents gradient banding/seam lines */
  background-attachment: fixed; /* Ensures continuous fill during scroll */
}

/* Background movement animation */
@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Light mode gradient */
.light-mode {
  background-color: #ffb3b3; /* fallback base color */
  background: linear-gradient(-45deg, #ffb6c1, #ff9a9e, #fad0c4, #ffb6c1);
  background-size: 800% 800%;
  color: #000000;
}

/* Dark mode gradient */
.dark-mode {
  background-color: #000000; /* fallback base color */
  background: linear-gradient(-45deg, #000000, #2c2c2c, #434343, #000000);
  background-size: 800% 800%;
  color: white;
}


#chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: sans-serif;
}

#open-chat-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 50px;
  cursor: pointer;
}

#chat-popup {
  width: 300px;
  height: 400px;
  border: 1px solid #ccc;
  background: white;
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  font-size: 14px;
}

#chat-messages div {
  margin-bottom: 8px;
}

#chat-input {
  padding: 8px;
  border: 1px solid #ccc;
  width: calc(90%);
  margin: 5px;
  border-radius: 5px;
}
#send-btn {
  padding: 8px;
  margin: 5px;
  border: none;
  background-color: #4CAF50;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}
