/* Sticky Footer Layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-size: 1rem; /* Base font size */
    box-sizing: border-box;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
}

header {
    background: #96BBB4;
    color: black;
    text-align: center;
    padding: 1em 0;
    width: 100%;
}

footer {
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid #ddd;
    background: #96BBB4;
    color: black;
    width: 100%;
    margin-top: 0;
}

/* Navigation Bar */
nav {
    background: #fff;
    padding: 1em;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #333;
    margin: 0 10px;
    font-size: 1rem;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
}

.item-list img {
    max-width: 100px;
    height: auto;
}

form {
    display: flex;
    flex-direction: column;
}

form input, form select, form textarea {
    margin-bottom: 10px;
    padding: 10px;
    font-size: 1rem;
}

form button {
    background: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    width: fit-content;
}

form button:hover {
    background: #45a049;
}

button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    width: fit-content;
}

button:hover {
    background: #45a049;
}

/* Responsive Table Styling */
.responsive-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table-row {
    display: table-row;
    border-bottom: 1px solid #ddd;
}

.table-cell {
    display: table-cell;
    padding: 2px;
    vertical-align: middle;
}

.table-header {
    font-weight: bold;
    background: #f4f4f4;
}

/* Media Queries for Smaller Screens */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    .container {
        padding: 10px;
    }

    form input, form select, form textarea, form button {
        font-size: 0.9rem;
        padding: 1px;
        width: auto;
    }

    button {
        text-align: center;
    }

    .responsive-table {
        display: block;
    }

    .table-row {
        display: block;
        border-bottom: 1px solid #ddd;
        margin-bottom: 10px;
    }

    .table-cell {
        display: block;
        text-align: left;
    }

    img {
        max-width: 100%; /* Ensure images scale down */
        height: auto;
    }
}

#categoryPopup, #locationPopup {
    display: none; /* Initially hidden */
    position: fixed; /* Ensures the popup stays in place */
    top: 50%; /* Align vertically in the middle */
    left: 50%; /* Align horizontally in the middle */
    transform: translate(-50%, -50%); /* Centers the popup */
    z-index: 1000; /* Ensures it appears above other content */
    background: white; /* Background color */
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Adds a shadow */
    padding: 20px;
    width: 80%; /* Adjust the width */
    max-width: 600px; /* Prevent the popup from being too large */
    border-radius: 8px; /* Optional rounded corners */
}
iframe {
    width: 100%; /* Makes iframe take the full width of the popup */
    height: 400px; /* Adjust the height */
    border: none;
}
.close-btn {
    display: block;
    margin: 10px auto 0;
    padding: 8px 12px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

/* Mobile-Friendly Styling for Very Small Screens */
@media (max-width: 480px) {
    body {
        font-size: 0.9rem; /* Slightly reduce base font size */
    }

    nav a {
        font-size: 0.9rem; /* Reduce font size in navigation links */
    }

    form {
        flex-direction: column;
    }

    form input, form select, form textarea, form button {
        font-size: 0.8rem;
        padding: 1px;
        width: auto;
    }

    .table-cell::before {
        width: 100px; /* Adjust table headers for smaller devices */
    }

    button {
        padding: 8px;
    }
}