:root {
    --text-color: #000000;
    --background-color: #f8f9fa;
    --accent-color:#263343;
    --text-unhover-color: #5e5e5e;
    --underbar-unhover-color: #c7c7c7;
    --light-gray: #ededed;
    --embiome-color: #0c9fdc;
    --text-color-white:#f8f9fa;
    --sidebar--color: #94CBFA;
    --error: #ff0000;
    --danger: #a70000;
    --danger-hover: #ca7474;
    --danger-active: #8d3636;
    --embiome-color-hover: #59c7f7;
    --embiome-color-active: #005c83;
    --progress: #dcb60c;
    --finish: #0cdc40;
    --finish-darker: #07611c;
    --primary: #0069d9;
    --wgs: #fac249;
    --wga: #fac249;
    --meta: #df80f7;
    --comp: #e49296;
    --progress-per: #76c7c0;
    --queued: #3442ff;
    --aborted: #ff7a22;
}



html, body {
    margin: 0;
    height: 100%;
    font-family: 'AppleSDGothicNeoL';
}

a {
    text-decoration: none;
}

h1, h2 {
    font-family: 'AppleSDGothicNeoB';
}

.wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main__img {
    width: 100%;
    text-align: center;
}

.main__img img{
    width: 100%;
    max-height: 100%;
}

.main__section {
    position: relative;
    flex: 1;
}

.main__title{
    position:absolute;
    top:40%;
    left:45%;
    transform: translate(-40%, -45%);
    color: var(--text-color-white);
    text-align: center;
}

.main__homeBtn{
    position:absolute;
    top:55%;
    left:51%;
    transform: translate(-55%, -51%);
}

.main__homeBtn a{
    width: 200px;
    background-color: var(--embiome-color);
    font-size: 24px;
    padding: 8px 12px;
    border-radius: 5px;
    font-family: 'AppleSDGothicNeoB';
    color: var(--text-color-white);
}

.main__homeBtn a:hover{
    border: var(--text-color-white) 2px solid;
    transition: all 100ms ease-out;
}

.report__wrapper{
    display: flex;
    height: 100%;
}

.report__title {
    text-align: center;
}

.section__sidebar {
    display: flex;
    flex-direction: column;
    width: 200px;
    height: 100%;
    background-color:var(--sidebar--color);
}

.section__sidebar > ol {
    margin: 8px 12px;
    padding-left: 8px;
}

.section__sidebar > ol > li {
    color: var(--text-color)
}

.section__sidebar > ol > li > a {
    text-decoration: none;
    color: var(--text-color);
}

.section__content { 
    width: 100%;
    padding: 16px 24px;
    margin: 24px 24px;
    border: solid 2px var(--underbar-unhover-color);
    border-radius: 5px;
}

.report__title {
    border-bottom: solid 2px var(--underbar-unhover-color);
}

.gene__infoTable,
.gene__phylogenomic,
.gene__assembly,
.annotation__genome,
.annotation__kegg,
.annotation__cog {
    border: solid 2px var(--underbar-unhover-color);
    border-radius: 5px;
    padding: 8px 16px;
    margin: 16px 16px;
}

.gene__tableSection {
    display: flex;
}

.gene__tableSection > table {
    width: 100%;
    border: solid 2px var(--underbar-unhover-color);
    border-collapse: collapse;
    margin: 0 16px;
}

.gene__tableSection > th, 
.gene__tableSection > td, 
.gene__tableSection > tr {
    border: solid 2px var(--underbar-unhover-color);
}

.gene__tableSection > td {
    width: 50%;
}

#topBtn {
    width: 50px;
    height: 50px;
    display:scroll;
    position:fixed;
    bottom:200px;
    border-radius: 5px;
    color:var(--text-color-white);
    background-color:var(--embiome-color);
    box-shadow: 3px 3px 3px var(--text-unhover-color);
    right:16px;
    text-align: center;
    padding: 10px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color:var(--background-color);
    padding: 8px 12px;
}

.navbar__menu {
    display:flex;
    list-style: none;
    padding-left: 0;
    font-family: 'AppleSDGothicNeoL';
}

.navbar__logo {
    max-width: 150px;
    max-height: 50px;
}

.navbar__menu a {
    color:var(--text-unhover-color);
    padding: 8px 12px;
    border-bottom: 4px solid var(--underbar-unhover-color);
    transition: all 250ms ease-out;
    left: 50%;
    width: 0;
    margin: 8px;
}

.navbar__menu a:hover {
    color:var(--text-color);
    border-bottom: 4px solid var(--embiome-color);
    font-family: 'AppleSDGothicNeoM';
    transition: all 250ms ease-out;
    left: 50%;
    width: 0;
    margin: 8px;
}

