/* =====================================
   📐 Column Widths
====================================== */
.column-title    { width: 200px; }
.column-date     { width: 90px; }
.column-citation { width: 380px; }
.column-doi      { width: 100px; }
.column-keywords { width: 360px; }
.column-details  { width: 50px; }

/* =====================================
   🧾 Citation Styling
====================================== */
.citation,
.column-citation,
td.citation,
td.column-citation {
  font-family: 'Inconsolata', monospace !important;
  font-size: 0.75rem !important; /* text-xs */
  line-height: 1.2 !important;
  white-space: pre-line;
}

/* =====================================
   📌 Table Header
====================================== */
thead th {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* =====================================
   📎 Pagination Bar
====================================== */
.pagination-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb; /* Tailwind gray-200 */
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  z-index: 50;
}

/* =====================================
   💠 Keyword Pills
====================================== */
.fcb-pill {
  margin-top: 2px;
  margin-bottom: 2px;
}

/* =====================================
   📄 DOI Cell & Popup
====================================== */
.doi-cell {
  display: inline-block;
  position: relative;
  cursor: pointer;
  font-family: 'Inconsolata', monospace;
}

.doi-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    padding: 0.5rem;
    font-family: sans-serif;
    font-size: 0.875rem;
    z-index: 10;
    white-space: nowrap;         /* prevent line breaks */
    width: auto;                 /* auto-size to content */
    min-width: max-content;      /* ensures it grows to fit text */
    max-width: none;             /* remove constraints */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  

.doi-cell:hover .doi-popup {
  display: block;
}

.doi-popup-heading-div {
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.doi-popup-heading {
  font-weight: bold;
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

.doi-popup-link, #citationBlock, .modal-doi {
  font-family: 'Inconsolata', monospace;
}

.doi-popup-link:hover {
  text-decoration: underline;
}

.doi-popup.copied strong::after {
  content: ' \2713';
  color: green;
}

/* =====================================
   📦 Table Container Padding
====================================== */
.table-container {
  padding-bottom: 60px;
}

/* =====================================
   🔍 Miscellaneous
====================================== */
.doi-preview {
  text-decoration: underline;
}

/* =====================================
   🔍 Related/Core Pill
====================================== */

.source-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    text-transform: capitalize;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    width:64px;
  }
  
  /* 🟩 Core: pastel green default, dark green hover */
  .source-pill.core {
    background-color: #e2f0d9;
    color: #000;

  }
  .source-pill.core:hover {
    background-color: #7f9c6c;
    color: #fff;
  }
  
  /* 🟦 Related: pastel teal default, dark teal hover */
  .source-pill.related {
    background-color: #d3edf3;
    color: #000;

  }
  .source-pill.related:hover {
    background-color: #1a7c9a;
    color: #fff;
  }
  
  /* 📌 Sidebar buttons: active state mimic pill hover */
  #btn-core.btn-core {
    background-color: #7f9c6c;
    color: white;
  }
  #btn-related.btn-related {
    background-color: #1a7c9a;
    color: white;
  }
  

#btn-all.btn-all {
    background: linear-gradient(90deg, #1a7c9a,#7f9c6c);
    color: white;
  }
