﻿@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Teachers:ital,wght@0,400..800;1,400..800&display=swap");
em {
  font-weight: 600;
  text-decoration: none;
  font-style: normal;
}

*, pre {
  font-family: "Poppins", sans-serif;
  font-size: 10px;
}

.navbar-brand > img {
  height: 75px;
  margin-inline-end: 1rem;
}

.navbar {
  box-shadow: 5px 5px 8px -7px rgba(0, 0, 0, 0.5);
}
.navbar .dropdown-toggle {
  font-size: 1.5rem;
  font-weight: 600;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.container-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--sb-thumb) var(--sb-track);
}
.container-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.container-scroll::-webkit-scrollbar-track {
  background: var(--sb-track);
}
.container-scroll::-webkit-scrollbar-thumb {
  background: var(--sb-thumb);
  border-radius: 999px;
  border: 2px solid var(--sb-track);
}
.container-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--sb-thumb-hover);
}

.chat-widget-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  z-index: 1050;
  position: absolute;
}

.chat-widget__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  background: var(--bs-dark);
  color: var(--bs-white);
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chat-widget__toggle:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 20px rgba(0, 0, 0, 0.2);
}

.chat-widget {
  display: flex;
  flex-direction: column;
  width: min(450px, 90vw);
  background: var(--bs-light);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(var(--bs-secondary-rgb), 0.15);
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.15);
  gap: 1rem;
  opacity: 0.98;
}
.chat-widget .message-container {
  flex-grow: 1;
  min-height: 450px;
  max-height: 60vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1rem;
}
.chat-widget .message-container .user-message {
  padding: 0.75rem 1rem;
  align-self: flex-end;
  border-radius: 1rem;
  font-size: 1rem;
  max-width: 100%;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.chat-widget .message-container .assistant-message {
  font-size: 1rem;
  padding: 0 0.5rem;
  line-height: 1.5;
}
.chat-widget .message-container .assistant-message p:last-child {
  margin-bottom: 0;
}
.chat-widget .prompt-input {
  background: transparent;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(var(--bs-secondary-rgb), 0.2);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  resize: none;
  min-height: 56px;
}
.chat-widget .prompt-input:focus, .chat-widget .prompt-input:active {
  border: 1px solid var(--bs-primary);
  outline: none;
}

.chat-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.chat-widget__actions {
  display: inline-flex;
  gap: 0.25rem;
}

.chat-widget__icon-btn {
  border: none;
  background: transparent;
  color: inherit;
  border-radius: 50%;
  padding: 0.25rem;
  line-height: 1;
  display: inline-flex;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.chat-widget__icon-btn:hover {
  background-color: rgba(var(--bs-secondary-rgb), 0.1);
}

.chat-widget__footer {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.chat-widget__empty {
  font-size: 0.95rem;
  color: rgba(var(--bs-secondary-rgb), 0.8);
  text-align: center;
  padding: 2rem 1rem;
}

@media (max-width: 576px) {
  .chat-widget-container {
    bottom: 1rem;
    right: 1rem;
  }
  .chat-widget {
    width: min(360px, 92vw);
    padding: 1.5rem;
  }
}