.navbar_menu li {
    padding: 8px 12px;
}

.navbar__menu ul {
    display: none;
    list-style: none;
    padding-left: 0;
    padding-top: 0;
    align-items: center;
    margin-top: 16px;
    margin-left: 8px;
    margin-right: 8px;
    position: absolute;
}

.navbar__menu .dropdown__entity {
    border-bottom: none;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    margin-bottom: 2px;
}

.navbar__menu > li:hover > ul {
    display: block;
    border-left: var(--text-unhover-color) solid 1px;
    border-right: var(--text-unhover-color) solid 1px;
    border-bottom: var(--text-unhover-color) solid 1px;
    border-radius: 2px;
    background: var(--background-color);
    z-index: 100;
}

.main__logo {
    padding: 8px 12px;
    max-width: 100%;
    max-height: 100%;
}

.navbar__toogleBtn {
    display: none;
    position:absolute;
    right: 32px;
    font-size: 24px;
    border: none;
    background-color: transparent;
    color:var(--text-unhover-color);
}

.navbar__disableBtn {
    font-family: 'AppleSDGothicNeoL';
}

.navbar__userBtn {
    display: flex;
    list-style: none;
}

.navbar__userBtn li {
    padding: 8px 12px;
}

.navbar__userBtn a {
    color:var(--text-unhover-color);
    padding: 8px 12px;
    border-bottom: 4px solid var(--underbar-unhover-color);
    transition: all 250ms ease-out;
    left: 50%;
    width: 0;
    margin: 8px;
}

.navbar__userBtn a:hover {
    color:var(--text-color);
    border-bottom: 4px solid var(--embiome-color);
    font-family: 'AppleSDGothicNeoM';
    transition: all 250ms ease-out;
    left: 50%;
    width: 0;
    margin: 8px;
}

.footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color:var(--embiome-color);
    padding: 40px 0;
    font-size: 24px;
}

.footer li {
    padding: 8px 12px;
    list-style: none;
    color:var(--text-color-white);
}

.footer a {
    color:var(--text-color-white);
}

.footer__logo {
    padding-bottom: 100px;
    max-width: 300px;
    max-height: 50px;
}

.footer__links {
    display: flex;
    padding-left: 0;
}

.footer__links a:hover {
    color:var(--text-unhover-color);
    transition: all 250ms ease-out;
}

.footer__menu {
    display: flex;
    padding-left: 0;
}

.footer__menu li {
    border-left: var(--text-color-white) solid 2px;
}

.footer__menu li:hover {
    border-left: var(--text-unhover-color) solid 2px;
    transition: all 250ms ease-out;
}

.footer__menu a {
    padding : 8px 12px;
}

.footer__menu a:hover {
    font-family: 'AppleSDGothicNeoM';
    color: var(--text-color);
    transition: all 250ms ease-out;
}

.footer__copyright p{
    font-size: 16px;
    color:var(--text-color-white);
    text-align: center;
}

@media screen and (max-width: 862px){
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 12px;
    }


    .navbar__menu {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .navbar__menu li {
        width: 100%;
        margin: 12px 0;
        text-align: center;
    }


    .navbar__disableBtn {
        display: none;
        margin: 12px 0;
        justify-content: center;
        width: 100%;
    }

    .navbar__toogleBtn {
        display: block;
    }

    .navbar__userBtn {
        display: none;
        justify-content: center;
        width: 100%
    }

    .navbar__menu ul {
        display: none;
        position: static;
        flex-direction: column;
        justify-content: center;
        margin: 0;
        width: 100%;
    }

    .navbar__menu > li:hover > ul {
        display: block;
        border: none;
        padding: 8px 12px;
        margin: 0;
    }

    .navbar__menu.active,
    .navbar__disableBtn.active,
    .navbar__userBtn.active {
        display: flex;
    }

    .footer {
        flex-direction: column;
        align-items: center;
    }

    .footer__logo > img {
        width: 100%;
        max-height: 50px;
    }

    .footer__menu {
        flex-direction: column;
        align-items: center;
    }

    .footer__menu li {
        border-left:none;
        border-bottom: var(--text-color-white) solid 2px;
    }
    
    .footer__menu li:hover {
        border-left:none;
        border-bottom: var(--text-unhover-color) solid 2px;
        transition: all 250ms ease-out;
    }
}

@media screen and (max-width: 1220px) {
    .main__img {
        height: 100%;
    }

    .main__img img {
        height: 100%;
        object-fit: cover;
    }
}


@font-face {
    font-family: 'AppleSDGothicNeoB';
    src: url(../font/AppleSDGothicNeoB.ttf);
}

