/* Intelligence Collection tab styles */
.ai-container {
  padding: 20px 0;
}

.ai-intro {
  margin-bottom: 20px;
}

.ai-intro p {
  margin-bottom: 10px;
}

.ai-intro ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.ai-intro li {
  margin-bottom: 5px;
}

.ai-question-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.ai-question-container label {
  font-weight: 500;
  min-width: 120px;
}

.ai-question-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  min-width: 200px;
}

.ai-answer {
  min-height: 200px;
  padding: 20px;
  border-radius: 5px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
}

/* Disabled button state for Analyze button */
#btn-get-answer:disabled {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
  opacity: 0.65;
  pointer-events: none;
}

#btn-get-answer:disabled svg {
  opacity: 0.7;
}

/* Loading state for Analyze button */
#btn-get-answer.loading {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  cursor: wait !important;
}

#btn-get-answer.loading::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Tag-based questions styles */
.tag-questions-section {
  margin: 20px 0;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.tag-questions {
  margin: 20px 0;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.tag-questions-content {
  margin-top: 10px;
}

.tag-questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 15px;
}

.tag-question-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tag-question-btn:hover {
  background: linear-gradient(135deg, #218838 0%, #1ea088 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tag-question-btn .tag-icon {
  font-size: 16px;
  opacity: 0.9;
}

.tag-question-btn .question-text {
  flex: 1;
  font-weight: 500;
}

.tag-questions-empty {
  text-align: center;
  color: #6c757d;
  padding: 20px;
}

.tag-questions-empty p {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.tag-questions-empty small {
  color: #8c8c8c;
  font-size: 14px;
}

.refresh-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.refresh-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.refresh-btn span {
  font-size: 16px;
}

/* Animation for when tag questions appear */
.tag-questions.show,
.tag-questions-section.show {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
