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

body {
  background: url("../images/bot_background.png") no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
}

.main-title {
  text-align: center;
  color: #fff;
  margin-right: 40px;
  transform: translate(0%, 80%);
  justify-content: flex-end;
  align-items: center;
  width: 40%;
  float: right;
}

.main-title p {
  line-height: 25px;
}

/* Chat Toggle Button (Floating Bubble) */
#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0059ff;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  padding: 12px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

/* Chat Popup Box */
.chat-popup {
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  max-height: 600px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  overflow: hidden;
  height: 500px;
}

.chat-header {
  background-color: #007bff;
  color: #fff;
  padding: 12px 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  cursor: pointer;
  font-size: 20px;
}

.chat-box {
  padding: 10px;
  overflow-y: auto;
  flex-grow: 1;
  height: 300px;
  background: #f9f9f9;
}

.user {
  text-align: right;
  color: #000;
  margin-bottom: 10px;
  background-color: #ddd;
  border-radius: 13px 3px 13px 13px;
  padding: 10px;
  width: auto;
  float: right;
  font-size: 14px;
  clear: both;
}

.bot {
  text-align: left;
  color: #fff;
  margin-bottom: 10px;
  background-color: #007bff;
  padding: 9px 12px;
  border-radius: 13px 13px 13px 3px;
  font-size: 14px;
  width: fit-content;
  max-width: 90%;
  line-height: 20px;
  display: flex;
  clear: both;

}

/* Loader styled as bot message */
.loader {
  display: flex;
  align-items: center;
  background-color: #007bff;
  padding: 9px 12px;
  border-radius: 13px 13px 13px 3px;
  width: fit-content;
  margin-bottom: 10px;
  max-width: 90%;
  gap: 6px;
  clear: both;
}

.bullet {
  width: 6px;
  height: 6px;
  background-color: #fff;
  border-radius: 50%;
  animation: loading 0.9s infinite alternate;
}

.bullet.two {
  animation-delay: 0.2s;
}

.bullet.three {
  animation-delay: 0.4s;
}

@keyframes loading {
  to {
    opacity: 0.3;
    transform: translateY(-5px);
  }
}

.input-area {
  display: flex;
  padding: 10px;
  border-top: 1px solid #eee;
}

input[type="text"] {
  flex-grow: 1;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  margin-left: 10px;
  padding: 10px 14px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
