
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
}

.chat-wrapper {
  font-family: Arial, sans-serif;
  background-color: #000;

  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 45vh;
}

.chat-wrapper.expanded {
    height: 100vh;
  }

.chat-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
}

.chatbox-container {
  height: 400px;
  background: #1e1e1e;
  border-radius: 16px;
  border: 1px solid #333;
  padding: 15px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
  margin:0px 5%;
}

.chatbox-container.active {
  display: flex;
}

.chatbox-container::-webkit-scrollbar {
  width: 8px;
}

.chatbox-container::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}

.chatbox-container::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.chat-message {
  display: block;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 70%;
  padding: 10px 15px;
  border-radius: 18px;
  font-size: 16px;
  margin: 5px 10px;
}

.user-message {
  background-color: #007bff;
  color: white;
  text-align: right;
  align-self: flex-end;
  margin-left: auto;
  border-radius: 18px 18px 4px 18px;
  max-width: 45%;
}

.bot-message {
  background-color: #333;
  color: white;
  text-align: left;
  align-self: flex-start;
  margin-right: auto;
  border-radius: 18px 18px 18px 4px;
}

.chat-input-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  padding: 0 10px;
}

#chat-input-wrapper {
  display: flex;
  align-items: center;
  background-color: #1e1e1e;
  border-radius: 30px;
  padding: 6px;
  width: 100%;
  max-width: 600px;
  border: 1px solid #333;
}

#userInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 16px;
  padding: 10px;
}

#userInput::placeholder {
  color: #888;
}

.chat-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  cursor: pointer;
}

.chat-btn img {
  width: 20px;
  height: 20px;
  filter: brightness(100%) invert(1);
  transition: filter 0.3s ease;
}

.chat-welcome-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding: 20px 10px;
  max-width: 100%;
}

.chat-welcome-text h2 {
  font-size: 2rem;
  color: white;
  margin: 0;
}

.chat-welcome-text p {
  font-size: 1.2rem;
  color: #ccc;
  margin: 10px 0 0 0;
}

.highlight-orange {
  color: #f16232;
  font-weight: bold;
}

@media (max-width: 768px) {
  .chat-wrapper,
  .chat-container,
  #chat-input-wrapper {
    width: 100%;
  }

  .chatbox-container {
    height: 300px;
  }

  #userInput {
    font-size: 14px;
  }

  .chat-welcome-text h2 {
    font-size: 1.5rem;
  }

  .chat-welcome-text p {
    font-size: 1rem;
  }
}

#chat-input-wrapper:focus-within {
border: 1px solid #f16232; /* Or any highlight color */
box-shadow: 0 0 5px #f16232;
}


.typing-indicator .dots {
  display: inline-block;
  font-weight: bold;
}

.typing-indicator .dots::after {
  content: '';
  display: inline-block;
  animation: blink 1.4s infinite steps(1);
}

@keyframes blink {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
  100% { content: '.'; }
}
