/* * {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
} */

@import "tailwindcss";

.main-sidebar1 {
  overflow-y: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  transition: all ease 0.33s;
  position: relative;
  width: 25%;
  left: 0;
}

.main-sidebar1-head {
  text-align: center;
  color: #fff;
  font-family: sans-serif;
  display: flex;
  gap: 0.5em;
  align-items: center;
}

.main-sidebar1-head h2 {
  font-family: "Source sans pro", sans-serif;
}

.main-sidebar2-head {
  padding: 10px 20px;
  margin-bottom: 8px;
}

.main-int-cont {
  height: 100dvh;
}

@media screen and (max-width: 600px) {
  .main-int-cont {
    display: block;
  }
  .main-sidebar1 {
    position: fixed;
    left: -999px;
    width: 80%;
  }
  .main-sidebar2 {
    margin: 0;
    width: 100%;
  }
}

.main-sidebar1-logo {
  height: 50px;
  width: 50px;
  overflow: hidden;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-sidebar1-logo img {
  height: 100%;
}

.main-sidebar1-recent-head {
  margin-bottom: 24px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
}

.main-sidebar1-menus-cont li {
  list-style: none;
  position: relative;
}

.main-sidebar1-menus-cont li a {
  width: 100%;
  display: flex;
  padding: 10px;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  font-family: "Source sans pro", sans-serif;
  font-weight: 100;
  align-items: center;
  gap: 1em;
}

.main-sidebar2-head div i {
  font-size: 2rem;
}

@media screen and (max-width: 600px) {
  .main-sidebar2-head div i {
    font-size: 1.5rem;
  }
}

.chat-cont {
  margin: 0 auto;
}

.input-cont {
  position: relative;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 12px;
}

.input-cont textarea {
  width: 100%;
  border: none;
  font-family: "Source sans pro", sans-serif;
  background: transparent;
  color: white;
  font-size: 1rem;
  outline: none;
  resize: none;
}

.input {
  padding: 20px;
  margin-bottom: 4px;
}

.input-cont button {
  color: #7cb3f3;
  background: #2a2a2a;
  padding: 12px;
  border-radius: 50%;
  right: 14px;
  border: none;
  display: grid;
  place-content: center;
  cursor: pointer;
}

.chat-messages {
  overflow-y: scroll;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.user-message,
.ai-message {
  position: relative;
  color: #e8eaed;
  font-family: "Source sans pro", sans-serif;
  margin-bottom: 24px;
}

.ai-message ul,
.ai-message ol {
  margin-left: 30px;
  margin-bottom: 30px;
}

.ai-message a {
  text-decoration: none;
  color: #0095c6;
}

.ai-message {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.ai-message p {
  margin-bottom: 12px;
  line-height: 1.75rem;
}

.message-logo {
  height: 30px;
  width: 25px;
  overflow: hidden;
  display: inline-block;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: 25px;
}

.message-content hr {
  margin: 24px 0;
}

.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
  margin-bottom: 12px;
}

.message-logo img {
  height: 100%;
  width: 100%;
}

.user-message {
  text-align: right;
}

.user-message p {
  background: #2a2a2a;
  display: inline-block;
  padding: 10px 15px;
  border-radius: 20px 0 20px 20px;
  max-width: 70%;
  text-align: left;
}

/* Loading component styling  */

.loading-cont {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 1em;
  justify-content: center;
  align-content: center;
}

.loading-small {
  width: 50px;
  height: 50px;
  border: 2px solid #bed754;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
  margin: 0 auto;
  display: inline-block;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 50px;
  height: 50px;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* HTML: <div class="loader"></div> */
/* HTML: <div class="loader"></div> */
.loader {
  width: 30px;
  height: 30px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid #fff;
  animation: l20-1 0.8s infinite linear alternate, l20-2 1.6s infinite linear;
}
@keyframes l20-1 {
  0% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%);
  }
  12.5% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0%);
  }
  25% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100%);
  }
  50% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
  }
  62.5% {
    clip-path: polygon(50% 50%, 100% 0, 100% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
  }
  75% {
    clip-path: polygon(50% 50%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0% 100%);
  }
  100% {
    clip-path: polygon(50% 50%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100%);
  }
}
@keyframes l20-2 {
  0% {
    transform: scaleY(1) rotate(0deg);
  }
  49.99% {
    transform: scaleY(1) rotate(135deg);
  }
  50% {
    transform: scaleY(-1) rotate(0deg);
  }
  100% {
    transform: scaleY(-1) rotate(-135deg);
  }
}

/* Welcome message styling */
.welcome-cont {
  display: grid;
  place-content: center;
  height: calc(100vh - 300px);
  text-align: center;
}

.welcome-cont h1 {
  font-family: "Source sans pro", sans-serif;
  color: #e8eaed;
}

/* flash message styling */
.alert {
  position: fixed;
  right: 20px;
  top: 10px;
  padding: 15px 30px;
  padding: 0.95rem 1.25rem;
  border-radius: 0.25rem;
  font-family: "Source Sans Pro", "Lucida Grande", sans-serif;
  z-index: 3000;
  max-width: 300px;
  transform: scale(1.3);
  opacity: 0;
  transition: 0.33s visibility ease-in-out, 0.33s opacity ease-in-out, 0.33s transform ease-in-out;
  will-change: visibility, transform, opacity;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  /* background: #f44336 !important; */
  /* color: #fff; */
}

.alert-success {
  color: #155724;
  background: #bceec8;
  border: 1px solid #c3e6cb;
  /* color: #fff;
  background: #4caf50 !important; */
}

.show-flash-enter {
  transform: scale(1.3);
  visibility: hidden;
  transform: translateX(0);
  transition: opacity 300ms, transform 300ms;
  opacity: 0;
}

.show-flash-enter-active {
  visibility: visible;
  transform: translateX(0);
  transition: opacity 300ms, transform 300ms;
  opacity: 1;
}

.show-flash-enter-done {
  transform: scale(1);
  visibility: visible;
  opacity: 1;
  transition: opacity 300ms, transform 300ms, transform 300ms;
}

.show-flash-exit {
  visibility: visible;
  opacity: 0;
  transition: opacity 300ms, transform 300ms, position 300ms;
}

/* dialog box styling */
.dialog-cont {
  background: #18191d;
  padding: 28px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f1f1f1;
  font-family: "Source sans pro", sans-serif;
  border-radius: 10px;
  position: absolute;
  inset: 0;
  top: 35px;
  z-index: 1;
  display: none;
  transition: background 1s ease-in-out;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 33px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.button-cont i {
  color: #bed754;
}

header {
  background-color: #2d2f30;
  color: #fff;
  text-align: center;
  padding: 30px 15px;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
}

main {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about h2 {
  color: #2d2f30;
  border-left: 5px solid #2d2f30;
  padding-left: 10px;
}

section {
  margin-bottom: 40px;
}

/* Search box */
.search input {
  width: 70%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.search button {
  padding: 10px 20px;
  background-color: #004d99;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.search button:hover {
  background-color: #2d2f30;
}
#searchResult {
  margin-top: 10px;
  color: #2d2f30;
}

/* FAQ styles */
.faq-item {
  border-bottom: 1px solid #ddd;
  margin-top: 10px;
}
.faq-question {
  width: 100%;
  background: #f1f5f9;
  border: none;
  text-align: left;
  padding: 15px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
}
.faq-question:hover {
  background: #e0e7ff;
}
.faq-answer {
  display: none;
  padding: 10px 15px;
  color: #333;
}

/* Contact */
.contact a {
  color: #2d2f30;
  text-decoration: none;
}
.contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  color: #777;
  font-size: 14px;
}
