/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body Styling */
body {
    background-color: #f9f9f9;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Main Container */
.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Header */
h1, h2, h3 {
    margin-bottom: 20px;
    color: #444;
    text-align: center;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-weight: bold;
}

form input[type="text"],
form input[type="password"],
form input[type="datetime-local"],
form textarea,
form button {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

form textarea {
    min-height: 100px;
}

form button {
    background: #007BFF;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background: #0056b3;
}

/* Navigation Links */
a {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
}

a:hover {
    color: #0056b3;
}

/* Table Styling (e.g., for displaying logs) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

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

/* Button Styles */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #28a745;
    color: #fff;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}

.button:hover {
    background: #218838;
}

/* Danger Button (e.g., delete) */
.button-danger {
    background: #dc3545;
}

.button-danger:hover {
    background: #c82333;
}

/* Form Group Styling */

.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Adds gap between items */
}

.checkbox-group label {
    display: inline-flex; /* Ensures the label adjusts to the content size */
    align-items: center; /* Aligns checkbox and text vertically */
    gap: 5px; /* Adds spacing between the checkbox and the text */
}

.checkbox-group input {
    margin: 0; /* Removes extra margins on the checkbox */
    width: auto; /* Ensures the checkbox stays at its natural size */
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 15px;
    }

    table, th, td {
        font-size: 14px;
    }

    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
    }
}

.table-container {
    max-height: 300px; /* Set the desired height */
    overflow-y: auto; /* Enable vertical scrolling */
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

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