#typing-indicator {
  width: auto;
  display: none;
  font-size: 12px;
  margin: 8px 10px;
  padding: 0 10px;
  color: var(--light-transparent);
}

#typing-indicator.active {
  display: flex;
}

.bouncing-dots svg {
  animation: bounce 1.4s infinite ease-in-out;
}

.bouncing-dots svg:nth-child(2) {
  animation-delay: 0.2s;
}

.bouncing-dots svg:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

.file-indicator,
.file-indicator-uploaded {
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--gray-700);
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  margin: 10px 15px 0;
}

.file-indicator {
  background-color: var(--gray-100);
}

.file-indicator-uploaded {
  background-color: var(--green-200);
}

.file-indicator span,
.file-indicator-uploaded span {
  margin-right: 10px;
  display: inline-block;
}

#report-incident-chat-host {
  min-height: 500px;
  display: flex;
}

.chat-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex: 1;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.chat-loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--gray-200);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: chat-loading-spin 0.8s linear infinite;
}

@keyframes chat-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.chat-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .5rem;
}

.chat-container {
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--chat-bg);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--chat-border);
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background-color: var(--chat-body-bg);
  position: relative;
}

.chat-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--gray-200);
  padding: 1.3rem;
}

@media (min-width: 640px) {
  .chat-footer {
    flex-direction: row;
    align-items: center;
  }
}

.chat-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  outline: none;
  width: 100%;
}

.chat-input:focus {
  border-color: var(--color-primary);
}

.chat-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  margin: auto;
}

@media (min-width: 640px) {
  .chat-actions {
    width: auto;
  }
}

.chat-button {
  background-color: var(--color-primary);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.chat-button svg {
  margin-bottom: 0;
  padding: 4px;
}

.chat-button:hover {
  background-color: var(--color-secondary);
}

.chat-button:disabled {
  background-color: var(--gray-400);
  cursor: not-allowed;
  opacity: 1;
}

.chat-button:disabled:hover {
  background-color: var(--gray-400);
}

.message-wrapper {
  display: flex;
}

.align-user {
  justify-content: flex-end;
}

.align-assistant {
  justify-content: flex-start;
}

.message-bubble {
  max-width: 98%;
  padding: 0 0.75rem 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.message-user {
  background-color: var(--color-primary);
  color: white;
  align-self: flex-end;
}

.message-assistant {
  background-color: var(--white);
  color: var(--gray-900);
  align-self: flex-start;
}

.message-time {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
  text-align: right;
}

.message-time-user {
  color: #fff;
}

.message-time-assistant {
  color: var(--gray-400);
}

.message-bubble p {
  line-height: 1.75rem;
  margin-bottom: 0.75rem;
  margin-top: 8px;
}

.message-bubble p:last-child {
  margin-bottom: 0;
}

.badge {
  color: #000;
  font-size: 1.125rem;
  margin: 0;
  padding: 0;
}

.cards-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.card-green {
  flex: 1;
  border: none;
  background: #f1f1f1;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  min-height: 220px;
  display: flex;
  align-items: center;
  text-align: center;
  flex-direction: column;
  gap: 1rem;
}

.card-green h4 {
  margin: 0;
  line-height: 1.5;
}
