

@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');
/* Container & Hidden Toggle */
.chat-container {
    position: fixed;
    bottom: 50px;
    right: 30px;
    font-family: "Exo 2", sans-serif;
  }

  
  #chat-toggle {
    display: none;
  }
  
  /* The Floating Button */
  .chat-button {
    width: 100px;
    height: 100px;
    background-image: url("/images/chat.jpeg");
    background-size: cover;      /* Scales image to fill */
    background-position: center; /* Centers the focus of the image */
    background-repeat: no-repeat;
    border-radius: 50%;          /* Makes the container a circle */
    overflow: hidden;            /* Ensures nothing leaks outside the circle */
    
    /* Flex & Aesthetics */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
  }
  /* Toggle Logic: Show/Hide Icons */
  .icon-close {
    display: none;
  }
  
  #chat-toggle:checked~.chat-button .icon-open {
    display: none;
  }
  
  #chat-toggle:checked~.chat-button .icon-close {
    display: block;
  }
  
  /* The Chat Window */
  .chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 520px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: none;
    /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
  }
  
  /* Toggle Logic: Show Window */
  #chat-toggle:checked~.chat-window {
    display: flex;
  }
  
  /* Animations */
  @keyframes slideIn {
    from {
      transform: translateY(20px);
      opacity: 0;
    }
  
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  /* Styling the Internals */
  .chat-header {
    background: #45489a;
    color: white;
    padding: 15px;
  }
  
  .chat-header h3 {
    margin: 0;
    font-size: 16px;
  }
  
  .chat-header p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
  }
  
  .chat-content {
    height: 300px;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
  
    /* The Secret Sauce */
    display: flex;
    flex-direction: column;
  }
  
  .msg {
    margin-top: 10px;
    /* Changed from margin-bottom */
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 14px;
    max-width: 80%;
  }
  
  .bot {
    background: #e9ecef;
    align-self: flex-start;
  }
  
  .user {
    background: #45489a;
    color: white;
    margin-left: auto;
  }
  
  .chat-input {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
  }
  
  .chat-input input {
    flex: 1;
    border: none;
    outline: none;
  }
  
  .chat-input button {
    background-color: #45489a;
    color: white;
    padding: 1rem;
    border-radius: 20%;
  }