/* Reset styles */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }
  
  /* Chatbot toggler button */
  #chatbot-toggler {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
  }
  
  #chatbot-toggler span {
    font-size: 30px;
  }
  
  /* Chatbot popup container */
  .chatbot-popup {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    max-width: 90%;
    height: 500px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 999;
  }
  
  [hidden] {
    display: none;
  }
  
  /* Chatbot Header */
  .chat-header {
    background-color: #007bff;
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .chat-header .header-info {
    display: flex;
    align-items: center;
  }
  
  .chat-header .chatbot-logo {
    margin-right: 10px;
  }
  
  .chat-header .logo-text {
    font-size: 18px;
    font-weight: bold;
  }
  
  .chat-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
  }
  
  /* Chatbot Body */
  .chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #fff;
  }
  
  .message {
    display: flex;
    align-items: flex-start;
  }
  
  .bot-message {
    flex-direction: row;
  }
  
  .user-message {
    flex-direction: row-reverse;
    text-align: right;
  }
  
  .bot-message .bot-avatar,
  .user-message .bot-avatar {
    width: 40px;
    height: 40px;
    margin: 0 10px;
  }
  
  .message .message-text {
    background-color: #f1f1f1;
    border-radius: 10px;
    padding: 10px 15px;
    max-width: 70%;
    word-wrap: break-word;
  }
  
  .user-message .message-text {
    background-color: #007bff;
    color: #fff;
  }
  
  /* Chatbot Footer */
  .chat-footer {
    padding: 10px;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f8f9fa;
  }
  
  .chat-footer .message-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    resize: none;
  }
  
  .chat-footer .message-input:focus {
    border-color: #007bff;
  }
  
  .chat-controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .chat-controls button {
    background: none;
    border: none;
    font-size: 24px;
    color: #007bff;
    cursor: pointer;
  }
  
  .chat-controls button:hover {
    color: #0056b3;
  }
  
  .file-upload-wrapper {
    position: relative;
  }
  
  #file-upload {
    font-size: 24px;
  }
  
  #file-input {
    display: none;
  }
  
  /* Scrollbar styles */
  .chat-body::-webkit-scrollbar {
    width: 8px;
  }
  
  .chat-body::-webkit-scrollbar-thumb {
    background-color: #007bff;
    border-radius: 4px;
  }
  
  .chat-body::-webkit-scrollbar-thumb:hover {
    background-color: #0056b3;
  }
  
  /* Responsive Design */
  @media (max-width: 500px) {
    #chatbot-toggler {
      width: 50px;
      height: 50px;
      bottom: 10px;
      right: 10px;
    }
  
    .chatbot-popup {
      width: 100%;
      height: 80%;
      bottom: 0;
      right: 0;
      border-radius: 0;
    }
  
    .chat-footer {
      flex-direction: column;
      gap: 5px;
    }
  }
  