body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Chat Button */
#chat-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: transparent;
  border: none;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 1000;
}

.chat-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

/* Chat Notification */
#chat-notify {
  position: fixed;
  bottom: 100px;
  right: 95px;
  background: #00CFC1;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
  display: none;
  animation: fadeInOut 6s ease-in-out forwards;
}

/* Notification animation */
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(10px); }
  10% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; display: none; }
}

/* Chat Frame */
#chat-frame {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 350px;
  height: 450px;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  flex-direction: column;
  background: white;
}

/* Chat Header */
.chat-header {
  background: #00CFC1;
  color: white;
  padding: 10px;
  font-size: 16px;
  text-align: center;
  position: relative;
}

/* Close Button */
#close-chat {
  position: absolute;
  right: 10px;
  top: 8px;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* Chat Body */
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #f7f7f7;
  display: flex;
  flex-direction: column;
}

/* Chat Input */
.chat-input {
  display: flex;
  border-top: 1px solid #ccc;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
}

.chat-input button {
  padding: 10px;
  background: #00CFC1;
  color: white;
  border: none;
  cursor: pointer;
}

/* Messages */
.user-msg, .bot-msg {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 80%;
  white-space: pre-line;
}

.user-msg {
  background: #e0f7fa;
  align-self: flex-end;
  text-align: right;
}

.bot-msg {
  background: #eeeeee;
  align-self: flex-start;
}

/* Responsive for tablets */
@media (max-width: 768px) {
  #chat-frame {
    width: 92%;
    right: 4%;
    bottom: 80px;
    height: 75vh;
  }

  .chat-header {
    font-size: 1.1rem;
  }

  .chat-input input {
    font-size: 16px;
  }

  .chat-input button {
    font-size: 15px;
  }

  .user-msg, .bot-msg {
    max-width: 95%;
    font-size: 15px;
  }
}

/* Responsive for phones */
@media (max-width: 480px) {
  #chat-button {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }

  #chat-frame {
    width: 95%;
    right: 2.5%;
    height: 80vh;
    bottom: 75px;
  }

  .chat-header {
    font-size: 1rem;
  }

  .chat-input input {
    padding: 10px;
    font-size: 14px;
  }

  .chat-input button {
    padding: 0 14px;
    font-size: 14px;
  }

  .user-msg, .bot-msg {
    font-size: 14px;
    max-width: 95%;
  }
}
