Reset defaults
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* html, body {
  height:100%;
  width: 100%;
  background: #121212;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #e0e0e0;
  overflow: hidden;
} */

/* Container takes full viewport */
/* #container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  max-width: 800px;
  margin: auto;
  background: #1e1e1e;
} */

/* Header */
h4 {
  text-align: left;
  color: #939393;
  font-size: 2rem;
  padding: 10px;
  background: #22222200;
  border-bottom: 1px solid #333;
}

/* Progress bar */
/* #progress {
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #ff8d02, #a24b00);
  transition: width 0.3s ease;
} */

/* Chat messages area */
/* #chat {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #1a1a1a00;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
} */

/* Chat bubbles */
.user {
  align-self: flex-end;
  background: #61616100;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 14px 14px 0 14px;
  max-width: 75%;
  word-wrap: break-word;
  font-size: 1.5rem;
}

.bot {
  align-self: flex-start;
  background: #00246151;
  color: #fafafa;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 0;
  max-width: 75%;
  word-wrap: break-word;
  font-size: 1.5rem;
}

.error {
  align-self: center;
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 1.5rem;
}

/* Input pinned at bottom */
/* #input-area { */
  /* display: flex; */
  /* padding: 6px;
  background: #222;
  border-top: 1px solid #333;
  font-size: 1rem ; */
/* } */

#message {
  width: 80%;
  flex: 1;
  padding: 10px;
  border: 1px solid #44444400;
  border-radius: 20px;
  background: #2c2c2c00;
  color: #fff;
  font-size: 1.5rem;
  outline: none;
  position:relative;
}

#sendBtn {
  margin-left: 8px;
  margin-bottom: 10px;
  padding: 10px 16px;
  background: linear-gradient(45deg, #c27400, #a75400);
  background: rgba(68, 68, 68, 0.48);
  color: rgba(255, 255, 255, 0.446);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s;
}

#sendBtn:hover {
  transform: translateY(-2px);
  color: rgba(255, 255, 255, 0.826);
  background-color: rgba(248, 248, 248, 0.218);
}

/* Mobile adjustments */
/* Mobile adjustments */
@media (max-width: 800px) {
  h2 {
    font-size: 1.5rem; /* smaller for mobile */
    padding: 6px;
  }
  /* #container {

  height: 85vh;

} */

  #chat {
    padding: 6px;
    font-size: 1.3rem; /* keep text readable but not huge */
  }

  .user, .bot {
    font-size: 1.3rem;   /* good mobile size */
    max-width: 90%;    /* let bubbles use more space */
    margin: 0.5rem;    /* spacing around bubbles */
  }

  #message {
    font-size: 1.3rem;
    padding: 8px;
  }

  #sendBtn {
    padding: 8px 12px;
    font-size: 1.3rem;
  }
}