@font-face {
    font-family: 'AppleSDGothicNeoM';
    src: url(../font/AppleSDGothicNeoM.ttf);
}

@font-face {
    font-family: 'AppleSDGothicNeoL';
    src: url(../font/AppleSDGothicNeoL.ttf);
}

/* Overlay */
.overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 2;
}

.spinner {
    /* Center the spinner */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.contentBlock {
    padding: 20px;
    border: 1px solid var(--underbar-unhover-color);
    border-radius: 5px;
    width: 100%;
}

.content-block-intaglio {
    padding: 20px;
    border: 0.5px solid var(--light-gray);
    border-radius: 15px;
    width: auto;
    box-shadow: 8px 8px 10px var(--light-gray);
    margin: 4px 12px;
}

.statisticsBlock {
    display: block;
    padding: 20px;
    border: 1px solid var(--underbar-unhover-color);
    border-radius: 5px;
    width: 200px;
    height: 200px;
    margin: 20px;
    align-content: center;
    text-align: center;
}

.statisticsBlock:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: all 100ms ease-out;
    cursor: pointer;
}

.statisticsBlock:active {
    background-color: var(--underbar-unhover-color);
    color: var(--text-color);
    transition: none;
}

.focused-block {
    background: var(--primary);
    color: var(--text-color-white);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* btn */

.remove-file-btn {
    background-color: var(--error); /* Red color for remove */
    border: none;
    color: var(--text-color-white);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    width: 18px; /* Adjust size as needed */
    height: 18px; /* Adjust size as needed */
    border-radius: 50%; /* Makes it a circle */
    cursor: pointer;
    line-height: 18px; /* Centers the text vertically */
    padding: 0;
    margin-right: 10px; /* Space between button and text */
}

.remove-file-btn:hover {
    background-color: var(--error-hover); /* Darker red on hover */
    transition: all 100ms ease-out;
}

.remove-file-btn:active {
    background-color: var(--accent-color);
    color: var(--text-color-white);
    transition: none;
}

.abort-upload-btn {
    background-color: var(--error); /* Red color for remove */
    border: none;
    color: var(--text-color-white);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    width: 18px; /* Adjust size as needed */
    height: 18px; /* Adjust size as needed */
    border-radius: 50%; /* Makes it a circle */
    cursor: pointer;
    line-height: 18px; /* Centers the text vertically */
    padding: 0;
    margin-right: 10px; /* Space between button and text */
}

.abort-upload-btn:hover {
    background-color: var(--error-hover); /* Darker red on hover */
    transition: all 100ms ease-out;
}

.abort-upload-btn:active {
    background-color: var(--accent-color);
    color: var(--text-color-white);
    transition: none;
}
.continue-upload-btn {
    background-color: var(--progress); /* Red color for remove */
    border: none;
    color: var(--text-color-white);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    width: 18px; /* Adjust size as needed */
    height: 18px; /* Adjust size as needed */
    border-radius: 50%; /* Makes it a circle */
    cursor: pointer;
    line-height: 18px; /* Centers the text vertically */
    padding: 0;
    margin-right: 10px; /* Space between button and text */
}

.continue-upload-btn:hover {
    background-color: var(--error-hover); /* Darker red on hover */
    transition: all 100ms ease-out;
}

.continue-upload-btn:active {
    background-color: var(--accent-color);
    color: var(--text-color-white);
    transition: none;
}

.success-upload-btn {
    background-color: var(--finish-darker); /* Red color for remove */
    border: none;
    color: var(--text-color-white);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    width: 18px; /* Adjust size as needed */
    height: 18px; /* Adjust size as needed */
    border-radius: 50%; /* Makes it a circle */
    cursor: pointer;
    line-height: 18px; /* Centers the text vertically */
    padding: 0;
    margin-right: 10px; /* Space between button and text */
}

/* keyword */
.keyword {
    color: var(--text-color-white);
    background-color: var(--progress-per);
    border: none;
    border-radius: 16px;
    padding: 2px 8px;
    margin: 4px;
}

.keyword:hover {
    /*give shadow box effect*/
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.overlayWindows {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--background-color);
    width: 60%;
    min-width: 600px;
    max-height: 80vh;  /* Maximum height before vertical scroll */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    padding: 20px;
    overflow: auto;    /* Enables scrollbars when content exceeds max dimensions */
}

.overlayWindowsExpandable {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--background-color);
    width: 60%;
    min-width: 600px;
    max-width: 90%;    /* Maximum width before horizontal scroll */
    max-height: 80vh;  /* Maximum height before vertical scroll */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    padding: 20px;
    overflow: auto;    /* Enables scrollbars when content exceeds max dimensions */
}

