/* NVIDIA Brev Console Style */
.container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  gap: 1.25rem;
  overflow: hidden;
  background-color: var(--color-bg);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(118, 185, 0, 0.08) 0%, rgba(0, 212, 255, 0.05) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.headerLeft {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.title {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.viewToggle {
  display: flex;
  gap: 0.25rem;
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.25rem;
}

.toggleButton {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--color-text-secondary);
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toggleButton:hover {
  background-color: rgba(118, 185, 0, 0.1);
  color: var(--color-text);
}

.toggleButton.active {
  background-color: var(--color-primary);
  color: #000000;
}

.select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-tertiary);
  color: var(--color-text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(118, 185, 0, 0.2);
}

.button {
  padding: 0.5rem 1.25rem;
  background-color: var(--color-primary);
  color: #000000;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.button:hover:not(:disabled) {
  background-color: var(--color-primary-light);
  box-shadow: var(--glow-primary);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Action Buttons */
.addButton {
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #000000;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.addButton:hover {
  background-color: var(--color-primary-light);
  box-shadow: var(--glow-primary);
}

.cardActions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.editButton,
.deleteButton {
  padding: 0.4rem 0.6rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
}

.editButton {
  color: var(--color-primary);
}

.editButton:hover {
  background-color: rgba(118, 185, 0, 0.1);
  transform: scale(1.05);
}

.deleteButton {
  color: var(--color-danger);
}

.deleteButton:hover {
  background-color: rgba(239, 68, 68, 0.1);
  transform: scale(1.05);
}

.sectionEditButton {
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #000000;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sectionEditButton:hover {
  background-color: var(--color-primary-light);
  box-shadow: var(--glow-primary);
}

/* Add Signal form controls */
.addSignalInput,
.addSignalSelect {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  color: var(--color-text);
  font-size: 0.95rem;
}

.addSignalSelect {
  cursor: pointer;
}

.addSignalTextarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  color: var(--color-text);
  font-size: 0.95rem;
  min-height: 96px;
  resize: vertical;
}

.addSignalCheckbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
}

