/* General Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 16px; /* Adjusted for smaller screens */
    text-align: left;
}

table thead tr {
    background-color: #f4f4f9;
    border-bottom: 2px solid #ddd;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
    word-wrap: break-word; /* Prevent overflow issues */
}

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

/* Button Styles */
button {
    margin: 5px;
    padding: 8px 12px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-size: 14px; /* Adjusted for readability */
    position: relative;
    z-index: 10; /* Ensure the button is above other content */
    cursor: pointer;
}

button.called {
    background-color: #f39c12;
    color: white;
}

button.seated {
    background-color: #27ae60;
    color: white;
}

button.cancel {
    background-color: #e74c3c;
    color: white;
}

button.delete {
    background-color: #c0392b;
    color: white;
}

/* Search Bar Styles */
#search-bar {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Table Headers */
th {
    cursor: pointer;
    background-color: #f4f4f9;
    padding: 8px;
}

th:hover {
    background-color: #eaeaea;
}

/* Responsive Styles for 8-inch Mobile Devices */
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
        margin: 10px;
    }

    table {
        font-size: 14px; /* Reduced font size for better fit */
    }

    th, td {
        padding: 8px; /* Adjusted padding for smaller screens */
    }

    /* Buttons */
    button {
        font-size: 12px;
        padding: 6px 10px;
        position: relative;
        z-index: 10; /* Ensure the button is above other content */
        cursor: pointer;
    }

    /* Search Bar */
    #search-bar {
        font-size: 14px;
        padding: 8px;
    }

    /* Add Overflow Scroll for Tables on Small Screens */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Pagination Container */
    #pagination-container {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
    }

    /* Improve Touch-Friendly Interaction */
    th, td, button {
        touch-action: manipulation;
    }

}
