body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 150px;
}

nav {
    width: 100%;
    background-color: #333;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: white;
}

nav ul li a:hover {
    background-color: #575757;
}

.content {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-input, .form-select, .form-checkbox {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn-green {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.btn-green:hover {
    background-color: #45a049;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: auto;
}

th, td {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

th {
    color: white;
    background-color: #2c3e50;
}

th.first-name, th.last-name, th.phone-number, th.check-in-date, th.action {
    background-color: #2c3e50; /* Dark blue */
}

th.age-0-17 {
    background-color: #8e44ad; /* Dark purple */
}

th.age-18-59 {
    background-color: #2980b9; /* Dark blue */
}

th.age-60-plus {
    background-color: #27ae60; /* Dark green */
}

td.category {
    background-color: #f0f0f0;
    font-weight: bold;
    text-align: center;
}

.section-title {
    font-weight: bold;
    text-align: center; /* Center align text */
    background-color: #ddd; /* Optional: Light grey background */
    padding: 10px 0; /* Optional: Add some padding */
    font-size: 1.2em; /* Optional: Increase font size */
}

.btn-green, .btn-edit {
    background-color: #27ae60; /* Dark green */
    color: white;
    border: none;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}

.btn-red {
    background-color: #c0392b;
    color: white;
    border: none;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination a, .pagination span {
    margin: 0 10px;
    padding: 5px 10px;
    text-decoration: none;
}

.pagination a {
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
}

.pagination span {
    font-weight: bold;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .content {
        width: 90%;
    }

    .form-input, .form-select, .form-checkbox {
        font-size: 16px;
    }

    .btn-green {
        font-size: 18px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        display: none;
    }

    td {
        position: relative;
        padding-left: 50%;
        text-align: left;
        border: 1px solid #ddd;
    }

    td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }

    td:nth-of-type(1):before { content: "First Name"; }
    td:nth-of-type(2):before { content: "Last Name"; }
    td:nth-of-type(3):before { content: "Phone Number"; }
    td:nth-of-type(4):before { content: "License Plate"; }
    td:nth-of-type(5):before { content: "Age 0-17"; }
    td:nth-of-type(6):before { content: "Age 18-59"; }
    td:nth-of-type(7):before { content: "Age 60+"; }
    td:nth-of-type(8):before { content: "Check-In Date"; }
    td:nth-of-type(9):before { content: "Boxes"; }
    td:nth-of-type(10):before { content: "Action"; }
}

/* Additional CSS for Printing */
@media print {
    body {
        -webkit-print-color-adjust: exact;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .table-responsive {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    table {
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
    }

    table th, table td {
        padding: 1px 2px;
        font-size: 10px;
    }

    .btn-green {
        display: none;
    }

    input[type="number"] {
        width: 100%;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 12px;
    }

    .content {
        padding: 0;
        margin: 0;
    }
}

/* Responsive Design for Login Page */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-group .form-label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.login-form .form-group .form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.login-form .form-group .btn-green {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form .form-group .btn-green:hover {
    background-color: #45a049;
}

@media (max-width: 768px) {
    .login-container {
        width: 90%;
        margin: 20px auto;
        padding: 20px;
    }

    .login-form .form-group .form-input {
        font-size: 16px;
        padding: 12px;
    }

    .login-form .form-group .btn-green {
        font-size: 18px;
        padding: 12px;
    }
}

/* Age columns with restored colors */
th.age-0-17 {
    background-color: #8e44ad; /* Dark purple */
    color: white;
}
th.age-18-59 {
    background-color: #2980b9; /* Dark blue */
    color: white;
}
th.age-60-plus {
    background-color: #27ae60; /* Dark green */
    color: white;
}

/* Buttons styling for actions */
.btn-red {
    background-color: #c0392b; /* Red */
    color: white;
    border: none;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}
.btn-red:hover {
    background-color: #a93226; /* Darker red on hover */
}
.btn-green {
    background-color: #27ae60; /* Green */
    color: white;
    border: none;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}
.btn-green:hover {
    background-color: #229954; /* Darker green on hover */
}

/* Add spacing between users on mobile */
@media (max-width: 768px) {
    tbody tr {
        margin-bottom: 20px; /* Add space between user rows */
        border-bottom: 1px solid #ddd; /* Optional: Add a border for clearer separation */
        padding-bottom: 10px;
    }
    td {
        position: relative;
        padding-left: 50%;
    }
    td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
    }
    td:nth-of-type(1):before { content: "First Name"; }
    td:nth-of-type(2):before { content: "Last Name"; }
    td:nth-of-type(3):before { content: "Phone Number"; }
    td:nth-of-type(4):before { content: "License Plate"; }
    td:nth-of-type(5):before { content: "Age 0-17"; }
    td:nth-of-type(6):before { content: "Age 18-59"; }
    td:nth-of-type(7):before { content: "Age 60+"; }
    td:nth-of-type(8):before { content: "Check-In Date"; }
    td:nth-of-type(9):before { content: "Boxes"; }
    td:nth-of-type(10):before { content: "Action"; }
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 10px 15px; /* Adjust padding for smaller screens */
    text-decoration: none;
    color: white;
    font-size: 14px; /* Reduce font size for smaller screens */
    white-space: nowrap; /* Prevent text wrapping within items */
}

nav ul li a:hover {
    background-color: #575757;
}

@media (max-width: 768px) {
    nav {
        padding: 5px 0; /* Adjust padding for the nav container */
    }

    nav ul {
        flex-wrap: wrap; /* Allow items to wrap for smaller screens */
        justify-content: space-around; /* Space items evenly */
    }

    nav ul li a {
        padding: 8px 10px; /* Further adjust padding on smaller screens */
        font-size: 12px; /* Further reduce font size for smaller screens */
    }
}
