/* General reset & background */
body {
  background: radial-gradient(ellipse at bottom, #1b112b 0%, #000000 100%);
  color: #eaeaea;
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
  background: url("https://assets.codepen.io/11990995/bg_03.jpg"); /* transparent fog */
  opacity: 0.09;

  animation: flicker 3s infinite ease-in-out;
}

@keyframes flicker {
  0%,
  100% {
    opacity: 0.02;
  }
  50% {
    opacity: 0.05;
  }
}

/* Main chat container */
.chat-container {
  max-width: 600px;
  margin: 3rem auto;
  padding: 1rem;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

/* Individual message block */
.message {
  display: flex;
  align-items: flex-start;
  margin: 1rem 0;
  gap: 0.8rem;
}

/* Reverse order for helpdesk */
.message.helpdesk {
  flex-direction: row-reverse;

  text-align: right;
}

/* Avatar images */
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
}

/* Chat bubbles */
.bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  background-color: #2c2c2c;
  border-radius: 1rem;
  line-height: 1.5;
  font-size: 1rem;
  word-wrap: break-word;
}

/* Helpdesk bubble different tone */
.message.helpdesk .bubble {
  background-color: #444;
  color: #ccf;
  font-style: italic;
}

.glow {
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.3), 0 0 30px rgba(255, 0, 255, 0.2),
    0 0 60px rgba(255, 0, 255, 0.1);
  transition: box-shadow 0.3s ease-in-out;
}

/* Footer tag */
.footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #bbb;
}

/* 🌐 Mobile fix */

@media (max-width: 600px) {
  .bubble {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .avatar {
    width: 40px;
    height: 40px;
  }
}