/* Evidence Summary Styles */

/* Add this to your CSS file or style tag */
.custom-popover {
  max-width: 900px !important;  /* Adjust maximum width as needed */
  font-size: 1.5rem !important; /* Increase base font size */
}

.custom-popover .popover-header {
  font-size: 1.6rem !important; /* Header font size */
  padding: 1rem 1.25rem;        /* Increase header padding */
}

.custom-popover .popover-body {
  padding: 1.5rem;              /* Increase body padding */
  font-size: 1.5rem !important; /* Body text size */
  line-height: 1.6;             /* Improve readability */
}

/* If your citation content needs specific sizing */
.citation-string {
  max-height: 70vh;             /* Limit height with viewport units */
  overflow-y: auto;             /* Add scroll if content is very long */
  text-wrap: wrap;
}

.abbreviated-citation-string {
  font-size: 1.4rem !important;
  max-height: 70vh;             /* Limit height with viewport units */
  overflow-y: auto;             /* Add scroll if content is very long */
  text-wrap: wrap;
}
.reference-info{
  margin-bottom: 0.25rem !important;
  text-indent: -2.6rem;
  padding-left: 2.6rem;
}

.reference-info .bg-secondary {
  background-color: #32739D !important;
}

.references .badge-references.me-1 {
  background-color: #32739D !important;
}

.content {
  padding-left: 7%;
  padding-right: 7%;
}

.clingen-gradient {
  background: linear-gradient(to right, rgb(22,55,96) 0%,rgb(30,81,131) 50%,rgb(15,173,176) 100%);
}

.header-box {
  background: white;
  width: 100%;
}

.header-card-title {
  font-size: 0.7em;
}

.header-card-icon {
  height: 0.7em;
}

.no-underline-link {
  text-decoration: none;
  color: #5FA2DD;
}

.no-underline-link:hover {
  text-decoration: underline;
}

.csv {
  display: inline;
  list-style: none;
  padding: 0;
}

.csv li {
  display: inline;
}

.csv li:after {
  content: ", ";
}

.csv li:last-child:after {
  content: "";
}

.csv a {
  color: #5FA2DD;
  text-decoration: none;
}

.csv a:hover {
  text-decoration: underline;
}

thead.clingen-table-head tr th {
  color: #f8f9fa;
  background-color: #6c757d;
}

.table {
  --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
}

.card {
  margin-bottom: 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-color: #dee2e6;
}

.card-report {
  margin-bottom: 1rem;
  box-shadow: none;
  border: none;
}

/* Card Headers */
.card-header {
  background-color: white;
  border-bottom-color: #dee2e6;
}

/* Actionability Rationale Panel */
.rationale-panel {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.rationale-panel .scoring-table {
  width: 100%;
  margin-top: 1rem;
}

.rationale-panel .scoring-table th {
  color: #f8f9fa;
  background-color: #6c757d;
  padding: 0.75rem;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid #dee2e6;
}

.rationale-panel .scoring-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #dee2e6;
  vertical-align: middle;
}

.rationale-panel .curator-info {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

/* Tab Navigation */
.nav-tabs {
  border-bottom: 2px solid #dee2e6;
  margin-bottom: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  padding: 0.5rem 0.5rem 0 0.5rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-tabs .nav-link {
  color: #2c3e50;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 1rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
  color: #16365f;
  background-color: rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link.active {
  color: #16365f;
  background-color: white;
  border-bottom: 2px solid #16365f;
}

/* Tab Content */
.tab-content {
  padding: 1.5rem;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 0 0 0.25rem 0.25rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-top: -1rem;
}

/* Content Sections */
.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #dee2e6;
}

/* Evidence Tables */
.evidence-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.evidence-table th {
  color: #f8f9fa;
  background-color: #6c757d;
  padding: 0.75rem;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid #dee2e6;
}

.evidence-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #dee2e6;
  vertical-align: top;
}

.evidence-table .evidence-type {
  font-weight: 500;
  color: #495057;
  width: 200px;
}

/* Reference Links */
.reference-link {
  color: #5FA2DD;
  text-decoration: none;
  transition: all 0.2s ease;
  text-indent: initial;
}

.reference-link:hover {
  text-decoration: underline;
  color: #4a8cbf;
}

.reference-list {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid #dee2e6;
}

/* Footer */
.footer {
  border-top: 1px solid #dee2e6;
  padding: 1rem 0;
}

.footer a {
  color: #5FA2DD;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.clingen-terms {
  margin-bottom: 1rem;
}

.funding-text {
  margin-bottom: 0.5rem;
  color: #495057;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.released {
  background-color: #d4edda;
  color: #155724;
}

.status-badge.incomplete {
  background-color: #fff3cd;
  color: #856404;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .metadata-panel {
    padding: 1rem;
  }
  
  .rationale-panel {
    padding: 1rem;
  }
  
  .nav-tabs .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .evidence-table .evidence-type {
    width: 150px;
  }
}

