#chatToggleContainer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounceIn 1.2s ease;
  display:none;
}

#chatToggleBtn {
  background-color: #075e54;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: bounce 2s infinite;
  margin-bottom: 6px; /* Space between button and label */
}

.chat-label {
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 10px;
  color: #075e54;
  font-weight: 500;
  font-size: 0.85rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}


  .chat-container {
    display: none;
    position: fixed;
    bottom: 90px; right: 20px;
    width: 420px;
    max-height: 90vh;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    flex-direction: column;
    overflow: hidden;
    z-index: 10001;
    display: flex;
  }
  .chat-header {
    background-color: #075e54;
    color: white;
    padding: 1rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: #dcf8c6;
    height: 300px;
  }
  .message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.5rem;
  }
  .message.user {
    justify-content: flex-end;
    flex-direction: row-reverse;
  }
  .bubble {
    background-color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 18px;
    max-width: 70%;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.95rem;
  }
  .user .bubble {
    background-color: #dcf8c6;
  }
  .timestamp {
    font-size: 0.65rem;
    color: #666;
    text-align: right;
    margin-top: 2px;
    user-select: none;
  }
  .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
  }
  .user .avatar {
    background-image: url('https://i.pravatar.cc/30?img=3');
  }
  .bot .avatar {
    background-image: url('https://i.pravatar.cc/30?img=12');
  }
  .chat-input {
    display: none;
    flex-direction: column;
    padding: 0.5rem;
    border-top: 1px solid #ccc;
    background: #f0f0f0;
  }
  #userInput {
    resize: vertical;
    min-height: 80px;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
  }
  .icon-toolbar {
    margin-top: 6px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
  }
  button.icon-button, label.file-label, button.send-btn {
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #075e54;
    user-select: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  button.icon-button:hover, label.file-label:hover, button.send-btn:hover {
    background-color: #c9e6db;
  }
  label.file-label {
    user-select: none;
  }
  button.send-btn {
    font-size: 1.4rem;
    font-weight: bold;
    padding-left: 10px;
    padding-right: 10px;
  }
  #initForm {
    padding: 1rem;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  #initForm input, #initForm select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
  }
  #initForm button {
    padding: 0.5rem;
    background: #075e54;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
  }
  #initForm button:disabled {
    background: #999;
    cursor: not-allowed;
  }
  .tooltip {
    position: relative;
    display: inline-block;
  }
  .tooltip .tooltiptext {
    visibility: hidden;
    width: max-content;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 3px 6px;
    position: absolute;
    z-index: 10002;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
  }
  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }