:root {
  --ingest-bg: #f4f5f7;
  --ingest-topbar-bg: #e9ebee;
  --ingest-topbar-fg: #495057;
  --ingest-border: #e5e7eb;
}

body {
  background-color: var(--ingest-bg);
}

/* Topbar: slim grey strip carrying the app identity */
.ingest-topbar {
  background-color: var(--ingest-topbar-bg);
  color: var(--ingest-topbar-fg);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 0;
}

.ingest-topbar-icon {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
}

/* Navbar: white bar with brand + primary navigation */
.ingest-navbar {
  background-color: #fff;
  border-bottom: 1px solid var(--ingest-border);
  padding: 0.6rem 0;
}

.ingest-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #212529;
}

.ingest-brand-icon {
  width: 26px;
  height: 26px;
}

.ingest-navbar .nav-link {
  color: #495057;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-bottom: 2px solid transparent;
}

.ingest-navbar .nav-link.active {
  color: #212529;
  border-bottom-color: var(--bs-primary);
}

.ingest-navbar-icon-link {
  color: #6c757d;
}

.ingest-navbar-icon-link:hover {
  color: #212529;
}

/* Breadcrumb row beneath the navbar */
.ingest-breadcrumb {
  padding-block: 0.9rem;
  font-size: 0.9rem;
}

.ingest-breadcrumb a {
  text-decoration: none;
  color: #212529;
  font-weight: 400;
}

.ingest-breadcrumb .ingest-breadcrumb-current {
  color: #6c757d;
}

.ingest-breadcrumb .ingest-breadcrumb-sep {
  color: #adb5bd;
  margin: 0 0.5rem;
}

/* Page header: icon + title + optional subtitle/action, sits above cards */
.ingest-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ingest-page-header h1 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.ingest-page-header h1 .bi {
  font-size: 1.25rem;
  color: #6c757d;
}

.ingest-page-subtitle {
  color: #6c757d;
  margin-bottom: 0;
}

/* Cards: soft shadow + radius instead of bootstrap's flat default */
.card {
  border: 1px solid var(--ingest-border);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.table-card thead.thead-light th {
  background-color: #fafafa;
  border-bottom: 1px solid var(--ingest-border);
  color: #6c757d;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  white-space: nowrap;
}

.table-card tbody tr:hover {
  background-color: #fafbfc;
}

.table-card td, .table-card th {
  padding: 0.85rem 1rem;
}

.badge {
  border-radius: 50rem;
  font-weight: 600;
  padding: 0.4em 0.75em;
}

.ingest-markdown {
  word-break: break-word;
}

.ingest-prompt-field {
  font-size: 0.8125rem;
}

.ingest-prompt-value {
  white-space: pre-wrap;
}

.ingest-markdown h1,
.ingest-markdown h2,
.ingest-markdown h3,
.ingest-markdown h4,
.ingest-markdown h5,
.ingest-markdown h6 {
  font-size: 1.15rem;
  font-weight: 600;
}
