/* Modern Layout & Transitions */
[data-question-assistant2-target="chatContainer"] {
  transition: all 0.4s ease-in-out;

  /* Empty State Centering */
  &.empty-state {
    justify-content: center;
    align-items: center;

    .chat-input-section {
      width: 100%;
      margin-top: 0 !important;
      transform: translateY(-5vh);
      /* Slight optical adjustment upwards */
    }
  }
}

.unified-input-wrapper {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;

  &:focus-within {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: #8DD262 !important;
  }

  textarea {
    line-height: 1.5;

    &::placeholder {
      color: #adb5bd;
      font-weight: 400;
    }

    &:focus {
      outline: none;
      box-shadow: none;
    }
  }

  button:disabled {
    background-color: #e9ecef !important;
    opacity: 1;
    cursor: not-allowed;

    i {
      color: #adb5bd !important;
    }
  }

  button:not(:disabled):hover {
    transform: scale(1.05);
  }
}

.filters-tray {
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(8px);
}

/* Sidebar Refinements */
#chatHistorySidebar {
  transition: width 0.35s ease-in-out;
}

.hover-danger:hover {
  color: #dc3545 !important;
}

.assistant.list-group-item.active {
  background-color: #f3f0ff !important;
  /* Soft purple match for #6153CC */

  .text-dark,
  .list-item-link {
    color: #6153CC !important;
    font-weight: 600;
  }
}

/* Existing Typing Indicator */
.typing-indicator {
  padding: 5px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.typing-indicator .dot {
  background-color: #6153CC;
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  width: 8px;
  animation: typing 1.5s infinite ease-in-out;
}

.typing-indicator .dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-10px);
  }
}

/* Status Indicator for tool execution updates */
.assistant-status-indicator {
  padding: 8px 0;

  .status-text {
    color: #6c757d;
    font-size: 0.875rem;
    animation: fadeIn 0.3s ease-in;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}