﻿

#chatbot-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: white;
  font-size: 24px;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}


#chatbot-header {
  background-color: #0078d4;
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chatbot-header {
  background-color: #007bff;
  color: white;
  padding: 10px;
  font-weight: bold;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  position: relative;
  text-align: center;
}

#chatbot-close {
  position: absolute;
  right: 10px;
  top: 5px;
  cursor: pointer;
  font-size: 18px;
}

#chatbot-clear {
  cursor: pointer;
  font-size: 14px;
}

  #chatbot-clear i {
    color: white;
    transition: color 0.3s;
    color: lawngreen
  }

  #chatbot-clear:hover i {
    color: #ffcccc;
  }


.typing-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  gap: 8px;
}

  .typing-dots .dot {
    width: 10px;
    height: 10px;
    background-color: #007bff;
    border-radius: 50%;
    animation: bounce 1.2s infinite;
  }

    .typing-dots .dot:nth-child(2) {
      animation-delay: 0.2s;
    }

    .typing-dots .dot:nth-child(3) {
      animation-delay: 0.4s;
    }

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.3;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

#chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  height: 420px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  z-index: 9999;
}



#chatbot-messages {
  flex: 1;
  padding: 5px 2px 2px 0;
  overflow-y: auto;
  font-size: 14px;
  max-height: 600px;
  background-color: #f9f9f9;
}

.chatbot-message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

  .chatbot-message.user {
    flex-direction: row-reverse;
    margin-left: 50px;
  }

  .chatbot-message .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-left: 2px;
    padding: 0 5px 0 5px
  }

.message-content {
  max-width: 100%;
  padding: 5px 5px 0 5px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  background-color: #e0e0e0;
  color: #333;
}

.chatbot-message.user .message-content {
  background-color: #0078d4;
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-message.bot .message-content {
  background-color: #f1f1f1;
  color: #222;
  border-bottom-left-radius: 4px;
}


#chatbot-input {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #f4f4f8;
  border-top: 1px solid #ddd;
  border-end-start-radius: 20%;
  border-end-end-radius: 20%;
}

#chatbot-text {
  resize: vertical;
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.3s;
  min-height: 41px;
  max-height: 100px;
  overflow-y: auto;
}


#chatbot-text {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
}

  #chatbot-text:focus {
    border-color: #0078d4;
  }


  #chatbot-text::-webkit-resizer {
    display: none; 
  }


#chatbot-send {
  margin-left: 10px;
  padding: 5px 10px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 85px;
  height: 35px
}

  #chatbot-send:hover {
    background-color: #005fa3;
  }

#chatbot-header {
  cursor: move;
}

#chatbot-container {
  resize: both; /* fallback for basic resizing */
}

.ui-icon {
  background-image: none
}

