/* ==========================================================================
   1. Base Overrides & Resets
   ========================================================================== */
main.p-strip {
  background-color: #ffffff;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

/* ==========================================================================
   2. Navigation & Breadcrumbs
   ========================================================================== */
.p-breadcrumbs {
  min-height: 1.5rem;
  margin-bottom: 1rem;
}

.p-breadcrumbs__item,
.p-breadcrumbs__item a,
#sbom-title,
.p-card__title {
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.navigation-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navigation-logo-img {
  height: 32px;
  width: 32px;
}

/* ==========================================================================
   3. Page Sections & Layout Grid
   ========================================================================== */
.sbom-downloads-section {
  margin-top: 1rem;
}

.sbom-explorer-heading-col {
  padding-top: 6rem;
}

.table-container {
  overflow-x: auto;
}

/* ==========================================================================
   4. Headers, Titles & Subtitles
   ========================================================================== */
.sbom-subtitle {
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 400;
  color: #525252;
}

/* ==========================================================================
   5. Cards Component
   ========================================================================== */
.p-card {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.p-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #aeaeae;
}

.p-card__content {
  flex-grow: 1;
}

/* ==========================================================================
   6. Spinners & Animations
   ========================================================================== */
#sbom-loading .p-icon--spinner {
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ==========================================================================
   7. Interactive Controls & Buttons
   ========================================================================== */
.p-button-group .p-button.is-active {
  background-color: #e95420 !important;
  color: white !important;
  border-color: #e95420 !important;
}

/* ==========================================================================
   8. Search & Filter Bar
   ========================================================================== */
.sbom-search-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.sbom-filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sbom-search-wrap {
  flex: 1 1 400px;
}

.sbom-search-form {
  margin-bottom: 0;
}

.sbom-filter-dropdown-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sbom-filter-label {
  margin-bottom: 0;
  white-space: nowrap;
  font-weight: 400;
}

.sbom-filter-select {
  margin-bottom: 0;
  min-width: 150px;
}

.sbom-filter-select--license {
  min-width: 180px;
}

/* ==========================================================================
   9. Tables & Data Display
   ========================================================================== */
.sbom-table {
  table-layout: auto !important;
  width: 100% !important;
}

.sbom-table th,
.sbom-table td {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.sbom-table th:nth-child(4),
.sbom-table td:nth-child(4) {
  white-space: normal !important;
  word-break: break-word;
}

.sbom-table td:nth-child(4) .p-chip {
  margin-top: 2px;
  margin-bottom: 2px;
  display: inline-flex;
}



/* ==========================================================================
   10. Dynamic Visibility (Initial State)
   ========================================================================== */
#metadata-section,
#search-section,
#sbom-loading,
#sbom-error,
#sbom-table {
  display: none;
}

/* ==========================================================================
   11. Footer Section
   ========================================================================== */
footer.p-strip--dark {
  background-color: #2d2d2d !important;
  color: #b6b6b6 !important;
}

footer.p-strip--dark h2 {
  color: #eaeaea !important;
  font-weight: 500 !important;
}

footer.p-strip--dark p,
footer.p-strip--dark li,
footer.p-strip--dark span {
  color: #b6b6b6 !important;
}

footer.p-strip--dark a,
footer.p-strip--dark a.is-dark {
  color: rgb(102, 153, 204) !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

footer.p-strip--dark a:hover,
footer.p-strip--dark a.is-dark:hover {
  color: #e95420 !important; /* Ubuntu Orange */
  text-decoration: underline !important;
}
