#info {
    /* height: 200px; */
    width: 100%;
    background-color: rgba(191, 191, 191, 0.2);
    /* 调整透明度以适应毛玻璃效果 */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 5px;
}

#info .task-info {
    display: flex;

}

.task-info input,
button {
    padding: 1px;
    margin: 5px 10px;
    height: 15px;
    line-height: 15px;
    font-size: 12px;
}

.task-info button {
    width: 50px;
    height: 20px;
    line-height: 20px;
    margin-top: auto 0;
    border-radius: 3px;
}

#info #search-task {
    width: 300px;
    margin-right: 15px;
}

/* 基本重置 */
#task-table table {
    /* display: none; */
    width: 98%;
    /* 表格宽度为100% */
    border-collapse: collapse;
    /* 边框合并 */
    margin: 1px 10px;
    font-size: 12px;
    font-weight: normal;
    /* visibility: hidden; */
}

/* 表格头部和单元格样式 */
#task-table th {
    font-weight: normal;
}

#task-table th,
td {
    padding: 2px 5px;
    /* 内边距 */
    border: 1px solid #ffffff;
    /* 边框 */
    text-align: left;
    /* 文本左对齐 */
    word-break: break-word;
    /* 允许在单词内换行 */
    word-wrap: break-word;
    /* 旧的写法，与 word-break: break-word; 相同 */
    overflow-wrap: break-word;
    /* 允许在单词内换行 */
    color: rgb(99, 99, 99);
}

/* 设置每列的宽度 */
#task-table th:nth-child(1),
td:nth-child(1) {
    width: 14%;
}

#task-table th:nth-child(2),
td:nth-child(2) {
    width: 8%;
}

#task-table th:nth-child(3),
td:nth-child(3) {
    width: 8%;
}

#task-table th:nth-child(4),
td:nth-child(4) {
    width: 50%;
}

#task-table th:nth-child(5),
td:nth-child(5) {
    width: 10%;
}

#task-table th:nth-child(6),
td:nth-child(6) {
    width: 10%;
}

#task-table td:hover {
    background-color: #dedede;
}

/* #task-table td:nth-child(4) {
    cursor: pointer;
} */
#task-table td:nth-child(5) {
    cursor: pointer;
}

.status-pending {
    color: rgba(0, 81, 255, 0.815);
}

.status-failure {
    color: red;
}

.status-success {
    color: rgb(0, 150, 45);
}
.status{
    font-weight: bold;
}

.status-box p {
    margin: 5px 0 0 10px;
    font-size: 12px;
    padding-bottom: 5px;
    display: flex;
    /* visibility: hidden; */
}

.status-box p:nth-child(2) {
    margin: 0 0 0 10px;

}

tr.selected {
    background-color: #c0c0c0;
}

.viz-task-tab {
    padding-top: 10px;
}

.viz-sample {
    margin: auto 10px;
    cursor: pointer;
    padding: 4px 5px;
    color: #ffffff;
}

.viz-sample:hover {
    color: #49cf44;
}

/* 主体 */
.container-viz {
    display: flex;
    flex-wrap: wrap;
    /* 支持换行 */
    justify-content: flex-start;
    /* 左对齐 */
    align-items: flex-start;
    /* 子项顶部对齐 */
    gap: 10px;
    /* 控制元素间的间距 */
    width: 100%;
    margin-top: 20px;
    margin-bottom: 50px;
}

.window {
    position: relative;
    margin: 0;
    flex: 0 1 auto;
    min-width: calc(100% / 5 - 10px);
    ;
    max-width: calc((100% - 10px)/2);
    min-height: 200px;
    max-height: 800px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* 垂直排列子元素 */
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.2s ease;
    padding: 8px;
    /* 为内容添加内边距 */
}

.title {
    font-size: 14px;
    font-weight: bold;
    color: white;
    margin: 5px auto;
    /* 标题与图片间距 */
    text-align: center;
    width: 100%;
}

.window img {
    max-width: 100%;
    /* 图片自适应宽度 */
    max-width: 100%;
    /* 确保图片不会超出窗口大小 */
    line-height: 80%;
    border-radius: 2px;
    object-fit: cover;
    /* 保持图片比例填充窗口 */
}

.resize-handle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
}

.resize-handle::before,
.resize-handle::after {
    content: '';
    position: absolute;
    border-style: solid;
    width: 0;
    height: 0;
}

/* 第一个三角形：指向右下 */
.resize-handle::before {
    border-width: 0px 0px 0 0;
    border-color: rgba(0, 0, 0, 0.7) transparent transparent transparent;
    right: 0;
    bottom: 0;
    transform: translate(0, 0);
}

/* 第二个三角形：指向左上 */
.resize-handle::after {
    border-width: 0 0 8px 8px;
    border-color: transparent transparent rgba(56, 56, 56, 0.7) transparent;
    left: 0;
    top: 0;
    transform: translate(0, 0);
}

