/*  =================================
    Data Overview / overview.css 
    ================================= */

#content-overview{
    padding: 0px 24px 40px;
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
}

.page-header{
    position: sticky;
    top: 64px;
    z-index: 500;
    background-color: var(--background);
    padding: 8px 0px;
    width: 100%;
}

.side-by-side-content{
    display: flex;
    flex: 1;
    margin-top: 70px;
    gap: 26px;
    max-width: 100vw;
    box-sizing: border-box;
}

/* table of contents */

.toc{
    width: 20%;
    padding: 0px;
    position: sticky;
    top: 150px;
    height: calc(100vh - 300px); 
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;  
}

.toc li{
    border-right: 3px solid var(--separator);
    padding: 6.5px 0px;
}


.toc a{
    color: var(--col3);
    text-decoration: none;
    font-size: var(--sl-font-size-large);
    width: 100%;

}

.toc a:hover{
    color: var(--col5);
}

.toc li{
    position: relative;
}

.toc li.active-heading{
    font-weight: var(--sl-font-weight-semibold);
    border-color: var(--col3);
}

.toc li.active-heading::before{
    content: '';
}

/* content */
#overview-main-content{
    display: flex;
    flex-direction: column;
    max-width: calc(80% - 26px);
    gap: 56px;
    margin-top: 20px;
    
}

#overview-main-content section{
    display: flex;
    flex-direction: column;
    background-color: var(--cards);
    border-radius: 24px;
    padding: 16px 24px;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    box-shadow: 0 2px 4px rgb(0, 0, 0, 0.25%);
}


#overview-main-content section h2{
    color: var(--col3);
}

#overview-main-content section a{
    color: var(--col3);
}

#overview-main-content section a:hover{
    color: var(--col5);
}

/* datasets section */


#data-table-container{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#data-table{
    box-sizing: border-box;
}

.config-options-container{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    width: 100%;
}

#filter-container{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    width: 100%;
}

#filter-fields{
    display: none;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    
}

#filter-fields sl-select::part(form-control){
    width: 180px;
}

#filter-button{
    font-size: 20px;
}

#filter-button::part(base):hover{
    color:var(--col5)
}

.table-icon{
    width: 40;
    height: 40;
}

.table-icon path{
    fill: var(--col3);
}

.table-icon:hover path{
    fill:var(--col5);
}

#data-table-spinner{
    display: none;
}

.table-tooltip{
    --sl-tooltip-font-size: 11px;
}



.tooltip-inner{
    background-color: (--col4) !important;
}



/* Data Processing */

figure{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    font-style: italic;
    
    
}

figure img{
    max-width: 80%;
    height: auto;
}

/* Dataset Distribution */

#datasetDistribution{
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 100%;
}

#datasetDistribution h2{
    width: 100%;
}

#datasetDistribution p{
    width: 100%;
}
#overview-container{
    height: auto;
}
#overview-container .config{
    display: flex;
    justify-content: flex-end;
}


#overview-sankey{
    height: 900px;
    width: 100%;
}

.dist-container{
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-basis: 49%;
    max-width: 49%;
    box-sizing: border-box;
    height: 500px;
}

.dist-container.double{
    width: 100%;
    max-width: 100%;
    flex: 1;
}

.dist-container p{
    color: var(--text-header-label-light);
}

#phages-container{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 2%;
}

#dist-phage-type, #dist-phages{
    height:400px;
}


.config{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
    
}

#content-overview sl-icon-button.download-png-button::part(base), #content-overview sl-icon-button.help-button::part(base) {
    color: rgba(68, 68, 68, 0.3);
}

#content-overview .help-button::part(base){
    font-size: 1.05rem;

}

#content-overview sl-icon-button.download-png-button::part(base):hover, #content-overview sl-icon-button.help-button::part(base):hover{
    color: #7a7a7a;
}





/* Media */

@media screen and (min-width: 2560px){
    
    #content-overview{
        padding-top: 1.25rem;
    }

    .toc{
        top: 250px;
    }
}


@media screen and (max-width: 910px){

    .toc a{
    font-size: var(--sl-font-size-large);
    }

}

@media screen and (max-width: 670px){

    .toc a{
    font-size: var(--sl-font-size-medium);
    }

    p{
        font-size: var(--sl-font-size-medium);
    }

}


