


.chatbot-container {
  /* max-width: 430px;
  margin: auto; */
  background: #f2f2f7;
  /* background: var(--dgrad-1, linear-gradient(247deg, var(--principal-4, #132D98) 0%, #3BCAC2 92.36%)); */
  padding: 10px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  flex: 1;
  overflow-y: auto;
}

.chatbot-header {
  display: flex;
  flex-direction: column; 
  align-items: center; 
  gap: 10px; 
  padding: 10px;
}

.profile-pic {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
  text-align: center; 
}

.profile-info .name {
  font-weight: 600;
  font-size: 18px; 
  /* color: white; */
}

.profile-info .company {
  font-size: 14px;
  color: #555;
}

.chatbot-messages {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  /* max-height: 300px; */
  height: 80%;
  overflow-y: auto;
}

.message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 20px;
  line-height: 1.4;
  font-size: 15px;
}

.message.received {
  background: #e5e5ea;
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.message.sent {
  /* background: #007aff; */
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.bubble-select {
  display: flex;
  justify-content: flex-end; 
  width: 100%; 
  padding: 0 10px; 
  gap: 10px;
}

.bubble-select ul {
  padding: 0;
  list-style: none;
  margin: 0;
}

.bubble-select li {
  margin: 3px 0;
}

.chatbot-input-area {
  display: flex;
  margin-top: 10px;
}

#chatbot-input {
  flex: 1;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #ccc;
  margin-right: 5px;
}

#chatbot-send {
  padding: 10px 15px;
  background: #007aff;
  border: none;
  color: white;
  border-radius: 50%;
  cursor: pointer;
}

.chatbot-button {
  padding: 10px 20px;
  border: none;
  border-radius: 20px; 
  background-color: #007aff; 
  color: white;
  cursor: pointer;
  font-size: 14px; 
  line-height: 1.4; 
  text-align: center;
}

.chatbot-button:hover {
  background-color: #005bb5; 
}

.chatbot-form {
  gap: 10px;
  display: grid;
}

.chatbot-form form {
  background: #e5e5ea;
  align-self: flex-start;
  /* max-width: 80%; */
  padding: 10px 15px;
  border-radius: 20px;
  line-height: 1.4;
  font-size: 15px;
}

.chatbot-form label {
  display: block;
  margin: 5px 0;
}

.chatbot-form input[type="text"] {
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.chatbot-form input {
  margin-top: 5px;
}

#submit-form {
  margin-top: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  background-color: #007aff;
  color: white;
  cursor: pointer;
}

#submit-form:hover {
  background-color: #005bb5;
}

/* loading styles */

.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: start;
    margin: 10px 0;
    padding: 10px 15px;
    background: #e0e0e0;
    border-radius: 25px;
    width: fit-content;
    max-width: 200px;
    position: relative;
    font-size: 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #888;
    border-radius: 50%;
    margin: 0 2px;
    animation: blink 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% { opacity: 0.2; transform: scale(1); }
    20% { opacity: 1; transform: scale(1.3); }
    100% { opacity: 0.2; transform: scale(1); }
}
