.navbar{
    border-bottom:1px solid lightgray;
}
.marginTop {
  margin-top: 15vh;
}
.invisible {
	display: none;
}
.marginTable{
    margin-top:1vh;
}

#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

input.form-control.search-input {
    display: none;
}

.api-docs-frame {
  min-height: calc(100vh - 190px);
}

.mol-container {
  width: 60%;
  height: 400px;
  position: relative;
}
#toolbar {
  margin: 0;
}

.pt-3-half {
padding-top: 1.4rem;
}
.input-group-append{
}

/* Table styles for user_area.html */
.table-container {
  max-height: 70vh;
  overflow: auto;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.dynamic-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px;
}

.dynamic-table th {
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  z-index: 10;
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

.dynamic-table td {
  padding: 8px;
  border-bottom: 1px solid #dee2e6;
  vertical-align: middle;
}

.dynamic-table tr:hover {
  background-color: #f5f5f5;
}

.dynamic-table .actions {
  white-space: nowrap;
}

.dynamic-table .actions .btn {
  margin: 0 2px;
  padding: 3px 6px;
}

.table-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* =====================================================
 * Phase 3 - Editorial + Industrial Visual Direction
 * For academic/scientific audience (bioinformatics researchers)
 * ===================================================== */

/* Zebra striping for readability */
.dynamic-table tbody tr:nth-child(odd) {
  background-color: #fafafa;
}

.dynamic-table tbody tr:nth-child(even) {
  background-color: #ffffff;
}

.dynamic-table tbody tr:hover {
  background-color: #f0f0f0;
}

/* Monospace for mutation codes */
.mutation-code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Status badges for validation queue */
.badge-pending {
  background-color: #ffc107;
  color: #000;
}

.badge-approved {
  background-color: #28a745;
  color: #fff;
}

.badge-rejected {
  background-color: #dc3545;
  color: #fff;
}

.badge-stopped {
  background-color: #fd7e14;
  color: #fff;
}

/* Summary cards for reviewers */
.summary-card {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  text-align: center;
}

.summary-card h5 {
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.summary-card .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #212529;
  line-height: 1;
}

/* Loading spinner for MongoDB queries */
.spinner-border {
  width: 1.5rem;
  height: 1.5rem;
}

.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.loading-overlay.active {
  display: flex;
}

/* Responsive tables - horizontal scroll for mobile */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.875rem;
  }

  .summary-card {
    padding: 1rem;
  }

  .summary-card .number {
    font-size: 2rem;
  }
}

/* =====================================================
 * Pipeline Admin Tab
 * ===================================================== */

/* Horizontal Stepper */
.pipeline-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step-connector {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #dee2e6;
  z-index: 0;
  transition: background-color 0.4s ease;
}

