#smart-question-form {
  display: flex;
  gap: 0.5em;
  margin-bottom: 1em;
}

#smart-question-form input[type="text"] {
  flex: 1;
  padding: 0.5em;
  border: 1px solid black;
  border-radius: 4px;
  background: #3e3e3e;
}

#smart-question-form button {
  padding: 0.5em 1em;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#smart-question-form button:hover {
  background-color: #005177;
}

#smart-results ul.smart-search-list {
  list-style: none;
  padding-left: 0;
}

#smart-results ul.smart-search-list li {
  margin-bottom: 0.5em;
}

#smart-results ul.smart-search-list li a {
  text-decoration: none;
  color: #0073aa;
}

#smart-results ul.smart-search-list li a:hover {
  text-decoration: underline;
}


.smart-question-chat {
  max-width: 700px;
  margin: 0 auto;
  font-family: sans-serif;
}

#smart-results {
  max-height: 800px;
  overflow-y: auto;
  padding: 1em;
  border: 1px solid #ddd;
  background: #202020;
  border-radius: 8px;
}


.chat-bubble {
  padding: 1em;
  margin: 1em 0;
  border-radius: 12px;
  max-width: 80%;
  position: relative;
}

.chat-bubble.user {
  background: #00768f;
  align-self: flex-end;
  text-align: right;
  margin-left: auto;
      display: flex
;
    align-items: center;
}

.chat-bubble.bot {
  background: #292828;
  align-self: flex-start;
  text-align: left;
  margin-right: auto;
}

.smart-search-list {
  list-style: none;
  padding-left: 0;
}

.smart-search-list li {
  margin-bottom: 1em;
}

.smart-search-list li small {
  color: #555;
  font-size: 0.85em;
}

.chat-bubble.loading {
  opacity: 0.6;
  font-style: italic;
}

.chat-bubble {
  display: flex;
  gap: 0.75em;
  align-items: flex-start;
}

.avatar {
  width: 40px;
  height: 40px;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.user-avatar {
  background: #00768f;
  color: #fff;
}

.bot-avatar {
  background: #3e3e3e;
  color: #fff;
}

.message {
  background: inherit;
  padding: 0;
  flex: 1;
}

.timestamp {
  font-size: 0.75em;
  color: #888;
  margin-top: 0.5em;
  text-align: right;
}

/* Typing Animation – drei Punkte */
.typing::after {
  content: '';
  display: inline-block;
  width: 1em;
  text-align: left;
  animation: dots 1.5s steps(4, end) infinite;
  font-weight: bold;
  font-size: 18px;
}

@keyframes dots {
  0%   { content: '';     }
  25%  { content: '.';    }
  50%  { content: '..';   }
  75%  { content: '...';  }
  100% { content: '';     }
}

/* Versteckte Antwort */
.hidden-answer {
  display: none;
  animation: fadeIn 0.4s ease-in;
}

@keyframes wobble {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(3deg); }
  50%  { transform: rotate(-3deg); }
  75%  { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.07); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.bot-avatar.typing {
  display: inline-block;
  animation: wobble 1.2s infinite ease-in-out, pulse 1.6s infinite ease-in-out;
}



mark.mark {
  background-color: #ae0a14 !important;
  border: 1px solid black;
  color: #000;
  padding: 0 3px;
  border-radius: 3px;
}


.timestamp.text-left {
    text-align: left !important;
}