/* style.css */

/* Font & Base Styles */
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(to right, #eef2f3, #8e9eab);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Chat Container */
.chat-container {
  width: 100%;
  max-width: 500px;
  height: 80vh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Chat Box */
.chat-box {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #f9f9f9;
}

/* Messages */
.user,
.bot {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
  position: relative;
}

.user {
  align-self: flex-end;
  background: #d0ebff;
  color: #004085;
  border-bottom-right-radius: 0;
  animation: fadeInRight 0.3s ease;
}

.bot {
  align-self: flex-start;
  background: #e2e3e5;
  color: #383d41;
  border-bottom-left-radius: 0;
  animation: fadeInLeft 0.3s ease;
}

/* Chat Input Area */
.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 15px;
  background: #fff;
}

.chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}

.chat-input input:focus {
  border-color: #007bff;
}

.chat-input button {
  margin-left: 10px;
  background-color: #000000;
  border: none;
  color: #fff;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chat-input button:hover {
  background-color: #0056b3;
}

/* Scrollbar */
.chat-box::-webkit-scrollbar {
  width: 6px;
}
.chat-box::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .chat-container {
    height: 90vh;
    border-radius: 0;
  }

  .chat-input button {
    padding: 10px;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