.resize-handle:hover::before,
.resize-handle:hover::after {
    border-color: rgb(224, 26, 26) transparent transparent transparent;
}

.resize-handle::before {
    transform: translate(-6px, -6px);
    /* 调整位置 */
}

.resize-handle::after {
    transform: translate(6px, 6px);
    /* 调整位置 */
}

/* 窗口样式 */
#window1 {
    /* background-color: #ee75b831; */
    background-color: white;
    border: #e2515174 3px solid;
    /* width: calc((100% - 20px)/3); */
    width: calc((100% - 40px)/5);
}

#window2 {
    /* background-color: #2195f32c; */
    background-color: white;
    border: #e29e5174 3px solid;
    /* width: calc((100% - 20px)/3); */
    width: calc((100% - 40px)/5);
}

#window3 {
    /* background-color: #ff990031; */
    background-color: white;
    border: #dde25168 3px solid;
    /* width: calc((100% - 20px)/3); */
    width: calc((100% - 40px)/5);
}

#window4 {
    /* background-color: #f443363f; */
    background-color: white;
    border: #a1e2516b 3px solid;
    /* width: calc((100% - 10px)/2); */
    width: calc((100% - 40px)/5);
}

#window5 {
    /* background-color: #9b27b036; */
    background-color: white;
    border: #58e2516e 3px solid;
    /* width: calc((100% - 10px)/2); */
    width: calc((100% - 40px)/5);
}

#window6 {
    /* background-color: #29548560; */
    background-color: white;
    border: #51e29e60 3px solid;
    /* width: calc((100% - 20px)/3); */
    width: calc((100% - 40px)/5);
}

#window7 {
    /* background-color: #b1e8a63f; */
    background-color: white;
    border: #51cae263 3px solid;
    /* width: calc((100% - 20px)/3); */
    width: calc((100% - 40px)/5);
}

#window8 {
    /* background-color: #9483e144; */
    background-color: white;
    border: #516be25b 3px solid;
    /* width: calc((100% - 20px)/3); */
    width: calc((100% - 40px)/5);
}

#window9 {
    /* background-color: #83e1c244; */
    background-color: white;
    border: #8651e267 3px solid;
    /* width: calc((100% - 20px)/3); */
    width: calc(100% - 3*((100% - 40px)/5 + 10px));
}
#window10 {
    /* background-color: #9483e144; */
    background-color: white;
    border: #b951e25b 3px solid;
    /* width: calc((100% - 20px)/3); */
    width: calc((100% - 40px)/5);
}
#window11 {
    /* background-color: #9483e144; */
    background-color: white;
    border: #e2517c5b 3px solid;
    /* width: calc((100% - 20px)/3); */
    width: calc((100% - 40px)/5);
}
.window .title {
    font-size: 1.1em;
    color: rgb(0, 0, 0);
    font-weight: bold;
    /* position: absolute; */
}

.window .title:hover {
    cursor: pointer;
}

:root {
    --color1: #2c9b28;
    --color2: #4daae9;
    --color3: #979797;
}

#task-table,
#info div p,
.container-viz {
    display: none;
}

.viz-box {
    background-color: #ffffff33;
    border-radius: 5px;
    padding: 10px 20px 50px 20px;
}

.viz-box div#bar_chart {
    width: 100%;
    height: 5000px;
}

.viz-box div#net-pic {
    width: 100%;
    height: 600px;
}

.viz-box div#point-pic {
    margin-top: 50px;
    width: 100%;
    height: 1000px;
}

/* combo */
.control-box {
    position: absolute;
    top: 20%;
    left: 5%;
    z-index: 999;
    background-color: #c0c0c034;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
}

.control-box form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.control-box #slider {
    width: 70px;
    margin: 5px auto;
}

.control-box #numberValue {
    width: 50px;
    padding: 3px 0px;
    text-align: center;
    /* 使文本居中 */
    margin: 5px auto;
    display: block;
    /* 使输入框以块级元素显示，以便居中 */
    margin-left: 5px;
}

.input-box {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

/* cell / gene viz */
#viz-info {
    /* height: 200px; */
    width: 100%;
    background-color: rgba(191, 191, 191, 0.2);
    /* 调整透明度以适应毛玻璃效果 */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#viz-info .viz-search-info {
    display: flex;

}

.viz-search-info input,
button {
    padding: 1px;
    margin: 5px 10px;
    height: 15px;
    line-height: 15px;
    font-size: 12px;
}

.viz-search-info button {
    width: 80px;
    height: 20px;
    line-height: 20px;
    margin-top: auto 0;
    border-radius: 3px;
}

#viz-info #search-class,
#viz-info #search-gene {
    width: 200px;
    margin-right: 15px;
}

