/* Container */
    #whatsapp-chat {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 999;
      font-family: Arial, sans-serif;
    }

    /* Floating Button */
    #whatsapp-chat .whatsapp-icon {
      width: 60px;
      height: 60px;
      background-color: #25d366;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 8px rgba(0,0,0,0.3);
      cursor: pointer;
      transition: transform 0.3s ease;
    }

    #whatsapp-chat .whatsapp-icon:hover {
      transform: scale(1.1);
    }

    #whatsapp-chat .whatsapp-icon img {
      width: 35px;
      height: 35px;
    }

    /* Chat Box */
    #whatsapp-chat .chat-box {
      display: none;
      position: absolute;
      bottom: 80px;
      right: 0;
      width: 300px;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      overflow: hidden;
      animation: fadeInUp 0.3s ease;
    }

    @keyframes fadeInUp {
      from {opacity: 0; transform: translateY(20px);}
      to {opacity: 1; transform: translateY(0);}
    }

    /* Header */
    .chat-header {
      background-color: #25d366;
      color: white;
      padding: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .chat-header strong {
      font-size: 16px;
    }

    .chat-header span {
      cursor: pointer;
      font-weight: bold;
      font-size: 18px;
    }

    /* Body */
    .chat-body {
      padding: 15px;
      font-size: 14px;
      color: #333;
    }

    .chat-body p {
      margin: 0 0 10px;
    }

    .agent {
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 10px;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: background 0.2s;
    }

    .agent:hover {
      background: #f5f5f5;
    }

    .agent-info {
      display: flex;
      flex-direction: column;
    }

    .agent-name {
      font-weight: bold;
      color: #111;
    }

    .agent-role {
      font-size: 12px;
      color: #555;
    }

    .chat-btn {
      background-color: #25d366;
      color: white;
      padding: 5px 8px;
      border-radius: 6px;
      text-decoration: none;
      font-size: 12px;
      font-weight: bold;
    }

    .chat-btn:hover {
      background-color: #1ebe5b;
    }
    
    /* Dark Mode */
@media (prefers-color-scheme: dark) {
  #whatsapp-chat .chat-box {
    background: #1f2c34;
    color: #fff;
  }
  .chat-header {
    background-color: #075e54;
  }
  .agent {
    border: 1px solid #2f3b40;
  }
  .agent:hover {
    background: #2b3c45;
  }
  .agent-name {
    color: #fff;
  }
  .agent-role {
    color: #bbb;
  }
  .chat-btn {
    background-color: #128c7e;
  }
  .chat-btn:hover {
    background-color: #25d366;
  }
}
