/* style.css */
body {
    font-family: sans-serif;
    margin: 0;
    display: flex;
    flex-direction: row;
}

.left.menu {
    width: 240px;
    background-color: #282c34;
    color: #e0e0e0;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.left.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.left.menu li {
    margin-bottom: 12px;
}

.left.menu a,
.left.menu input[type="submit"] {
    text-decoration: none;
    color: #b0bec5;
    display: block;
    padding: 10px 18px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.left.menu a:hover,
.left.menu input[type="submit"]:hover,
.left.menu a.active {
    background-color: #383e48;
    color: #fff;
}

.left.menu a.active {
    font-weight: 600;
}

.right.content {
    flex-grow: 1;
    padding: 20px;
    box-sizing: border-box;
}

.form-container {
    border: 1px solid #ccc;
    padding: 20px;
    margin-bottom: 20px;
    width: 600px;
}

/* General label style, but exclude right-column checkbox labels */
label:not(.form-container .right-column label) {
    display: block;
    margin-bottom: 3px;
}

input[type="text"],
input[type="email"],
input[type="datetime-local"],
input[type="number"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    display: block;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    display: block;
    width: 100%;
}

table {
    border-collapse: collapse;
    width: 100%;
}

table, th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

a {
    text-decoration: none;
}

.form-container form {
    display: flex;
    flex-wrap: wrap;
}

.form-container .left-column,
.form-container .right-column {
    flex: 1;
    padding: 0 10px;
    width: auto;
}

.form-container label,
.form-container input,
.form-container select {
    width: 100%;
}

table th:nth-child(2),
table td:nth-child(2),
table th:nth-child(3),
table td:nth-child(3),
table th:nth-child(4),
table td:nth-child(4) {
    width: 10%;
}

/* Specific styling for checkbox labels in the right column */
.form-container .right-column label {
    display: flex;
    align-items: center;
}

/* Ensure spacing for checkboxes in the right column */
.form-container .right-column input[type="checkbox"] {
    margin-left: 5px;
}

.form-container form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.form-container .left-column,
.form-container .right-column {
    flex: 1;
    padding: 10px;
}

.right-column {
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.right-column label {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between checkbox and text */
    white-space: nowrap; /* Prevents text from wrapping */
}

.right-column input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.form-container label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="datetime-local"],
input[type="number"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    display: block;
}