/* Main content area */
.content {
  flex: 1;
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Content area for sections */
.contentArea {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 1.25rem 1.5rem 2rem;
}

.sectionPanel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sectionTableBlock {
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.managerTable {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(6, 10, 9, 0.84);
}

.observabilityInfo {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(118, 185, 0, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
  border: 1px solid rgba(118, 185, 0, 0.2);
  border-radius: var(--radius-md);
  text-align: center;
}

.observabilityInfo p {
  margin: 0.5rem 0;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.observabilityInfo code {
  padding: 0.25rem 0.5rem;
  background-color: rgba(118, 185, 0, 0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-size: 0.85rem;
}

.observabilityInfo strong {
  color: var(--color-text);
}

/* Make Categories section span all columns when in full view */
.categoriesSection {
  grid-column: 1 / -1;
}

/* Responsive layout */
@media (max-width: 1199px) {
  .mainLayout {
    flex-direction: column;
  }
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  color: var(--color-text-secondary);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.error {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-lg);
  color: var(--color-danger);
  margin: 1rem;
}

.errorIcon {
  font-size: 1.5rem;
  line-height: 1;
}

.error h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.error p {
  margin: 0;
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

.codeBlock {
  margin: 1rem;
  padding: 1.5rem;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text);
}

.codeBlock code {
  display: block;
}

/* Toggle Visibility Button for Address Masking */
.toggleVisibilityButton {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.toggleVisibilityButton:hover {
  opacity: 1;
}

/* Pricing Display Styles */
.pricingContainer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pricingItem {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.pricingLabel {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.pricingValue {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-mono);
}

.pricingUnit {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
}

.pricingDivider {
  color: var(--color-border);
  font-weight: 300;
}

/* Section Styles */
.section {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: fit-content;
}

.section:hover {
  border-color: var(--color-border-hover);
}

.sectionHeader {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(118, 185, 0, 0.05) 0%, rgba(0, 212, 255, 0.03) 100%);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.sectionTitle {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text);
  flex: 1;
}

.sectionContent {
  padding: 1.25rem;
  flex: 1;
}

/* Config Row */
.configRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.configRow:last-child {
  border-bottom: none;
}

.configLabel {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.configValue {
  font-size: 0.875rem;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-weight: 500;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background-color: rgba(118, 185, 0, 0.15);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tableMetaBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.875rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tableMetaBadgeMono {
  color: var(--color-text);
  font-family: var(--font-mono);
}

.badgelow {
  background-color: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.badgemedium {
  background-color: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
}

.badgehigh {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.badgedevelopment {
  background-color: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
}

.badgeproduction {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.badgetesting {
  background-color: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.statusBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.statusActive {
  background-color: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.statusInactive {
  background-color: rgba(156, 163, 175, 0.1);
  color: #6b7280;
}

/* Endpoint Card - Unified with Model Card structure */
.endpointCard {
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.875rem;
  transition: all var(--transition-fast);
}

.endpointCard:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(118, 185, 0, 0.1);
}

.endpointCard:last-child {
  margin-bottom: 0;
}

.endpointHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.875rem;
  background: rgba(118, 185, 0, 0.05);
  border-bottom: 1px solid var(--color-border);
}

.endpointName {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.endpointDetails {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.875rem;
}

.endpointDetails .configRow {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.endpointDetails .configRow:last-child {
  border-bottom: none;
}

.endpointDetails .configLabel {
  min-width: 100px;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.endpointDetails .configValue {
  font-size: 0.8rem;
}

.modelTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modelTag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: rgba(118, 185, 0, 0.1);
  border: 1px solid rgba(118, 185, 0, 0.2);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Model Card */
.modelCard {
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.875rem;
  transition: all var(--transition-fast);
}

.modelCard:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(118, 185, 0, 0.1);
}

.modelCard:last-child {
  margin-bottom: 0;
}

.modelCardHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.875rem;
  background: rgba(118, 185, 0, 0.05);
  border-bottom: 1px solid var(--color-border);
}

.modelCardTitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modelCardBody {
  padding: 0.875rem;
}

/* Core Settings Inline */
.coreSettingsInline {
  display: flex;
  gap: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(118, 185, 0, 0.05);
  border: 1px solid rgba(118, 185, 0, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.inlineConfigRow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.inlineConfigLabel {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.inlineConfigValue {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-mono);
  padding: 0.25rem 0.75rem;
  background-color: rgba(118, 185, 0, 0.1);
  border-radius: var(--radius-sm);
}

/* Category Grid - Two Column Layout */
.categoryGridTwoColumn {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Single column on smaller screens */
@media (max-width: 1200px) {
  .categoryGridTwoColumn {
    grid-template-columns: 1fr;
  }
}

/* Legacy category grid (keep for backward compatibility) */
.categoryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* 4 columns on extra large screens */
@media (min-width: 1800px) {
  .categoryGrid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 3 columns on large screens */
@media (min-width: 1400px) and (max-width: 1799px) {
  .categoryGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2 columns on medium screens */
@media (min-width: 900px) and (max-width: 1399px) {
  .categoryGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.categoryCard {
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
}

.categoryCard:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(118, 185, 0, 0.1);
}

.categoryHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.categoryName {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: capitalize;
}

.reasoningBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reasoninglow {
  background-color: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.reasoningmedium {
  background-color: rgba(234, 179, 8, 0.15);
  color: #ca8a04;
}

.reasoninghigh {
  background-color: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.categoryDescription {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0 0 1rem 0;
  min-height: 2.4em;
}

.categoryModels {
  background-color: rgba(118, 185, 0, 0.03);
  border: 1px solid rgba(118, 185, 0, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.categoryModelsHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.addModelButton {
  padding: 0.25rem 0.5rem;
  background: var(--color-primary);
  color: #000000;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.addModelButton:hover {
  background-color: var(--color-primary-light);
  box-shadow: var(--glow-primary);
}

.modelScoreRow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.modelScoreRow:hover {
  background-color: rgba(118, 185, 0, 0.05);
}

.modelScoreRow:last-child {
  margin-bottom: 0;
}

.modelScoreName {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-mono);
  min-width: 80px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.reasoningIcon {
  font-size: 0.8rem;
}

.scoreBar {
  flex: 1;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.scoreBarFill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, rgba(0, 212, 255, 0.8) 100%);
  transition: width 0.3s ease;
  border-radius: var(--radius-sm);
}

.scoreText {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.modelScoreActions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.emptyModelScores {
  padding: 1rem;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  font-style: italic;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-sm);
}

/* Feature Card */
.featureCard {
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: all var(--transition-fast);
}

.featureCard:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(118, 185, 0, 0.1);
}

.featureCard:last-child {
  margin-bottom: 0;
}

.featureHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(118, 185, 0, 0.05);
  border-bottom: 1px solid var(--color-border);
}

.featureTitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.featureBody {
  padding: 1rem 1.25rem;
}

/* Model Config List - Changed from Grid to List for better scalability */
.modelConfigGrid {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.modelConfigCard {
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.modelConfigCard:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(118, 185, 0, 0.1);
}

.modelConfigCard:last-child {
  margin-bottom: 0;
}

.modelConfigHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.875rem;
  background: rgba(118, 185, 0, 0.05);
  border-bottom: 1px solid var(--color-border);
}

.modelConfigName {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-mono);
}

.modelConfigBody {
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modelConfigBody .configRow {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.modelConfigBody .configRow:last-child {
  border-bottom: none;
}

.modelConfigBody .configLabel {
  min-width: 160px;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.modelConfigBody .configValue {
  font-size: 0.8rem;
}

.endpointTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.endpointTag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background-color: rgba(118, 185, 0, 0.1);
  border: 1px solid rgba(118, 185, 0, 0.2);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.piiTypesTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.piiTypeTag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: #ef4444;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badgeInfo {
  background-color: rgba(0, 212, 255, 0.1);
  color: var(--color-accent);
}

/* Reasoning Families Grid */
.reasoningFamiliesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.reasoningFamilyCard {
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.reasoningFamilyCard:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(118, 185, 0, 0.1);
}

.reasoningFamilyHeader {
  padding: 0.875rem 1.25rem;
  background: rgba(0, 212, 255, 0.05);
  border-bottom: 1px solid var(--color-border);
}

.reasoningFamilyName {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reasoningFamilyBody {
  padding: 1rem 1.25rem;
}

/* Empty State */
.emptyState {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  background: rgba(118, 185, 0, 0.03);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  font-style: italic;
}

/* Loading and Error States */
.loadingState {
  padding: 2rem;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.errorState {
  padding: 1.5rem;
  text-align: center;
  color: var(--color-danger);
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

/* System Prompt Section */
.systemPromptSection {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(118, 185, 0, 0.05);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
}

.systemPromptLabel {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.systemPromptText {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* Tools Grid - Maximum 3 columns */
.toolsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Responsive: 2 columns on medium screens */
@media (max-width: 1400px) {
  .toolsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: 1 column on small screens */
@media (max-width: 900px) {
  .toolsGrid {
    grid-template-columns: 1fr;
  }
}

.toolCard {
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
}

.toolCard:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(118, 185, 0, 0.1);
}

.toolHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.toolName {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-mono);
}

.toolDescription {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.toolFunctionDescription {
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.toolFunctionDescription strong {
  color: var(--color-primary);
  font-weight: 600;
}

.toolSimilarityDescription {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: rgba(0, 212, 255, 0.05);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
}

.similarityDescriptionLabel {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.similarityDescriptionText {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  font-style: italic;
}

.toolParameters {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.toolParametersHeader {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.toolParameter {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.4rem;
  background-color: rgba(118, 185, 0, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.toolParameter>div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.parameterName {
  font-family: var(--font-mono);
  color: var(--color-text);
  font-weight: 500;
}

.requiredBadge {
  color: var(--color-danger);
  font-weight: 700;
  margin-left: 0.25rem;
}

.parameterType {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  background-color: rgba(0, 212, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.parameterDescription {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin-top: 0.25rem;
  font-style: italic;
}

.toolTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.toolTag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background-color: rgba(118, 185, 0, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* Mobile Responsive - Additional optimizations */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
    gap: 1rem;
  }

  .header {
    padding: 0.875rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .headerLeft {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .title {
    font-size: 1.125rem;
  }

  .viewToggle {
    width: 100%;
  }

  .toggleButton {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .content {
    overflow-x: hidden; /* Prevent horizontal scroll on main container */
  }

  .contentArea {
    padding: 0.75rem;
  }

  /* Ensure cards don't overflow */
  .section {
    overflow-x: auto;
  }

  .sectionHeader {
    padding: 0.875rem 1rem;
    flex-wrap: wrap;
  }

  .sectionTitle {
    font-size: 0.9375rem;
  }

  .sectionContent {
    padding: 1rem;
  }

  /* Category cards */
  .categoryCard {
    padding: 1rem;
  }

  .categoryName {
    font-size: 0.9375rem;
  }

  .categoryDescription {
    font-size: 0.75rem;
  }

  /* Model cards */
  .modelCard,
  .endpointCard,
  .featureCard {
    margin-bottom: 0.75rem;
  }

  .modelCardHeader,
  .endpointHeader,
  .featureHeader {
    padding: 0.625rem 0.75rem;
  }

  .modelCardBody,
  .endpointDetails,
  .featureBody {
    padding: 0.75rem;
  }

  /* Config rows */
  .configRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.625rem 0;
  }

  .configLabel,
  .configValue {
    font-size: 0.8125rem;
  }

  /* Inline config - Hide Default Model and Default Reasoning on mobile */
  .coreSettingsInline {
    display: none;
  }

  /* Tools grid */
  .toolsGrid {
    grid-template-columns: 1fr;
  }

  .toolCard {
    padding: 1rem;
  }

  .toolName {
    font-size: 0.9375rem;
  }

  .toolDescription,
  .toolFunctionDescription {
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.75rem;
  }

  .header {
    padding: 0.75rem;
  }

  .title {
    font-size: 1rem;
  }

  .toggleButton {
    font-size: 0.75rem;
    padding: 0.5rem;
  }

  .contentArea {
    padding: 0.5rem;
  }

  .sectionHeader {
    padding: 0.75rem;
  }

  .sectionTitle {
    font-size: 0.875rem;
  }

  .sectionContent {
    padding: 0.75rem;
  }

  .categoryCard,
  .modelCard,
  .endpointCard,
  .featureCard,
  .toolCard {
    padding: 0.75rem;
  }

  .categoryName,
  .modelCardTitle,
  .toolName {
    font-size: 0.875rem;
  }

  .badge {
    font-size: 0.625rem;
    padding: 0.2rem 0.5rem;
  }

  /* coreSettingsInline is already hidden on mobile, no need for additional styles */
}
