body {
    font-family: Consolas, monaco, monospace;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.2s, color 0.2s;
    background-color: var(--bg-color);
}

a:link,
a:visited,
a:hover {
    color: var(--link-color) !important;
    text-decoration: none;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
}

.sidebar {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    color: #fff;
    transition: width 0.2s;
    position: relative;
    height: 100vh;
}

.sidebar.collapsed {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
}

.sidebar.collapsed .sidebar-title {
    display: none;
}

.sidebar.collapsed #theme-toggle {
    display: inline-block !important;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: var(--header-bg-color);
    position: relative;
    transition: background-color 0.2s;
}

.sidebar-title {
    margin: 0;
    font-size: 1.5em;
    font-family: Consolas, monaco, monospace;
    /* Same font family as the rest of the page */
    color: var(--text-color);
    /* Use the text color variable */
    transition: color 0.2s;
    text-align: center;
}

.sidebar-controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}

.sidebar-header button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.2s;
    font-size: 1.2em;
}

#collapse-toggle {
    margin-left: auto;
}

#theme-toggle {
    margin-right: 10px;
    /* Adjust this value to ensure no overlap */
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    flex: 1;
    /* This pushes the About item to the bottom */
    display: flex;
    flex-direction: column;
}

.service-list li {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.service-list li:hover {
    background-color: var(--hover-bg-color);
    color: var(--text-color);
}

.service-list img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    transition: filter 0.2s;
}

.sidebar.collapsed .service-list li {
    justify-self: center;
    flex-direction: column;
}

.sidebar.collapsed .service-list img {
    margin-right: 0;
}

.sidebar.collapsed .service-list li span {
    display: none;
}

.about-section {
    margin-top: auto;
    /* Pushes the About section to the bottom */
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    font-family: Consolas, monaco, monospace;
}

.about-section img {
    margin-right: 10px;
}

.about {
    padding-top: 20px;
    padding-bottom: 20px;
    color: var(--text-color);
    transition: color 0.2s;
}

.about a {
    color: var(--text-color);
    text-decoration: none;
}

.about a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.service-list li.archives-menu {
    justify-self: center;
    display: flex;
    /* Use flexbox for alignment */
    /*flex-direction: column;*/
    align-items: center;
    /* Center items vertically */
}

.sidebar.collapsed .service-list li.archives-menu {
    justify-content: center;
    /* Center the content horizontally when sidebar is collapsed */
    flex-direction: column;
    /* Stack icon and text vertically */
}

.archives-menu {
    cursor: pointer;
    padding: 10px;
    transition: background-color 0.2s, color 0.2s;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    /* Ensure the icon and text are aligned */
    justify-content: flex-start;
    /* Align content to the start by default */
    background-color: var(--bg-color);
}

.archives-menu img {
    margin-right: 10px;
    /* Add some space between the icon and the text */
}

.sidebar.collapsed .archives-menu img {
    margin-right: 0;
    /* Remove space between the icon and the text when sidebar is collapsed */
    margin-bottom: 5px;
    /* Add some space between the icon and the text when stacked vertically */
}

.archives-menu .toggle-symbol {
    display: inline-block;
    margin-left: 5px;
    margin-right: 10px;
    transition: transform 0.2s;
    transform: rotate(0deg);
    /* Arrow pointing right by default */
}

.archives-menu.expanded .toggle-symbol {
    transform: rotate(-90deg);
    /* Arrow rotated downward when expanded */
}

.archives-menu.expanded {
    background-color: var(--bg-color) !important;
}

.archives-submenu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 0 0px;
    /* Indent submenu items below Archives */
    background-color: var(--bg-color);
}

.archives-submenu.expanded {
    display: block !important;
    margin-top: 10px;
    border: 2px var(--table-bg-color) solid;
    max-height: 480px;
    overflow-x: auto;
    max-width: 85px;
}

.archive-files-submenu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 0 0px;
    /* Indent sub-submenu items below Archive */
}


.sidebar.collapsed .archive-files-submenu {
    padding: 0;
    /* Remove indentation when sidebar is collapsed */
    align-items: center;
    /* Center items horizontally */
    text-align: center;
    /* Center text */
}

.archive-files-submenu.expanded {
    display: flex !important;
    flex-direction: column;
    margin-top: 10px;
}

.archive-files-link a:hover {
    background-color: lime;
}

.archives-submenu li {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    display: block;
}

.archives-submenu li:hover {
    background-color: var(--hover-bg-color);
    color: var(--text-color);
}

.archives-submenu a:hover {
    background-color: var(--hover-bg-color);
    color: var(--text-color);
}

