body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
  }

  #chat-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 370px;
    height: 550px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
  }
  .hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
  }
  
  #agent-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  #agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #007bff;
  }
  #agent-name {
    font-weight: bold;
    margin: 5px 0 2px 0;
  }
  #agent-role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
  }
  .rating-buttons {
    display: flex;
    gap: 10px;
  }
  .rating-buttons button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
  }
  
  #chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #fafafa;
    scroll-behavior: smooth;
  }
  .message-wrapper {
    display: flex;
    align-items: flex-end;
    margin: 10px 0;
  }
  .avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
  }
  .message {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 15px;
    line-height: 1.4;
  }
  
  .bot-msg {
    background-color: #e5d9f2;
    border-bottom-left-radius: 0;
  }
  
  .user-message-wrapper {
    justify-content: flex-end;
  }
  .user-avatar {
    order: 2;
    margin-left: 8px;
    margin-right: 0;
  }
  .user-msg {
    background-color: #dcf8c6;
    border-bottom-right-radius: 0;
  }
  
  #input-area {
    display: flex;
    align-items: center;
    padding: 10px;
  }
  #userInput {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin-right: 8px;
    font-size: 14px;
  }
  #attachment-btn, #send-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin: 0 5px;
  }
  
  #chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 75px;
    height: 75px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    z-index: 1001;
  }
  #chat-icon:hover {
    background: #0056b3;
    transform: scale(1.1);
  }
  .hidden-icon {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
  }
  
  #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 999;
    transition: opacity 0.3s ease;
  }
  .hidden-overlay {
    display: none;
  }