/* ========================================
 * Endpoint Tools Grid Styles
 * ======================================== */
.endpoint-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
}

.endpoint-tool-card {
  display: flex;
  flex-direction: column;
  padding: 0.875rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 100px;
}

.endpoint-tool-card:hover {
  background: hsl(var(--hover));
  border-color: hsl(var(--indigo) / 0.5);
  box-shadow: 0 2px 8px hsl(var(--indigo) / 0.1);
  transform: translateY(-1px);
}

.endpoint-tool-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.endpoint-tool-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsl(var(--indigo));
  box-shadow: 0 0 6px hsl(var(--indigo) / 0.5);
  flex-shrink: 0;
}

.endpoint-tool-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  font-family: 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-tool-desc {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.endpoint-tool-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.endpoint-tool-params {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted) / 0.5);
  padding: 0.1875rem 0.375rem;
  border-radius: 0.25rem;
}

.endpoint-tool-required {
  font-size: 0.5625rem;
  color: hsl(var(--warning));
  background: hsl(var(--warning) / 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  font-weight: 500;
}

/* ========================================
 * Tool Detail Modal Styles
 * ======================================== */
.tool-detail-modal {
  padding: 0.5rem 0;
}

.tool-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--border));
}

.tool-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: hsl(var(--indigo) / 0.1);
  color: hsl(var(--indigo));
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.tool-detail-title h3 {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.375rem 0;
  font-family: 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
}

.tool-detail-badge {
  font-size: 0.625rem;
  font-weight: 500;
  padding: 0.1875rem 0.5rem;
  background: hsl(var(--indigo) / 0.1);
  color: hsl(var(--indigo));
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tool-detail-desc {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.tool-detail-params h4,
.tool-detail-usage h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tool-detail-params h4 i,
.tool-detail-usage h4 i {
  color: hsl(var(--muted-foreground));
}

.tool-params-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.tool-param-item {
  padding: 0.75rem;
  background: hsl(var(--muted) / 0.3);
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
}

.tool-param-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
  flex-wrap: wrap;
}

.tool-param-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

.tool-param-type {
  font-size: 0.625rem;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
}

.tool-param-required {
  font-size: 0.5625rem;
  font-weight: 600;
  color: hsl(var(--destructive));
  background: hsl(var(--destructive) / 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.tool-param-optional {
  font-size: 0.5625rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
}

.tool-param-desc {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

.tool-param-default,
.tool-param-enum {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.tool-param-default code,
.tool-param-enum code {
  font-size: 0.6875rem;
  background: hsl(var(--muted));
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  color: hsl(var(--foreground));
}

.tool-detail-no-params {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: hsl(var(--muted) / 0.3);
  border: 1px dashed hsl(var(--border));
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
}

.tool-detail-usage {
  margin-top: 1.25rem;
}

.tool-usage-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: hsl(var(--muted) / 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  overflow-x: auto;
}

.tool-usage-code code {
  font-size: 0.75rem;
  font-family: 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  color: hsl(var(--foreground));
  white-space: nowrap;
  flex: 1;
}

.tool-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 0.25rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.tool-copy-btn:hover {
  background: hsl(var(--hover));
  color: hsl(var(--foreground));
  border-color: hsl(var(--primary) / 0.3);
}

