
main {
    flex-direction: column;
    height: 100vh;
}

.selector {
  max-width: 1200px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  padding: 18px 22px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(79, 109, 212, 0.08);
  margin: 0 auto 18px auto;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f5f0ff 100%);
}

.selector label {
  color: #3a4f8a;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-right: 0;
  font-size: 20px;
}

#species-select {
  min-width: 200px;
  padding: 8px 36px 8px 12px;
  border: 2px solid #d0d7f0;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6fc4' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none;
  appearance: none;
  color: #333;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}


.table-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);
}

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,#page-size{
  width: auto;
  min-width: 200px;
  padding: 8px 14px;
  border: 2px solid #d0d7f0;
  border-radius: 10px;
  background: #fff;
  color: #333;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  font-size: 20px;
  transition: all 0.25s ease;
}

#search-btn {
  padding: 9px 24px;
  background: linear-gradient(135deg, #5b8def, #4a7de0);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 10px rgba(79, 109, 212, 0.25);
  transition: all 0.25s ease;
}

#search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 109, 212, 0.32);
  background: linear-gradient(135deg, #4a7de0, #3e6dd4);
}

#search-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(79, 109, 212, 0.2);
}

#species-select:hover,
#search-input:hover {
  border-color: #8fa4e8;
  box-shadow: 0 2px 10px rgba(79, 109, 212, 0.12);
}

#species-select:focus,
#search-input:focus {
  outline: none;
  border-color: #5b6fd4;
  box-shadow: 0 0 0 3px rgba(91, 111, 212, 0.12);
}

#search-input::placeholder {
  color: #aab2c5;
  font-size: 20px;
}

#gene-input,#page-input{
  font-size: 18px;
}

.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 999; /* 保证在最上层 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto; /* 超长内容可以滚动 */
    overflow-x: hidden; /* 禁止水平滚动 */
    background-color: rgba(0,0,0,0.5); /* 半透明黑色背景 */
}
.fasta{
    white-space: pre-wrap;
    word-break: break-all;
    font-family: monospace;
}
/* 弹窗内容 */
.modal-content {
    background-color: #fff;
    margin: 10% auto; /* 居中显示 */
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-height: 60vh;
    overflow-y: auto; /* 内容多时滚动 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 关闭按钮 */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 24px;
    cursor: pointer;
}
.close-btn:hover {
    color: #000;
}

/* fasta 样式 */
.view-btn {
    background: #4a90e2;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
