/* Agent-specific styles */

.main-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.main-nav a {
  text-decoration: none;
  color: var(--secondary-color);
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  color: var(--primary-color);
  background-color: rgba(0, 0, 0, 0.05);
}

.main-nav a.active {
  color: var(--primary-color);
  font-weight: bold;
  border-bottom: 2px solid var(--primary-color);
}

.agent-container {
  margin-bottom: 30px;
}

.agent-description {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.agent-description h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.agent-description ul {
  margin-left: 20px;
  margin-top: 10px;
}

.agent-description li {
  margin-bottom: 5px;
}

#agent-search-input {
  width: 100%;
  height: 80px;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
  resize: none;
  font-family: inherit;
  margin-bottom: 10px;
}

#agent-search-button {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

#agent-search-button:hover {
  background-color: var(--secondary-color);
}

.agent-info-container {
  margin: 20px 0;
}

.agent-info-box {
  background-color: #f0f4f5;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.agent-info-box h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 16px;
}

#intent-display {
  font-family: monospace;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.clarification-box {
  background-color: #fff8e1;
  border: 1px solid #ffecb3;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
}

.clarification-form {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

#clarification-input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
}

#clarification-submit {
  padding: 10px 20px;
  background-color: var(--warning-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

#clarification-submit:hover {
  background-color: #e68a00;
}

.hidden {
  display: none;
}

.result-item {
  display: flex;
  flex-direction: column;
}

.result-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.result-title {
  font-weight: bold;
  color: var(--primary-color);
}

.result-file-info {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.result-file-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.tag {
  background-color: var(--accent-color);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.auto-tag {
  background-color: var(--secondary-color);
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .clarification-form {
    flex-direction: column;
  }
  
  #clarification-submit {
    width: 100%;
  }
}
