body {
    background-color: #222;
    color: #fff;
    font-family: Arial, sans-serif;
    overflow-y: scroll;
}

a:link {
    color: white;
    text-decoration: underline;
}

a:visited {
    color: lightgray;
}

.box,
.tab {
    width: auto;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 10px;
    padding: 20px;
    background-color: #333;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.box header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box header a {
    text-decoration: none;
}

.box h2 {
    text-align: center;
    margin-bottom: 10px;
}

.box label,
.modal-box label {
    display: block;
    margin-bottom: 5px;
}

.box input[type="text"],
.box input[type="password"],
.box input[type="datetime-local"],
.box input[type="file"],
.box textarea,
.modal-box input[type="text"],
.modal-box input[type="password"],
.modal-box input[type="datetime-local"],
.modal-box input[type="file"],
.modal-box textarea,
.modal-box button,
.button-style,
.enroll-button {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #444;
    border: none;
    color: #fff;
}

.modal-box button,
.button-style,
.enroll-button {
    display: inline-block;
    background-color: #555;
    cursor: pointer;
}

.modal-box textarea,
.box textarea {
    height: auto;
    min-height: 100px;
    font-family: inherit;
    resize: vertical;
}

a.button-style {
    text-decoration: none;
    /* Removes underline */
}

.box input[type="submit"],
.modal-box input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #555;
    border: none;
    color: #fff;
    cursor: pointer;
}

.box input[type="submit"]:hover,
.modal-box input[type="submit"]:hover {
    background-color: #666;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #333;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: auto;
    max-width: 800px;
    color: #fff;
}

.modal-box {
    position: relative;
    border: 1px solid #ccc;
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.modal-box button,
.button-style {

    text-align: center;
    text-decoration: none;
    outline: none;
    font-size: 14px;
}

.modal-box button:hover,
.button-style:hover {
    background-color: #666;
}

.close,
.add-icon,
.csv-icon,
.user-csv-icon {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus,
.add-icon:hover,
.add-icon:focus,
.csv-icon:hover,
.csv-icon:focus,
.user-csv-icon:hover, 
.user-csv-icon:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.user-csv-icon,
.csv-icon {
    font-size: 22px;
}

.ulfix {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
}

.delete-icon,
.edit-icon,
.icon {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.inline-edit-icon {
    cursor: pointer;
}

.hidden {
    display: none;
}

.tab,
.no-scroll {
    overflow: hidden;
}

.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    color: #ddd;
    margin-right: 0;
    font-size: 100%;
}

.tab button:hover {
    background-color: #666;
}

.tab button.active {
    background-color: #555;
    color: #fff;
}

.tabcontent {
    display: none;
}

/* Ensure .toggle-buttons are displayed in a row */
.toggle-buttons {
    display: flex;
    flex-wrap: nowrap;
    /* Prevents wrapping to the next line */
    justify-content: start;
    /* Align items to the start of the container */
    gap: 10px;
    /* Optional: Adds some space between the buttons */
}

/* Adjust .toggle-btn to follow a dark theme */
.toggle-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    border: 1px solid #444;
    background-color: #333;
    color: #ddd;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn input[type="checkbox"]:checked+span {
    background-color: #555;
    color: #fff;
}

.toggle-btn:hover {
    background-color: #444;
}

.toggle-btn.checked {
    background-color: #555;
    color: white;
}

.inline-edit-dropdown {
    background-color: #333;
    color: #fff;
    padding: 2px 5px;
    font-size: 16px;
    cursor: pointer;
}

.inline-edit-dropdown option {
    color: #0000FF; /* Blue text */
}

.inline-edit-dropdown:hover {
    background-color: #444;
}

.inline-edit-dropdown:focus {
    outline: none;
}

/* hmmmmmm */
.custom-table {
    border-collapse: collapse;
    width: 100%;
    background-color: #333; /* Dark grey background */
    color: #fff; /* White text */
}

.custom-table th, .custom-table td {
    border: 1px solid #555; /* Dark grey border */
    padding: 8px;
    text-align: left;
}

.custom-table th {
    background-color: #555; /* Dark grey background for headers */
}

/* .custom-table tr:nth-child(even) {
    background-color: #444;  Darker grey background for even rows 
} */

.custom-table tr:hover {
    background-color: #666; /* Darker grey background on hover */
}

/* Responsive table */
@media screen and (max-width: 600px) {
    .custom-table {
        overflow-x: auto; /* Enable horizontal scrolling on small screens */
    }
}