body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    /* Center the container horizontally */
    align-items: center;
    /* Center the container vertically */
    padding: 20px;
    box-sizing: border-box;
}


/* html,
body {
    height: 100%;
} */

.login-container {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 320px;
    text-align: center;
    position: relative;
    /* Make it relative to its current position */
    margin: auto;
    /* Center horizontally */
    display: flex;
    flex-direction: column;
    /* Ensures the content stays vertical inside the login container */
    justify-content: center;
    /* Ensures the content inside is centered */
    min-height: 100px;
    /* Ensure a minimum height */
}

.login-container img {
    width: 250px;
    height: auto;
    margin-bottom: 20px;
}

.login-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-container input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.login-container input[type="submit"]:hover {
    background-color: #0056b3;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    display: none;
    /* Initially hidden */
}

.mainLogo {
    display: flex;
    justify-content: center;
    /* Center the content horizontally */
    align-items: center;
    /* Center the content vertically (optional) */
    margin-bottom: 20px;
    /* Space below the logo */
    height: 100px;
    /* Adjust height as needed */
}

.mainLogo img {
    width: 200px;
    /* Set the width of the logo */
    height: auto;
    /* Maintain aspect ratio */
}


/* New Table Styles */

.container {
    width: 90%;
    max-width: 1200px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: auto;
    /* Allows the container to expand naturally */
    box-sizing: border-box;
    flex-grow: 1;
    /* Ensures that it can grow */
    height: auto;
    /* Let the container grow with the content */
    overflow: visible;
    /* Ensure no internal scroll bar */
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 15px;
    }
}

.logo-image {
    width: 200px;
    /* Set width to 100px */
    height: auto;
    /* Maintain aspect ratio */
}

h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    clear: both;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

th,
td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    word-wrap: break-word;
    /* Ensures long words break inside the cell */
}

th {
    background-color: #f8f8f8;
    color: #333;
    font-weight: bold;
}

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


/* CSS to handle the building statuses */


/* Orange background for "Maybe in Building" (Break Out, Break In) */

tr.maybe-in-building td {
    background-color: #ffd580;
}


/* Light red background for "In Building" (Check In) */

tr.in-building td {
    background-color: #ffdddd;
}


/* Green background for "Not in Building" (Check Out) */

tr.not-in-building td {
    background-color: #ddffdd;
}


/* Optional: Text colors for status column */

.status-in {
    color: #000000;
    /* font-weight: bold; */
}

.status-not-in {
    color: #000000;
    /* font-weight: bold; */
}

.status-maybe-in {
    color: #000000;
    /* font-weight: bold; */
}


/* Expandable rows */

.expandable-row {
    display: none;
    background-color: #f9f9f9;
}

.expandable-row td {
    border-top: none;
    padding-top: 0;
    padding-bottom: 0;
}

.show-row {
    display: table-row;
}

.toggle-button {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
}

.toggle-button:hover {
    color: #0056b3;
}


/* Log Out button styles */

.logout-button {
    background-color: #1A6B55;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: 20px;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background-color: #4CA785;
}

.filter-project {
    background-color: #17856a;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

.filter-project:hover {
    background-color: #4CA785;
}


/* Flex container to keep both labels and inputs on the same line */

.date-input-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    /* Smaller gap between the inputs */
}


/* Styling the label and inputs */

#dateForm label {
    display: block;
    font-size: 14px;
    /* Slightly smaller labels */
    margin-bottom: 5px;
}

.date-input-container .input-group {
    flex: 1;
}


/* Input styling */

#dateForm input {
    padding: 8px;
    width: 85%;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}


/* Submit button styling */

#dateForm button {
    padding: 8px 16px;
    background-color: #1A6B55;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 98%;
    font-size: 16px;
}

#dateForm button:hover {
    background-color: #4CA785;
}


/* Container for the form */

.form-container {
    background-color: #f9f9f9;
    padding: 10px;
    /* Smaller padding for a compact form */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 200;
    /* Restrict width to a smaller size */
    margin-left: 20px;
    /* Adjust margin to position it relative to the logout button */
    position: fixed;
    top: 80px;
    left: 0px;
}


/* Responsive behavior for smaller screens */

@media (max-width: 768px) {
    .form-container {
        position: relative;
        max-width: 100%;
        /* Full width on smaller screens */
        margin: 0 auto;
        top: 0;
        /* Move it above the table */
    }
    .events-table {
        margin-top: 20px;
        /* Adjust margin to avoid overlap */
    }
}