* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  }
  ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  
  li {
    float: left;
    border-right:1px solid #bbb;
  }
  
  li:last-child {
    border-right: none;
  }
  
  li a {
    color: black;
    display: block;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
  }
  
  li a:hover:not(.active) {
    color: blueviolet;
  }
  
  .active {
    color: #6F68C2;
  }

  
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
        background: linear-gradient(to bottom, #f0f7ff, #f5f0ff);
      color: #334155;
  padding: 20px;
}


.Chat-bot {
  position: relative;
  width: 600px;
  background: #fff;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.3);
}

.header-description {
    max-width: 500px;
    margin: 0 auto;
    color: #64748b;
  }

.logo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding: 5px;
  color: #fff;
  font-weight: 600;
}


.chat-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  height: 400px;
  margin-bottom: 70px;
  scrollbar-width: thin;
  scrollbar-color: #cccccf transparent;
}

.chat-body .msg {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }  

.chat-body .user-msg {
  flex-direction: column;
  align-items: flex-end;
}

.chat-body .msg .msg-text {
  padding: 12px 16px;
  max-width: 75%;
  font-size: 0.8rem;
}

.chat-body .bot-msg.thinking .msg-text {
  padding: 2px 16px;
}

.chat-body .bot-msg .msg-text {
  background: #F2F2FF;
  border-radius: 13px 13px 13px 3px;
}

.chat-body .user-msg .msg-text {
  background: #5350c4;
  border-radius: 13px 13px 3px 13px;
  color: #fff;
}

.chat-body .bot-msg .msg-text .thinking-indicator {
  display: flex;
  gap: 4px;
  padding-block: 15px;
}

.chat-body .bot-msg .msg-text .thinking-indicator .dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #6F68C2;
  animation: dotPulse 1.8s ease-in-out infinite;
}

.chat-body .bot-msg .msg-text .thinking-indicator .dot:nth-child(1) {
  animation-delay: 0.2s;
}

.chat-body .bot-msg .msg-text .thinking-indicator .dot:nth-child(2) {
  animation-delay: 0.3s;
}

.chat-body .bot-msg .msg-text .thinking-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%, 44% {
    transform: translateY(0);
  }
  28% {
    opacity: 0.4;
    transform: translateY(-4px);
  }
  44% {
    opacity: 0.4;
  }
}

.chat-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 15px 22px 20px;
}

.chat-footer .chat-form {
  display: flex;
  align-items: center;
  background: #fff;
  outline: 1px solid #CCCCE5;
  border-radius: 32px;
}

.chat-footer .chat-form:focus-within {
  outline: 2px solid #5350C4;
}

.chat-form .msg-input {
  border: none;
  outline: none;
  height: 47px;
  width: 100%;
  font-size: 0.8rem;
  padding: 14px 0 13px 18px;
}

.chat-form .chat-sender {
  display: flex;
  align-items: center;
  align-self: flex-end;
  padding-right: 10px;
  height: 47px;
}

.chat-form .chat-sender button {
  height: 35px;
  width: 35px;
  font-size: 1.3rem;
  border: none;
  background: #fff;
  color: #3d39ac;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.modal-buttons button {
  margin: 0 10px;
}
button {
    background: linear-gradient(to right, #a855f7, #3b82f6);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
  }
