/* NVIDIA Style Table Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(118, 185, 0, 0.05) 0%, rgba(0, 212, 255, 0.03) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  gap: 1rem;
}

.embedded {
  padding: 0;
  margin-bottom: 0.85rem;
  border: none;
  border-radius: 0;
  background: transparent;
}

.titleSection {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: 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;
  white-space: nowrap;
  flex-shrink: 0;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

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

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

.searchInput::placeholder {
  color: var(--color-text-secondary);
}

.addButton {
  padding: 0.5rem 1.25rem;
  background: 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);
  white-space: nowrap;
}

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

.secondaryButton {
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.secondaryButton:hover {
  border-color: rgba(0, 212, 255, 0.28);
  background: rgba(0, 212, 255, 0.08);
}

.embedded .title {
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.embedded .badge {
  border: 1px solid rgba(118, 185, 0, 0.18);
  background: rgba(118, 185, 0, 0.1);
}

.embedded .searchInput {
  width: min(320px, 32vw);
  background: var(--color-bg-secondary);
}

.embedded .secondaryButton,
.embedded .addButton {
  min-height: 42px;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .titleSection {
    justify-content: space-between;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .searchInput {
    width: 100%;
  }

  .addButton,
  .secondaryButton {
    width: 100%;
  }
}
