

 #chat-container {
    position: fixed;
    bottom: 18px;
    right: 10px;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  
  #envelope-btn {
 /*   position: relative;   */
    
    position: fixed;     /* Fix position relative to viewport */
    bottom: 10px;        /* 20px from the bottom */
    right: 24px;         /* 20px from the right */
    
    width: 80px;
    height: 60px;
    background: transparent;
    border: none;
    cursor: pointer;  
  
  }
  
  
  #envelope-icon {
    width: 80px;
    height: 50px;
    bottom: 5px;
    fill: #333;
  }
  
  #badge {
    position: absolute;
    top: 20px;
    right: 6px;
    width: 16px;
    height: 16px;
    background-color: red;
    color: white;
    font-size: 12px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
  }
  
 /* #chat-window {   */
   
   .chat-window {   
  
    height: 550px;
    width: 450px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background: #fff;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  
  #chat-header {
    padding: 10px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  #messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
  }
  #input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
  }
  #user-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  #send-btn {
    margin-left: 8px;
    padding: 8px 8px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }