:root {
  --racing-green: #004225;
}

.bg-primary,
.navbar.bg-primary {
  background-color: var(--racing-green) !important;
}

.btn-primary {
  background-color: var(--racing-green);
  border-color: var(--racing-green);
}

.btn-primary:hover {
  background-color: #005935;
  border-color: #005935;
}

a.nav-link.active,
a.nav-link:hover {
  color: #b5e48c !important;
}

footer {
  color: #ccc;
  background-color: #111 !important;
  border-top: 1px solid #222 !important;
}
footer small {
  color: #aaa;
}

/* Sortable table headers */
.sortable-header {
  cursor: pointer;
  user-select: none;
}

.sortable-header:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.sortable-header:focus {
  outline: 2px solid var(--racing-green);
  outline-offset: -2px;
}

/* Clickable table rows */
.table-clickable tbody tr {
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.table-clickable tbody tr:hover {
  background-color: rgba(0, 66, 37, 0.08);
}

/* Prevent action column from triggering row click */
.table-clickable .action-cell {
  cursor: default;
}

/* Search term highlighting */
mark.highlight {
  background-color: #fff59d;
  color: #000;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 500;
  border: 1px solid #f9a825;
}

/* Status badges use Bootstrap's native badge classes */

/* Truncated quote with ellipsis */
.quote-snippet {
  max-width: min(400px, 80vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

/* Tooltip customization */
.tooltip-inner {
  max-width: 300px;
  text-align: left;
}

/* Modal for full quote display */
.quote-modal-content {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Filter pills styling */
.filter-pill {
  border-radius: 20px;
  padding: 0.375rem 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.filter-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-pill.active {
  font-weight: 600;
}

.filter-pill .badge {
  font-size: 0.7rem;
  padding: 0.25em 0.5em;
  font-weight: 600;
}
