body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

label {
    font-weight: bold;
}

h3 {
    padding-left: 5px;
}

h1 {
    padding-left: 5px;
}

input[read-only],
textarea[read-only] {
    background-color: #f9f9f9;
}

.text-align-right {
    text-align: right;
}

.text-align-left {
    text-align: left;
}

.header-font {
    padding-left: 5px;
}

.logincontainer {
    text-align: center;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.logincontainer img {
    width: 200px;
    margin-bottom: 20px;
}

.logincontainer h1 {
    margin-bottom: 20px;
    font-size: 24px;
}

.logincontainer form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.minibutton {
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px;
}

.minibutton:hover {
    background-color: #575757;
}

.textarea {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #666;
    min-width: 550px;
    margin-bottom: 10px;
    margin-left: 10px;
}

.textarea:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.25);
}

/* Styling for text input */
.longtextentry {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #666;
    min-width: 400px;
    margin-bottom: 10px;
    margin-left: 10px;
}

.longtextentry:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.25);
}

.minitextentry {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #666;
    min-width: 50px;
    margin-bottom: 10px;
    margin-left: 10px;
}

.minitextentry:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.25);
}

/* Styling for select input */
.longselectelement {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #666;
    min-width: 400px;
    margin-bottom: 10px;
    margin-left: 10px;
}

.longselectelement:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.25);
}

.miniselectelement {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #666;
    min-width: 100px;
    margin-bottom: 10px;
    margin-left: 10px;
}

.miniselectelement:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.25);
}

input[type="password"] {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #666;
    min-width: 200px;
    margin-bottom: 10px;
    margin-left: 10px;
}

input[type="password"]:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.25);
}

.container {
    margin: 20px auto;
    max-width: 1280px;
}

.carddiv-mini {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.table-container {
    width: 100%;
    overflow-x: auto; /* Enable horizontal scrolling if necessary */
}

.resultstable {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

.resultstable th,
.resultstable td {
    padding: 12px 15px;
    text-align: left;
}

.resultstable th {
    background-color: #f4f4f9;
    font-weight: bold;
}

.resultstable tr:nth-child(even) {
    background-color: #f9f9f9;
}

.listtable th,
.listtable td {
    padding: 10px 12px;
}
.listtable tr:nth-child(even) {
    background-color: #f9f9f9;
}

.redtext {
    color: red;
    font-weight: bold;
}

.orangetext {
    color: orange;
    font-weight: bold;
}

.greentext {
    color: green;
    font-weight: bold;
}

.navbar {
    background: #333;
    color: #fff;
    display: flex;
    justify-content: space-between; /* Center horizontally */
    align-items: center; /* Center vertically */
    padding: 10px 20px;
    max-width: 1240px;
    margin: 20px auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 10px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #444;
    border-radius: 5px;
    transition:
        background-color 0.3s,
        color 0.3s;
}

.nav-menu a:hover {
    background-color: #575757;
}

/* Toggle button styles */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: #fff;
    height: 2px;
    width: 25px;
    border-radius: 2px;
    position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: "";
    position: absolute;
}

.nav-toggle-label span::before {
    top: -8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

.linkbutton {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 10px;
    background-color: #444;
    border-radius: 5px;
    transition:
        background-color 0.3s,
        color 0.3s;
}

.linkbutton:hover {
    background-color: #575757;
    color: #e6e6e6;
}

.toggle-theme-container p {
    margin: 0;
}

.checkbox-container {
    display: block;
    position: relative;
    margin-bottom: 32px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
    text-decoration: none;
    text-align: center;
}

/* Hide the browser's default checkbox */

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkbox-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 30px;
    width: 30px;
    border: 0.7px solid #666;
}

/* On mouse-over, add a grey background color */
.checkbox-checkmark:hover {
    background-color: #575757;
}

/* When the checkbox is checked, add a pink background */
.checkbox-container input:checked ~ .checkbox-checkmark {
    background-color: #444;
}

.checkbox-container input:disabled ~ .checkbox-checkmark {
    background-color: #444;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked ~ .checkbox-checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkbox-checkmark:after {
    left: 10px;
    width: 7px;
    height: 20px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.radio-container {
    display: block;
    position: relative;
    margin-bottom: 32px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
    text-decoration: none;
    text-align: center;
}

/* Hide the browser's default checkbox */

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.radio-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    border: 0.7px solid #666;
    border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.radio-checkmark:hover {
    background-color: #575757;
}

/* When the checkbox is checked, add a pink background */
.radio-container input:checked ~ .radio-checkmark {
    background-color: #444;
}

.radio-container input:disabled ~ .radio-checkmark {
    background-color: #444;
}

/* Create the checkmark/indicator (hidden when not checked) */
.radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.radio-container input:checked ~ .radio-checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.radio-container .radio-checkmark:after {
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* Responsive styles */
@media (max-width: 1280px) {
    .nav-menu {
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        background: #333;
        flex-direction: column;
        display: none;
        text-align: center;
    }

    .nav-menu li {
        margin: 10px 0;
        padding: 10px 20px;
        background-color: #444;
        border-radius: 5px;
    }

    .nav-toggle:checked + .nav-toggle-label + .nav-menu {
        display: flex;
    }

    .nav-toggle-label {
        display: block;
    }
}