.step-item.step-done    .step-connector { background-color: #28a745; }
.step-item.step-error   .step-connector { background-color: #dc3545; }
.step-item.step-stopped .step-connector { background-color: #fd7e14; }

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.step-item.step-running .step-circle,
.step-circle.step-running { border-color: #ffc107; background-color: #fff8e1; }
.step-item.step-done    .step-circle,
.step-circle.step-done    { border-color: #28a745; background-color: #e8f5e9; }
.step-item.step-error   .step-circle,
.step-circle.step-error   { border-color: #dc3545; background-color: #fdecea; }
.step-item.step-stopped .step-circle,
.step-circle.step-stopped { border-color: #fd7e14; background-color: #fff3e0; }

.step-label {
  margin-top: 8px;
  font-size: 0.72rem;
  text-align: center;
  color: #6c757d;
  line-height: 1.3;
}

.step-item.step-running .step-label { color: #856404; font-weight: 600; }
.step-item.step-done    .step-label { color: #155724; }
.step-item.step-error   .step-label { color: #721c24; }
.step-item.step-stopped .step-label { color: #9c4a10; }

/* Terminal Log Panel */
.log-panel {
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Monaco', 'Menlo', 'Consolas', 'Ubuntu Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  height: 320px;
  overflow-y: auto;
  padding: 12px 16px;
  border-radius: 0 0 6px 6px;
}

.log-panel .log-line {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 1px 0;
}

.log-panel::-webkit-scrollbar       { width: 6px; }
.log-panel::-webkit-scrollbar-track { background: #2d2d2d; }
.log-panel::-webkit-scrollbar-thumb { background: #555; border-radius: 3px; }

/* Merged Stage Progress blocks */
.stage-progress-row {
  gap: 0.25rem;
}

.stage-block {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.25rem;
}

.stage-block .step-circle {
  width: 42px;
  height: 42px;
}

.stage-block.step-running .step-circle { border-color: #ffc107; background-color: #fff8e1; }
.stage-block.step-done    .step-circle { border-color: #28a745; background-color: #e8f5e9; }
.stage-block.step-error   .step-circle { border-color: #dc3545; background-color: #fdecea; }
.stage-block.step-stopped .step-circle { border-color: #fd7e14; background-color: #fff3e0; }

.stage-block-name {
  font-size: 0.72rem;
  line-height: 1.2;
  margin-bottom: 2px;
}

.stage-block .stage-count {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.stage-arrow {
  flex: 0 0 auto;
  font-size: 0.9rem;
  padding: 0 0.1rem;
}

/* Pipeline history table row colouring */
.pipeline-row-done    { background-color: #f0fff4 !important; }
.pipeline-row-error   { background-color: #fff5f5 !important; }
.pipeline-row-running { background-color: #fffde7 !important; }
.pipeline-row-stopped { background-color: #fff8f0 !important; }

/* Responsive: stack stepper vertically on small screens */
@media (max-width: 576px) {
  .pipeline-stepper { flex-direction: column; gap: 1rem; }
  .step-connector   { display: none; }
}

/* =====================================================
 * Home v2 layout (About absorbed into home + News column)
 * ===================================================== */

.nav-logo {
  height: 46px;
  width: auto;
  display: block;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6c757d;
  margin: 0 0 10px;
}

.home-cols {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 0 40px;
}

.home-right {
  border-left: 1px solid #e3e6ea;
  padding-left: 40px;
}

.home-abstract {
  font-size: 15px;
  color: #333;
  max-width: 66ch;
  margin: 0 0 18px;
}

.pubs-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  font-size: 13.5px;
  color: #6c757d;
  border-left: 3px solid #8f1414;
}

.pubs-list li {
  padding: 3px 0 3px 12px;
  margin-bottom: 7px;
}

.pubs-list li:last-child {
  margin-bottom: 0;
}

.pubs-list b {
  color: #1b1b1f;
  font-weight: 600;
}

.tag-preprint {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: #fdf0e6;
  color: #9a5b16;
  border-radius: 4px;
  padding: 1px 6px;
  margin: 0 4px;
  vertical-align: 1px;
}

.stats-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 26px;
}

.stat-box {
  flex: 1 1 128px;
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.stat-box b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #0d6efd;
  line-height: 1.1;
}

.stat-box small {
  display: block;
  font-size: 11.5px;
  color: #6c757d;
  margin-top: 3px;
}

.stat-box .delta {
  display: inline-block;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 700;
  background: #e6f4ea;
  color: #1a7f37;
  border-radius: 4px;
  padding: 1px 6px;
}

.home-cta p {
  font-size: 14px;
  color: #6c757d;
  margin: 0 0 9px;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  padding: 13px 0;
  border-bottom: 1px solid #e3e6ea;
}

.news-list li:first-child {
  padding-top: 0;
}

.news-list time {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #8f1414;
  margin-bottom: 3px;
}

.news-list h3 {
  font-size: 14px;
  margin: 0 0 3px;
  font-weight: 600;
}

.news-list p {
  font-size: 13px;
  color: #6c757d;
  margin: 0;
}

.news-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
}

/* =====================================================
 * About page
 * ===================================================== */

.about-page {
  color: #1b1b1f;
}

.about-hero {
  padding: 56px 0 42px;
  border-bottom: 1px solid #e3e6ea;
  background: #f8f9fb;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 42px;
}

.about-hero h1 {
  max-width: 760px;
  font-size: 38px;
  line-height: 1.13;
  font-weight: 700;
  margin: 0 0 16px;
}

.about-lead {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.65;
  color: #4b5563;
  margin: 0;
}

.about-logo-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  justify-items: center;
  padding: 28px;
  border: 1px solid #e0e4e9;
  border-radius: 8px;
  background: #fff;
}

.about-logo-panel img {
  max-width: 230px;
  max-height: 70px;
  object-fit: contain;
}

.about-logo-panel span {
  width: 100%;
  height: 1px;
  background: #d8dde4;
}

.about-band {
  padding: 38px 0;
  border-bottom: 1px solid #e3e6ea;
}

.about-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.about-summary-grid h2,
.about-version h2,
.about-connect h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 10px;
}

.about-summary-grid p,
.about-version p {
  font-size: 15px;
  line-height: 1.65;
  color: #5b6470;
  margin: 0;
}

.about-version-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.about-version {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-left: 4px solid #8f1414;
  background: #fafbfc;
}

.institution-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 38px;
}

.institution-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  background: #fff;
  color: #333b45;
  font-weight: 700;
}

.about-connect-links a {
  font-weight: 600;
  text-decoration: none;
}

.about-connect {
  padding: 28px 0;
  border-top: 1px solid #e3e6ea;
  background: #f8f9fb;
}

.about-connect-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.about-connect-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

/* Full /news page — same visual language as .news-list, scaled up */
.news-page-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-page-list li {
  padding: 26px 0;
  border-bottom: 1px solid #e3e6ea;
}

.news-page-list li:first-child {
  padding-top: 0;
}

.news-page-list li:last-child {
  border-bottom: 0;
}

.news-page-list time {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #8f1414;
  margin-bottom: 6px;
}

.news-page-list h3 {
  font-size: 19px;
  margin: 0 0 8px;
  font-weight: 700;
  color: #1b1b1f;
}

.news-page-list p {
  font-size: 15px;
  color: #6c757d;
  margin: 0;
  max-width: 66ch;
}

@media (max-width: 860px) {
  .home-cols {
    grid-template-columns: 1fr;
  }
  .home-right {
    border-left: 0;
    border-top: 1px solid #e3e6ea;
    padding-left: 0;
    padding-top: 26px;
    margin-top: 20px;
  }

  .about-hero-grid,
  .about-summary-grid {
    grid-template-columns: 1fr;
  }

  .about-hero h1 {
    font-size: 30px;
  }

  .about-version,
  .about-connect-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .institution-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-connect-links {
    justify-content: flex-start;
  }
}

/* Footer logos (PathoTrack + Comp2Bio) */
.footer-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-logos img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.footer-logos-divider {
  width: 1px;
  height: 44px;
  background: #ccd2d9;
}
