/* Global Styles */
:root {
    --background-color: rgb(27, 30, 32);
    --panel-color: rgb(42, 46, 50);
    --border-color: rgb(90, 94, 98);
    --button-color: rgb(49, 54, 59);
    --hover-color: rgb(61, 174, 233);
    --active-color: rgb(34, 78, 101);
    --text-color: rgb(252, 252, 252);
    --error-color: rgb(192, 57, 43);
    --row-color-even: rgb(35, 38, 41);
    --row-color-odd: rgb(27, 30, 32);
    --link-color: rgb(29, 153, 243);
}
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
body {
	font-family: Noto, sans-serif;
    font-size: 14px;
	background-color: var(--background-color);
	color: var(--text-color);
	height: 100vh;
	margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
a:link {
    color: var(--link-color);
}
a:visited {
    color: var(--link-color);
}
.logo-header {
    margin: 20px; /* Space above the logo */
}
.title {
    font-size: 24px; /* Adjust font size as needed */
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 50px; /* Space between title and panels */
}
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Allow content to grow and center vertically */
}
.login-button,
.table-button,
.form-group select,
.form-button,
.logout-button {
    background-color: var(--button-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 1px rgba(0, 0, 0, 0.30);
}
.login-button:hover,
.table-button:hover,
.form-group select:hover,
.form-button:hover,
.logout-button:hover {
    border-color: var(--hover-color);
}
.login-button:active,
.table-button:active,
.form-group select:active,
.form-button:active,
.logout-button:active {
    background-color: var(--active-color);
    border-color: var(--hover-color);
}
.logout-button {
    margin: 20px 0;
    padding: 10px 20px;
    text-decoration: none;
}
.logout-button:link {
    color: var(--text-color);
}
.logout-button:visited {
    color: var(--text-color);
}
.table-container {
    width: 1600px;
    max-height: 800px; /* Set the height of the container */
    overflow-y: auto; /* Enable vertical scrolling */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.30);
}
input,
.search-bar {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
    outline: none;
}
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0px;
    border: none; /* Remove border for the table */
}
th, td {
    padding: 10px;
    text-align: left;
}
th {
    cursor: pointer;
    background-color: var(--panel-color);
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1;
    padding-right: 24px;
}
th:last-of-type, td:last-of-type {
    text-align: right; /* Align Actions column to the right */
    padding-right: 10px;
}
th:hover {
    background-color: var(--active-color);
}
th.sort-asc::after {
    content: "";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; /* Adjust width as needed */
    height: 16px; /* Adjust height as needed */
    background-image: url('img/sort-asc.png');
    background-size: contain;
    background-repeat: no-repeat;
}
th.sort-desc::after {
    content: "";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; /* Adjust width as needed */
    height: 16px; /* Adjust height as needed */
    background-image: url('img/sort-desc.png');
    background-size: contain;
    background-repeat: no-repeat;
}
th:first-of-type {
    border-top-left-radius: 5px;
}
th:last-of-type {
    border-top-right-radius: 5px;
    border-right: none;
}
tr:last-of-type td:first-of-type {
    border-bottom-left-radius: 5px;
}
tr:last-of-type td:last-of-type {
    border-bottom-right-radius: 5px;
}
tr.even {
    background-color: var(--row-color-even);
}
tr.odd {
    background-color: var(--row-color-odd);
}
td.actions {
    width: 88px;
}
