.charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 16px 0 28px;
}

#bioproject-chart,
#accession-chart {
  width: 100% !important;
  height: 620px !important;
  border-radius: 14px;
  border: 1px solid rgba(15, 76, 92, 0.15);
  background:
    linear-gradient(160deg, rgba(12, 74, 110, 0.08), rgba(255, 255, 255, 0.92) 42%),
    radial-gradient(circle at 88% 18%, rgba(30, 64, 175, 0.09), transparent 38%),
    #fcfdff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

@media (max-width: 1320px) {
  .charts {
    grid-template-columns: 1fr;
  }

  #bioproject-chart,
  #accession-chart {
    height: 560px !important;
  }
}

@media (max-width: 768px) {
  #bioproject-chart,
  #accession-chart {
    height: 500px !important;
  }
}

.container {
  max-width: 1800px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.selector {
  margin-bottom: 20px;
}

.selector label {
  font-weight: 500;
  margin-right: 10px;
  font-size: 20px;
}
.table-container label {
  font-weight: 500;
  margin-right: 10px;
  font-size: 20px;
}

#species-select,#chromosome-select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 18px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}


.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

thead {
  background: #4a90e2;
  color: #fff;
}

th, td {
  text-align: center;
  padding: 12px;
  border-bottom: 1px solid #ddd;
  font-size: 18px;
}

tr:nth-child(even) {
  background: #f2f6fb;
}

tr:hover {
  background: #e6f0ff;
}

a {
  color: #4a90e2;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.empty {
  text-align: center;
  color: #888;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.pagination button {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  background: #4a90e2;
  color: #fff;
  cursor: pointer;
}

.pagination button:disabled {
  background: #ccc;
  cursor: not-allowed;
}
#search-input{
  min-width: 20rem;
}
#search-input,#page-size{
  padding: 0.3rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: 18px;
}

#search-btn {
  padding: 5px 15px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
}

#search-btn:hover {
  background-color: #0056b3;
}

#region-chrom,#type-filter{
  padding: 0.3rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: 18px;
}

#region-start,#region-end{
  max-width: 10rem ;
  padding: 0.3rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: 18px;
}

.bp-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    font-size: 16px;
}

/* 小箭头图标（纯 CSS 绘制） */
.bp-toggle .arrow {
    border: solid #333;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(45deg); /* ▼ */
    transition: transform 0.3s ease;
}

/* 收起状态箭头指向上 */
.bp-toggle.collapsed .arrow {
    transform: rotate(-135deg); /* ▲ */
}

/* 折叠区域（默认展开） */
.bp-collapse {
    overflow: hidden;
    height: auto;
    transition: height 0.3s ease;
}

/* 折叠后的状态 */
.bp-collapse.collapsed {
    max-height: 0;
}