/* Close button styling */
.closeBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    -webkit-user-drag: none;
}

/* Table content */
.tableNav {
    background-color: var(--text-unhover-color);
    color: var(--text-color-white);
    width: 100%;
    justify-content: space-between;
    padding: 4px 16px;
    text-align: center;
}

.tableElement {
    padding: 4px 16px;
}

.te__checkbox {
    min-width: 30px;
    text-align: center;
}

.te__title{
    min-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.te__size {
    min-width: 100px;
    text-align: center;
}

.te__type{
    min-width: 100px;
    text-align: center;
}

.te__count{
    min-width: 100px;
    text-align: center;
}

.te__format {
    min-width: 100px;
    text-align: center;
}

.te__date {
    min-width: 140px;
    text-align: center;
}

.te__type {
    min-width: 100px;
    text-align: center;
}

.te__status {
    min-width: 120px;
    text-align: center;
}

.te__btn {
    min-width: 50px;
    text-align: center;
}

.th__leftEdge {
    border-top-left-radius: 5px;
}

.th__rightEdge {
    border-top-right-radius: 5px;
}

/* default btn */
.viewBtn {
    color: var(--embiome-color);
}

.viewBtn:hover{
    color: var(--embiome-color-hover);
    transition: 0.3s ease all;
}

.viewBtn:active{
    color: var(--embiome-color-active);
    transition: none;
}

.reportBtn {
    color: var(--embiome-color);
}

.reportBtn:hover{
    color: var(--embiome-color-hover);
    transition: 0.3s ease all;
}

.reportBtn:active{
    color: var(--embiome-color-active);
    transition: none;
}

.deleteBtn,
.removeBtn {
    color: var(--danger);
}

.deleteBtn:hover,
.removeBtn:hover {
    color: var(--danger-hover);
    transition: 0.3s ease all;
}

.deleteBtn:active,
.removeBtn:active {
    color: var(--danger-active);
    transition: none;
}

.tagWGS, .tagWGA {
    display: inline-block;
    background-color: var(--wgs);
    color: var(--text-color-white);
    text-align: center;
    align-items: center;
    border-radius: 5px;
    padding: 2px 8px;
    width: 56px;
}

.tagMETA {
    display: inline-block;
    background-color: var(--meta);
    color: var(--text-color-white);
    text-align: center;
    align-items: center;
    border-radius: 5px;
    padding: 2px 8px;
    width: 56px;
}

.tagCOMP {
    display: inline-block;
    background-color: var(--comp);
    color: var(--text-color-white);
    text-align: center;
    align-items: center;
    border-radius: 5px;
    padding: 2px 8px;
    width: 56px;
}

.tagtsv,
.tagfasta,
.tagfastq,
.taggbk,
.tagfastqgz {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color-white);
    text-align: center;
    align-self: center;
    border-radius: 5px;
    padding: 2px 8px;
    width: auto;
}

.jobStatus {
    display: inline-block;
    border: none;
    border-radius: 16px;
    padding: 4px 8px;
    margin: 4px;
    color: var(--text-color-white);
    width: 100px; /* Consistent width for all status elements */
    text-align: center;
    position: relative; /* Ensure child elements like the progress bar can be positioned correctly */
}

.waiting {
    background-color: var(--progress-per);
}

.queued {
    background-color: var(--queued);
}

.processing {
    background-color: var(--progress); /* General background, used as fallback in case no progress */
    padding: 0;
    overflow: hidden;
}

.completed {
    background-color: var(--finish);
}

.failed {
    background-color: var(--error);
}

.aborted {
    background-color: var(--aborted);
}

/* Progress container styling */
.progressContainer {
    position: relative;
    width: 100%; /* Full width of the status element */
    height: 100%; /* Ensure it takes full height of the .jobStatus */
    background-color:#977d06; /* Progress bar background */
    border-radius: 16px; /* Match the border-radius of .jobStatus */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 8px;
}

/* Progress bar fill */
.progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--progress); /* Color of the progress fill */
    transition: width 0.5s ease-in-out; /* Smooth transition as progress increases */
    border-radius: 16px; /* Match the border-radius of .jobStatus */
}


/* Progress text */
.progressText {
    z-index: 1; /* Ensure the text is above the progress fill */
    color: var(--text-color-white);
    text-align: center;
}

.normal-btn {
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 4px 8px;
}

.normal-btn:hover {
    background: var(--queued);
    color: var(--text-color-white);
    transition: all 100ms ease-out;
}

.normal-btn:active {
    background-color: var(--primary);
    color: var(--text-color-white);
    transition: none;
}