@media (max-width: 768px) {
  .title-panel {
    padding: 1rem 0;
  }
  
  .title-panel .status-badges,
  .title-panel .version-info {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .evidence-table {
    display: block;
    overflow-x: auto;
  }
  
  .evidence-table .evidence-type {
    width: 120px;
  }
  
  .nav-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  
  .nav-tabs .nav-link {
    white-space: nowrap;
  }
}

@media (max-width: 576px) {
  .metadata-panel .id-badge {
    display: block;
    margin-top: 0.25rem;
  }
  
  .content-section h2 {
    font-size: 1.25rem;
  }
}

/* Subsections */
.section-container {
  margin-bottom: 2rem;
}

.subsection {
  margin-bottom: 2rem;
}

.subsection-header {
  font-size: 16px;
  color: #32739D;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.subsection-content {
  padding-left: 1rem;
}

.references {
  margin-top: 0.5rem;
}

.rptTitle {
  margin-bottom : 1rem;
}

.rptSubTitle {
  display    : block;
  margin-top : 0.5rem;
}

.links a {
  margin          : 0 0.5rem;
  text-decoration : none;
}

.links a:hover {
  text-decoration : underline;
}

.status {
  margin-top : 1rem;
}

.attr-value {
  margin-bottom : 0.5rem;
}

.attr {
  font-weight  : bold;
  margin-right : 0.5rem;
}

.nav-tabs {
  margin-bottom : 1rem;
}

.tab-content {
  padding    : 1rem;
  border     : 1px solid #dee2e6;
  border-top : none;
}

.aci-interface-img {
  max-width: 70px;
  height: auto;
}

.gene-entry {
  white-space: nowrap;
  display: inline-block; /* Ensures padding/margins work correctly */
  margin-right: 4px; /* Optional: Adds slight spacing after comma */
}

.footnotes {
  font-size : 0.9em;
  margin-left: 1.5em;
}

.footnote-entry {
  margin-left: 1em;
}

.footnote.inline {
  font-size: 0.5em;
  padding: 0;
  position: relative;
  top: -1em;
  left: -0.5em;
}

.footnote.inline.score {
  position: relative;
  top: -1.3em;
  left: 0.2em;
}

.showRefBtn {
  cursor: pointer;
  color: blue;
  background: none;
  border: none;
  text-decoration: none;
}

.references .fa-angle-double-right, .references .fa-angle-double-down {
  color: #32739D;
  position: relative;
  top: 3px;
  font-size: 1.75rem;
  text-decoration: none;
}

.ref-content {
  margin-left: 1rem;
  border: 1px solid gray;
  background-color: #f5f5f5;
  padding: 0.25rem 0.5rem;
}

.hidden-ref {
  display: none;
  margin-left: 1rem;
  border: 1px solid gray;
  background-color: #f5f5f5;
  padding: 0.25rem 0.5rem;
}

.hidden-scoring-key {
  display: none;
  margin-left: 0.5rem;
  padding: 0.25rem 0.5rem;
}

.sectionName {
  margin-top: 1.1rem;
  margin-bottom: 0.5rem ;
}

.evidence-nav-tab {
  font-size: 14px;
  /*background: #f2f7fc;*/
}

.paragraph-separator {
  margin-bottom: 1rem;
}

.citation-actions {
  display: flex ;
  font-size: 1.4rem;
  justify-content: space-between;
}

.citation-style-label {
  margin-top: 0;
  max-width: none;
  display: inline-block;
  margin-right: .5rem;
  color: #212121;
  line-height: 4.2rem;
  margin-bottom : 0px;
  font-weight: normal;
}

.toast {
  font-size: 1.8rem; /* Larger text */
  max-width: 400px; /* Wider toast */
}

.toast-body {
  padding: 15px 20px; /* More padding */
}

.bullet-indent {
  margin-left: 1.5rem;
}

.card-title {
  font-weight: bold;
}
