body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}
.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: 100px;
    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 */
}

.container {
    width: 90%;
    max-width: 1400px;
    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 */
}

 tr.fade {
    opacity: 1;
    transition: opacity 0.3s ease;
  }
  tr.fade.out {
    opacity: 0;
  }

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

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);
    table-layout: auto; /* Allows columns to adjust dynamically */
}

/* Ensure text wraps properly inside columns */
th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .hide-on-small {
        display: none;
    }

    table {
        width: 100%;
        min-width: unset; /* Allows the table to shrink naturally */
    }

    th, td {
        padding: 6px;
        font-size: 11px;
    }
}


@media screen and (max-width: 350px) {
    .hide-on-smaller {
        display: none;
    }

    table {
        width: 100%;
        min-width: unset; /* Allows the table to shrink naturally */
    }

    th, td {
        padding: 8px;
        font-size: 12px;
    }
}






/* Scrollable Table for Small Screens */
.table-container {
    width: 100%;
    overflow-x: auto; /* Enables horizontal scrolling on small screens */
}

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;
}


/* Logout button adjustments */
.logout-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    display: block; /* Ensures it doesn’t overlap */
    width: 100%;
    text-align: center;
}

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


/* Table Filtering */

.filter-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
.filter-dropdown {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}
.filter-dropdown.show {
    display: block;
}
.apply-filter, .select-all {
    display: block;
    margin-top: 5px;
    background: blue;
    color: white;
    padding: 5px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}
.expandable-row {
    display: none;
}
.expandable-row.show-row {
    display: table-row;
}