/* style.css */
/* 调整整体布局 */
/* body {
    display: flex;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
} */

/* 网络图容器 */
/* #network-container {
    width: 100%;
    height: 100%;
    position: relative;
} */

.network-panel {
    margin-top: 20px;
    /* 向下移动 20px */
    width: 100%;
    height: calc(100% - 20px);
    /* 调整高度以保持总高度不变 */
}



/* 搜索面板容器 */
/* #search-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 0 10px;
    box-sizing: border-box;
} */

svg {
    width: 100%;
    height: 100%;
    /* border: 1px solid #ccc; */
}

.node {
    stroke-width: 1.5px;
    transition: opacity 0.3s;
}

.edge {
    fill: none;
    transition: opacity 0.3s;
}

.BR_response_gene {
    fill: orange;
}

.TF_targeting {
    stroke: #b0e2ff;
    stroke-dasharray: 5, 5;
}

.lncRNA_trans_targeting {
    stroke: gray;
    stroke-dasharray: 5, 5;
}

.lncRNA_cis_targeting {
    stroke: gray;
    stroke-dasharray: 5, 5;
}

.Cat_2 {
    stroke: purple;
    stroke-dasharray: 5, 5;
}

.DE_Up_regulation {
    stroke: #cdad00;
}

.DE_Down_regulation {
    stroke: #00688b;
}

.DE_Up_Phosphorylation {
    stroke: #c5689a;
}

.DE_Down_Phosphorylation {
    stroke: #6f80b3;
}

.interacting {
    stroke: rgb(96, 117, 96);
}

/* .path1 {
    stroke: rgb(211, 40, 40);
    stroke-width: 3px;
}

.path2 {
    stroke: lightcoral;
    stroke-width: 3px;
    stroke-dasharray: 5, 5;
}

.path3 {
    stroke: rgb(87, 141, 212);
    stroke-width: 3px;
    stroke-dasharray: 5, 5;
} */

text {
    fill: black !important;
    font-size: 12px;
    font-weight: normal !important;
}

.dimmed {
    opacity: 0.2;
}

.highlighted {
    opacity: 1;
}

.edge-tooltip {
    pointer-events: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 5px 8px;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* 更新层级控制样式 */
.layer-control {
    margin: 15px 0;
    padding: 10px;
    /* background: #f8f9fa; */
    background: #fafafc;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.layer-option {
    margin: 5px 0;
}

.layer-option input {
    margin-right: 8px;
}

/* 搜索面板 */
.search-panel {
    background: white;
    padding: 15px;
    border-radius: 5px;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    width: 100%;
    box-sizing: border-box;
}

/* 表格容器 */
.table-container {
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow-x: auto;
    /* 添加水平滚动 */
    overflow-y: hidden;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
    max-width: 100%;
}

/* 表格样式 */
.data-table {
    width: auto;
    /* 改为自动宽度 */
    min-width: 100%;
    /* 最小宽度100% */
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
    /* 防止换行 */
}

/* 表头固定 */
.data-table thead {
    position: sticky;
    top: 0;
    background: #f1f5f9;
    z-index: 10;
}

/* 单元格优化 */
.data-table th,
.data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    /* background: #f8f9fa; */
    background: #fafafc;
    border-bottom: 1px solid #e0e0e0;
}

.table-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.search-panel h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.gene-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 5px;
    margin-bottom: 10px;
}

.gene-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.gene-item:hover {
    background-color: #f5f5f5;
}

.no-results {
    color: #999;
    font-style: italic;
    padding: 5px;
}

.gene-id {
    /* font-weight: bold; */
    color: #333;
}

.gene-type {
    color: #666;
    font-style: italic;
}

.search-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 更新下载按钮样式 */
.download-btn {
    background: #18a058;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.download-btn.small {
    padding: 4px 8px;
    font-size: 11px;
}

.download-btn:hover {
    background: #18a058;
    transform: translateY(-1px);
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    background: #f1f5f9;
    padding: 8px 12px;
    text-align: left;
    font-weight: 500;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
}

.data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
}

.data-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.data-table tr:hover {
    background-color: #f0f5ff;
}

.no-data {
    padding: 15px;
    text-align: center;
    color: #718096;
    font-style: italic;
}

/* 更新当前层级显示 */
#currentLayerDisplay {
    font-weight: bold;
    color: #4CAF50;
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    padding: 10px 0;
}

.pagination button {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 5px 10px;
    margin: 0 3px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
}

.pagination button:hover:not(:disabled) {
    background: #e9ecef;
}

.pagination button.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.pagination button:disabled {
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-info {
    text-align: center;
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
}

/* 图例样式 */
#legend-container {
    font-size: 12px;
    pointer-events: none;
}

.legend-item {
    cursor: default;
}

.legend-icon {
    stroke-width: 1.5px;
}

.legend-text {
    dominant-baseline: middle;
}