.ai-interface-intro {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #007bff;
}

.ai-interface-intro h2 {
  margin-top: 0;
  color: #007bff;
}

.ai-form-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-response {
  margin-top: 20px;
  padding: 15px;
  background: #e9ecef;
  border-radius: 5px;
  border-left: 4px solid #28a745;
}

.ai-response.loading {
  border-left-color: #ffc107;
}

.ai-response.error {
  border-left-color: #dc3545;
  background: #f8d7da;
}

.ai-prompt-textarea {
  min-height: 120px;
  resize: vertical;
}

.additional-context-fields {
  margin-top: 15px;
}

.ai-loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.ai-interface-tabs {
  margin-bottom: 20px;
}

.ai-interface-tabs .nav-tabs {
  border-bottom: 1px solid #dee2e6;
}

.ai-interface-tabs .nav-link {
  border: 1px solid transparent;
  border-radius: 0.25rem 0.25rem 0 0;
  color: #495057;
  padding: 0.5rem 1rem;
}

.ai-interface-tabs .nav-link:hover {
  border-color: #e9ecef #e9ecef #dee2e6;
}

.ai-interface-tabs .nav-link.active {
  color: #495057;
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
}


/* Agent Card Footer */
.agent-card-footer {
  padding: 20px;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
}

/* Style the span as a button */
.agent-card-footer span {
  display: inline-block;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* Hover effects */
.agent-card-footer span:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Active/Click effect */
.agent-card-footer span:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Focus effect for accessibility */
.agent-card-footer span:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Selected state */
.ai-agent-card.selected .agent-card-footer span {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.ai-agent-card.selected .agent-card-footer span:hover {
  background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Change text when selected */
.ai-agent-card.selected .agent-card-footer span::after {
  content: ' ✓';
}

/* Ripple effect */
.agent-card-footer span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  z-index: 0;
}

.agent-card-footer span:active::before {
  width: 100%;
  height: 100%;
}

/* Ensure text is above ripple effect */
.agent-card-footer span {
  position: relative;
  z-index: 1;
}

/* Different colors for different agent types */
.content-agent .agent-card-footer span {
  background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.content-agent .agent-card-footer span:hover {
  background: linear-gradient(135deg, #5a32a3 0%, #4c2a85 100%);
  box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
}

.assessment-agent .agent-card-footer span {
  background: linear-gradient(135deg, #fd7e14 0%, #e8590c 100%);
  box-shadow: 0 4px 12px rgba(253, 126, 20, 0.3);
}

.assessment-agent .agent-card-footer span:hover {
  background: linear-gradient(135deg, #e8590c 0%, #d44806 100%);
  box-shadow: 0 6px 20px rgba(253, 126, 20, 0.4);
}

.performance-agent .agent-card-footer span {
  background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
  box-shadow: 0 4px 12px rgba(32, 201, 151, 0.3);
}

.performance-agent .agent-card-footer span:hover {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  box-shadow: 0 6px 20px rgba(32, 201, 151, 0.4);
}


/* Responsive design */
@media (max-width: 768px) {
  .agent-card-footer span {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Loading state */
.agent-card-footer span.loading {
  background: #6c757d;
  cursor: not-allowed;
  pointer-events: none;
}

.agent-card-footer span.loading::before {
  content: '⏳ ';
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Make the entire card clickable area more obvious */
.ai-agent-card:hover .agent-card-footer span {
  transform: translateY(-1px);
}
