body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    background-color: #f4f4f4;
}

.sidebar {
    width: 250px;
    background-color: #343a40;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar h2 {
    margin: 0 0 20px 0;
    text-align: center;
}

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

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    background-color: #495057;
}

.sidebar ul li a:hover {
    background-color: #007bff;
    color: white;
}

.main-content {
    flex: 1;
    padding: 20px;
    background-color: #ffffff;
    overflow-y: auto;
    position: relative;
}

h1 {
    margin-bottom: 20px;
}

form {
    margin-bottom: 20px;
}

form input,
form select,
form textarea {
    display: block;
    width: calc(100% - 20px);
    margin: 10px auto;
    padding: 10px;
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

thead {
    background-color: #343a40;
    color: white;
}

th,
td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    text-align: left;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    padding: 10px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
    justify-content: space-between;
    align-items: center;
}

ul li button {
    margin-left: 10px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

ul li button:hover {
    background-color: #c82333;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    box-sizing: border-box;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#cancelSeriesBtn,
#cancelBtn {
    background-color: #6c757d;
}

#cancelSeriesBtn:hover,
#cancelBtn:hover {
    background-color: #5a6268;
}

#summary {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
}

.summary-item {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    width: 200px;
}

.summary-item h2 {
    margin: 0 0 10px 0;
}

.summary-item p {
    font-size: 24px;
    margin: 0;
}

.login-container {
    width: 300px;
    margin: 100px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-container input {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 10px;
    border: 10px solid #ddd;
    border-radius: 5px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #0056b3;
}

/* Add this to indicate sortable columns with arrows */
th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
    /* Adjusted to make space for the arrow */
}

.sort-arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 5px;
}

.sort-arrow::before {
    content: '▲';
    display: none;
}

.sort-arrow.sort-asc::before {
    display: inline;
}

.sort-arrow.sort-desc::after {
    display: inline;
    content: '▼';
}

.sort-arrow.sort-desc::before {
    display: none;
}