/* Container for the entire chat box */
    #chat-container {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 320px;
      max-height: 500px;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
      border-radius: 15px;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      display: none;
      flex-direction: column;
      background: #fff;
      overflow: hidden;
      z-index: 99999;
    }

    /* Chat header */
    #chat-header {
      background-color: #0211A7;
      color: white;
      padding: 12px 16px;
      display: flex;
      align-items: center;
      border-top-left-radius: 15px;
      border-top-right-radius: 15px;
      gap: 12px;
      position: relative;
      font-weight: 600;
    }

    #chat-header img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: white;
    }

    #chat-header .status {
      font-size: 0.85rem;
      color: #cdbcf1;
      font-weight: 400;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    #chat-header .status .online-dot {
      width: 8px;
      height: 8px;
      background-color: #16c518;
      border-radius: 50%;
      display: inline-block;
    }

    /* Header controls (minimize & close) */
    #chat-header .controls {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 14px;
      cursor: pointer;
      font-size: 1.2rem;
      color: white;
      user-select: none;
      width: 12px;
    }

    /* Chat messages container */
    #chat-messages {
      padding: 16px 20px;
      flex-grow: 0;
      overflow-y: auto;
      background-color: #fff;
      font-size: 0.9rem;
      color: #000;
      position: relative;
    }

    /* Chatbot message style */
    .message.bot {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      margin-bottom: 15px;
      background: #efefef;
      border-radius: 18px 18px 18px 0;
      padding: 8px 12px;
      max-width: 75%;
      width: max-content;
    }

    .message.bot .avatar {
      width: 36px;
      height: 36px;
      background: #0211A7;
      border-radius: 50%;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Bot avatar SVG styles */
    .message.bot .avatar svg {
      width: 20px;
      height: 20px;
      fill: white;
    }

    .message.bot .text-wrapper {
      max-width: 220px;
    }

    /* Bot message bubble */
    .message.bot .message-text {
      background-color: #f7f7f7;
      border-radius: 18px;
      padding: 10px 14px;
      line-height: 1.3;
      color: #1c1c1c;
      font-weight: 400;
      font-size: 0.95rem;
    }

    /* Bot's name on top of message */
    .message.bot .sender-name {
      font-size: 0.75rem;
      color: #888;
      margin-bottom: 6px;
      font-weight: 600;
      user-select: none;
      opacity: 0.7;
    }

    /* User message */
    .message.users {
      min-width: max-content;
      max-width: 75%;
      margin-left: auto;
      margin-bottom: 15px;
      background-color: #0211A7;
      border-radius: 18px 18px 0 18px;
      padding: 10px 15px;
      color: white;
      font-size: 0.95rem;
      text-align: right;
      line-height: 1.3;
      word-wrap: break-word;
    }

    /* Buttons container for choices */
    .choices {
      display: flex;
      gap: 12px;
      margin: 10px 0 10px 0;
      flex-wrap: wrap;
    }

    /* Choice button styles */
    .choice-btn {
      font-weight: 400;
      font-size: 12px;
      color: #0211A7;
      background-color: transparent;
      border: 1px solid #0211A7;
      border-radius: 30px;
      padding: 2px 8px;
      cursor: pointer;
      transition: background-color 0.3s, color 0.3s;
      user-select: none;
    }

    .choice-btn:hover {
      background-color: rgb(10, 5, 54);
      color: white;
    }

    /* Chat input container */
    #chat-input-container {
      flex: 0 0 auto;
      border-top: 1px solid #eee;
      padding: 10px 16px;
      display: flex;
      align-items: center;
      gap: 6px;
      background-color: #fff;
      border-bottom-left-radius: 15px;
      border-bottom-right-radius: 15px;
    }

    #chat-input {
      border: none;
      outline: none;
      flex-grow: 1;
      font-size: 1rem;
      color: #999;
      font-style: italic;
      background-color: #fbfbfb;
      padding: 8px 12px;
      border-radius: 12px;
    }

    #chat-input::placeholder {
      font-style: italic;
      color: #ddd;
    }

    #send-btn {
      background: transparent;
      border: none;
      color: #666;
      cursor: pointer;
      font-size: 1.3rem;
      display: flex;
      align-items: center;
      justify-content: center;
      user-select: none;
      transition: color 0.2s ease;
      padding: 6px;
    }

    #send-btn:hover {
      color: #0211A7;
    }

    /* Message icon button */
    #msg-icon {
      position: fixed;
      bottom: 78px;
      right: 9px;
      background-color: #0211A7;
      color: white;
      border-radius: 50%;
      width: 52px;
      height: 52px;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.2);
      z-index: 1100;
      user-select: none;
      transition: background-color 0.3s ease;
    }

    #msg-icon:hover {
      background-color: #FDC500;
    }

    /* Scrollbar styling for chat messages */
    #chat-messages::-webkit-scrollbar {
      width: 6px;
    }

    #chat-messages::-webkit-scrollbar-thumb {
      background-color: #d1b3e0;
      border-radius: 3px;
    }

    /* Responsive adjustments */
    @media (max-width: 400px) {
      #chat-container {
        width: 90vw;
        right: 5vw;
      }
    }