#chatbot-all,
#chatbot,
#bot-speech-bubble {
  z-index: 2147483647 !important;
}

#chatbot-toggle {
  z-index: 2147483647 !important;
  border: 1px solid rgba(255, 255, 255, 0.8); 
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 100%;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  padding: 10px;
}

#chatbot-toggle img {
  height: 100%;
  width: auto;
}

#chatbot-toggle img:hover {
  transform: scale(1.1);
  transition: transform .2s;
}

#chatbot {
  display: flex;
  flex-direction: column;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

#chatbot-messages > div {
  max-width: 85%;
}

.bg-secondary {
  background-color: var(--bs-secondary) !important;
}

#bot-speech-bubble {
  cursor: pointer;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Styl podstawowy dla WebKit */
#chatbot-messages::-webkit-scrollbar {
  width: 8px;
}
#chatbot-messages::-webkit-scrollbar-track {
  background: var(--bs-body-bg);
}
#chatbot-messages::-webkit-scrollbar-thumb {
  background-color: var(--bs-secondary);
  border-radius: 4px;
}

/* Dla trybu jasnego */
#chatbot-messages::-webkit-scrollbar-track {
  background: #eee;
}
#chatbot-messages::-webkit-scrollbar-thumb {
  background-color: #ccc;
}

/* Dla trybu ciemnego */
html[data-theme="dark"] #chatbot-messages::-webkit-scrollbar-track {
  background: #333;
}
html[data-theme="dark"] #chatbot-messages::-webkit-scrollbar-thumb {
  background-color: #666;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-3px); }
  75%      { transform: translateX(3px); }
}

#chatbot-toggle.shake {
  animation: shake 0.6s ease-in-out;
}

