/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f3f4f6;
    color: #374151;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

h1 {
    color: #2d6a4f;
    text-align: center;
    font-weight: bold;
    font-size: large;
    padding-bottom: 10px;
}

h2 {
    color: #2d6a4f;
    text-align: center;
    font-weight: bold;
    font-size: medium;
    padding-bottom: 10px;
}

br {
    padding-bottom: 10px;
}

label {
    color: #2d6a4f;
    text-align: center;
    font-weight: bold;
    font-size: medium;
    padding-bottom: 10px;
}

/* Form Styles */
form {
    background: #d1d5db;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 10px;
}

input, button {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #9ca3af;
    font-size: 16px;
    background: #eaf2ff;
}

button {
    background-color: #2d6a4f;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #1b4332;
}

/* Table Styles */
table {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
    background: #e5e7eb;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    table-layout: auto;
    word-wrap: break-word;
    margin-bottom: 10px;
}

thead {
    background-color: #2d6a4f !important;
    color: white;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #9ca3af;
    white-space: nowrap;
    min-width: 120px;
}

th {
    background-color: #2d6a4f;
    color: white;
    font-weight: bold;
}

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

/* Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 600px) {
    form, table {
        width: 90%;
    }
    th, td {
        white-space: normal;
        min-width: auto;
    }
}

div.availabilityForm form {
    display: grid;
    grid-template-columns: max-content max-content max-content max-content max-content;
    grid-gap: 5px;
    max-width: max-content;
}

div.availabilityForm button {
    position: relative;
    left: 105%;
}

input[type="checkbox"] {
    all: revert;
    width: 16px;
    height: 16px;
    accent-color: #2d6a4f;
    cursor: pointer;
}
