@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
}

/* Algemene styling voor zowel het welkomstscherm als het chatbotvenster */
.welcome-screen {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  bottom: 1vh;
  right: 1vw;
  width: 90vw;
  height: 80vh;
  max-width: 400px;
  max-height: 700px;
  background-color: white;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 1.5rem;
  z-index: 999;
  overflow: hidden;
  box-sizing: border-box;
}

.chatbot-window {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  bottom: 1vh;
  right: 1vw;
  width: 90vw;
  height: 80vh;
  max-width: 400px;
  max-height: 700px;
  background-color: white;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 1.5rem;
  z-index: 999;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1), 
              0px 8px 15px rgba(0, 0, 0, 0.2);
}

.chatbot-window:hover {
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15), 
              0px 10px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
  transition: all 0.3s ease-in-out; 
}

.welcome-screen .wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.welcome-screen .content {
  flex-grow: 1;
  text-align: center;
  overflow-y: auto;
}

.welcome-screen .header {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0098ff;
  color: white;
  text-align: center;
  padding: 10px;
  margin-bottom: 10px;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
}

.start-chat-btn {
  background-color: #0098ff;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  width: 100%;
}

.start-chat-btn:hover {
  background-color: #007acc;
  transform: translateY(-2px);
}

.contact-options {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.contact-options ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
  padding: 0;
  width: 100%;
}

.contact-options li {
  margin: 0 10px;
}

.contact-options a {
  font-size: 24px;
  color: #0098ff;
  transition: color 0.3s;
}

.contact-options a:hover {
  color: #007acc;
}

.chat-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #cccccc;
  border-radius: 1.5rem;
  padding: 20px;
  margin: 50px 20px 20px 20px;
}

.chat-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #333;
  text-align: left;
}

.chat-info p {
  font-size: 1rem;
  color: #555;
  text-align: left;
}

/* Specifieke styling voor het chatbotvenster */
.chatbot-window {
  background-color: rgb(253, 253, 255);
}

.chat-header {
  background-color: #0098ff;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-header {
  display: flex;
  align-items: center;
  margin: 0 10px;
  padding: 0;
  max-height: 60px;
}

.profile-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-title {
  display: flex;
  flex-direction: column;
}

.profile-pic {
  width: 50px;
  height: 100px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.chatbot-name {
  margin-bottom: 5px;
  font-weight: bold;
}

.status {
  margin: 0;
  font-size: 12px;
}

.ai-badge {
  background-color: #3cd38f;
  color: white;
  padding: 2px 4px;
  border-radius: 4px;
  margin-left: 5px;
  font-size: 10px;
}

.close-chat-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.message-container {
  display: flex;
  width: 100%;
  margin-top: 10px;
}

.message {
  display: flex;
  flex-direction: column;
  margin-top: 15px;
  width: 100%;
}

.chat-messages {
  padding: 10px;
  overflow-y: auto;
  flex-grow: 1;
  background-color: rgb(253, 253, 255);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow-y: scroll; 
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

.chat-messages::-webkit-scrollbar {
  display: none; 
}

/* Chatbubbles */
.chat-bubble {
  max-width: 60%;
  padding: 10px 15px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 15px;
  box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  white-space: normal;
  word-break: break-word;
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}

/* Bot bubble (links)  */
.bot-bubble {
  background-color: rgb(255, 255, 255);
  color: black;
  align-self: flex-start;
  border-radius: 0px 10px 10px 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* User bubble (rechts) */
.user-bubble {
  background-color: #0098ff;
  color: white;
  align-self: flex-end;
  border-radius: 10px 0px 10px 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Tijdstempel */
.timestamp {
  font-size: 12px;
  color: #999;
  position: absolute;
  bottom: -20px;
  right: 10px;
}

.chat-footer {
  display: flex;
  padding: 10px;
  background-color: white;
  border-top: 1px solid #e6e6e6;
}

.chat-input {
  flex-grow: 1;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid #e6e6e6;
  outline: none;
}

.send-btn {
  background-color: #0098ff;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px;
  margin-left: 10px;
  cursor: pointer;
}

.send-btn:hover {
  background-color: #3aa7ef;
}

/* Responsive aanpassingen voor kleinere schermen */
@media only screen and (max-width: 768px) {
  .welcome-screen, .chatbot-window {
    width: 95vw;
    height: 90vh;
    bottom: 2vh;
    right: 1vw;
  }

  .content {
    padding: 10px;
  }

  .start-chat-btn {
    padding: 12px;
    font-size: 14px;
  }
}

.typing-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 20px;
  padding: 10px;
  border-radius: 15px;
  max-width: 40%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.typing-indicator .dot {
  width: 6px;
  height: 6px;
  margin: 0 3px;
  background-color: #0098ff;
  border-radius: 50%;
  animation: bounce 1.5s infinite;
}

.typing-indicator .dot:nth-child(2) {
  animation-delay: 0.3s;
}

.typing-indicator .dot:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes bounce {
  0%, 80%, 100% {
      transform: scale(0);
  }
  40% {
      transform: scale(1);
  }
}