@import "../style.css";

/* API Client Specific Layout Styles */
.api-url-bar-card {
  display: flex;
  gap: 0.75rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 6px;
  padding: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

@media(max-width: 600px) {
  .api-url-bar-card {
    flex-direction: column;
    align-items: stretch;
  }
}

.api-dropdown {
  background-color: var(--bg-input);
  border: 1px solid var(--border-muted);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.api-dropdown:focus {
  border-color: var(--tool-color);
}

.api-url-input {
  flex: 1;
  background-color: var(--bg-input);
  border: 1px solid var(--border-muted);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  outline: none;
  transition: var(--transition);
}

.api-url-input:focus {
  border-color: var(--tool-color);
}

/* Tabs buttons systems inside configuration panels */
.config-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-input);
}

.tab-btn.active {
  color: var(--tool-color);
  background-color: rgba(255, 108, 55, 0.08);
}

/* Color codes diagnostic badges overrides */
.badge.status-2xx {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.status-4xx, .badge.status-5xx {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