.archives-submenu {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

.archive-file :focus {
    background-color: var(--bg-color) !important;
}

.homeContent {
    padding: 10px;
    transition: background-color 0.2s, color 0.2s;
    font-family: Consolas, monaco, monospace;
}

.homeContent div {
    padding: 10px;
    transition: background-color 0.2s, color 0.2s;
    align-items: center;
    font-family: Consolas, monaco, monospace;
}

.dutContact {
    padding-top: 10px !important;
    color: var(--text-color);
    text-decoration: none;
}

.sidebar.collapsed .about-section span {
    display: none;
}

.sidebar.collapsed .sidebar-title,
.sidebar.collapsed #theme-toggle {
    display: none;
}

.content {
    flex-grow: 1;
    background-color: #f0f0f0;
    padding: 20px;
    overflow-y: auto;
    transition: background-color 0.2s, color 0.2s;
}

.table-container {
    width: 100% !important;
    overflow-x: auto;
    margin-top: 10px;
}

table {
    width: 100% !important;
    border-collapse: collapse;
    transition: background-color 0.2s, color 0.2s;
}

th,
td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
    transition: background-color 0.2s, color 0.2s;
}

th:nth-child(3),
td:nth-child(3) {
    max-width: 200px;
    /* Set a maximum width for the "Related Commit History on GitHub" column */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dutLogo {
    width: 100% !important;
    top: 75px;
    position: absolute;
    height: 100px !important;
    background-image: url(../img/DUTLogo.png);
    background-repeat: no-repeat;
    background-position: left;
    border-bottom: 1px #50E6FF solid;
}

.dutTimeStamp {
    color: #E3E3E3;
    text-align: center;
    width: 100%;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    position: relative;
}

.dutContent {
    position: absolute;
    top: 153px;
    height: 69% !important;
    background-color: #243A5E;
    margin-top: 22px;
    width: 100%;
}

.dutMainContent {
    background-color: #2E2E2E;
    height: 100%;
    background: linear-gradient(135deg, #0091FF, #243A5E);
}


.dutLineNeutral {
    color: #2E2E2E;
    width: 100%;
    word-wrap: break-word
}

.dutLineRemove {
    color: #EF621F;
    width: 100%;
    word-wrap: break-word;
    text-decoration: line-through;
}

.dutLineAdd {
    color: #007F0E;
    width: 100%;
    word-wrap: break-word
}

.dutLineInfo {
    color: #0065B3;
    width: 100%;
    word-wrap: break-word;
}

.dark-theme {
    --bg-color: #1e1e2f;
    --text-color: #fff;
    --header-bg-color: #2e2e3f;
    --hover-bg-color: #3e3e4f;
    --table-bg-color: #2e2e3f;
    --table-border-color: #444;
    --link-color: #fff;
    /* White links for dark theme */
}

.light-theme {
    --bg-color: #f0f0f0;
    --text-color: #000;
    --header-bg-color: #e0e0e0;
    --hover-bg-color: #d0d0d0;
    --table-bg-color: #fff;
    --table-border-color: #ccc;
    --link-color: #243A5E;
    /* Original link color for light theme */
}

body.dark-theme {
    background-color: var(--bg-color);
    color: var(--text-color);
}

body.light-theme {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.sidebar {
    background-color: var(--bg-color);
}

.sidebar-header {
    background-color: var(--header-bg-color);
}

.service-list li:hover {
    background-color: var(--hover-bg-color);
}

table {
    background-color: var(--table-bg-color);
    border-color: var(--table-border-color);
}

th,
td {
    border-color: var(--table-border-color);
}

a:link,
a:visited,
a:hover {
    color: var(--link-color) !important;
    text-decoration: none;
}

body.light-theme .sidebar-header button,
body.light-theme .service-list li {
    color: var(--text-color);
}

.fltrow {
    background-color: var(--bg-color) !important;
}

.flt,
.flt_s,
.single_flt {
    color: var(--text-color) !important;
    background-color: var(--header-bg-color) !important;
}

div.tot {
    float: left;
    overflow: hidden;
    min-width: 150px;
    height: 100%;
    margin: 0;
    padding: .5em;
    vertical-align: middle;
    color: #1e1e2f;
}

.inf a {
    color: #1e1e2f !important;
    text-decoration: none;
    font-weight: bold;
    box-sizing: initial;
}

.dutTimeStamp {
    width: 100%;
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding: 10px 0;
    box-sizing: border-box;
}

.highlight {
    background-color: #00ff00;
    color: black;
}

.searchbox {
    color: #1e1e2f;
}

.numberofupdates {
    color: #1e1e2f;
}

#tableSearch:focus {
    border: 2px solid #1e1e2f;
    outline: none;
    border-radius: 5px;
}

.servicefilter {
    color: #1e1e2f;
}

#serviceFilter:focus,
#serviceFilter:visited {
    border: 2px solid #1e1e2f;
    outline: none;
    border-radius: 5px;
}