body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #000000;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed from center to flex-start */
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    border-radius: 0;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.logo-container {
    background-color: #212121;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.logo {
    width: 300px; /* Increased from 200px */
    filter: brightness(0) invert(1);
}

h1 {
    text-align: center;
    margin: 20px 0;
    font-weight: 600;
    color: #212121;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content {
    padding: 0 20px 40px;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto; /* Center the content within the wider container */
    width: 100%; /* Added to ensure full width */
}

button, .key {
    background-color: #212121;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Specific styles for keypad buttons */
.key {
    width: 70px;
    height: 70px;
    font-size: 24px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    color: #1d1d1f;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Maintain specific colors for clear and enter keys */
.key[data-key="clear"] {
    font-size: 16px;
    background-color: #ff3b30;
    color: #ffffff;
}

.key[data-key="enter"] {
    font-size: 16px;
    background-color: #34c759;
    color: #ffffff;
}

/* Specific styles for add and clear all buttons */
#addButton, #clearAllButton {
    width: 100%;
    max-width: 205px; /* Increased from 400px to 405px */
    padding: 10px 0;
    font-size: 16px; /* Increased font size */
    text-align: center;
    height: 44px;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#clearAllButton {
    background-color: #cc0000;
}

/* Hover states */
button:hover, .key:hover {
    background-color: #333333;
}

#clearAllButton:hover {
    background-color: #ff0000;
}

.key[data-key="clear"]:hover,
.key[data-key="enter"]:hover {
    opacity: 0.9;
}

input[type="text"], select, #confirmButton {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 5px; /* Adjusted margin */
    border: 1px solid #212121;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    max-width: 405px; /* Increased from 400px to 405px */
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.waitlist-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.waitlist-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.waitlist-table th,
.waitlist-table td {
    padding: 15px;
    text-align: left;
}

.waitlist-table th {
    background-color: #212121;
    color: #ffffff;
    font-weight: bold;
}

.waitlist-table td {
    background-color: #f5f5f5;
}

.waitlist-table tr.vip td {
    background-color: #ffffd6; /* Subtle off-yellow color */
    color: #333; /* Darker text color for better contrast */
}

.waitlist-table .removeButton {
    background-color: #cc0000;
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.waitlist-table .removeButton:hover {
    background-color: #ff0000;
}

.waitlist-table tr.vip .removeButton {
    background-color: #cc0000; /* Keeping the remove button red */
    color: #ffffff;
}

.waitlist-table tr.vip .removeButton:hover {
    background-color: #ff0000;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .waitlist-table, .waitlist-table tbody, .waitlist-table tr {
        display: block;
        width: 100%;
    }

    .waitlist-table thead {
        display: none;
    }

    .waitlist-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        overflow: hidden;
        background-color: #f5f5f5;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .waitlist-table td {
        display: block;
        padding: 8px 12px;
        border-bottom: none;
    }

    .waitlist-table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        font-size: 0.9em;
        color: #666;
    }

    .waitlist-table .removeButton {
        display: block;
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }

    .waitlist-table tr.vip {
        background-color: #ffffd6; /* Subtle off-yellow color */
        color: #333; /* Darker text color for better contrast */
    }

    .waitlist-table tr.vip td::before {
        color: #666; /* Keeping the label color consistent */
    }

    /* Styles for VIP indicator on mobile */
    .waitlist-table td[data-label="Name"] span {
        margin-right: 5px;
        color: #ffd700; /* Gold color for the VIP star */
    }

    /* Additional styles for card-like appearance */
    .waitlist-table td[data-label="Name"] {
        font-size: 1.1em;
        font-weight: bold;
    }

    .waitlist-table td[data-label="Waiting"] {
        font-style: italic;
    }
}

.error {
    border-color: #ff3b30 !important;
}

.error-message {
    color: #000000;
    font-size: 14px;
    margin-top: 5px;
    display: none;
    background-color: #ffeeee;
    border-radius: 4px;
    padding: 5px;
    margin-bottom: 10px;
}

.error-message.visible {
    display: block;
}

/* Adjust the confirm button positioning */
#confirmButton {
    margin-top: 10px; /* Reduced from 20px to 10px */
    width: 100%; /* Makes the button take up full width */
    box-sizing: border-box; /* Ensures padding doesn't affect overall width */
    padding: 2.5px;
}

/* Ensure consistent styling with other buttons */
#confirmButton {
    background-color: #212121;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#confirmButton:hover {
    background-color: #333333;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Add space between buttons */
    margin-bottom: 20px;
    width: 100%;
    max-width: 405px; /* Increased from 400px to 405px */
    margin-left: auto;
    margin-right: auto;
}

#addButton {
    background-color: #212121;
}

#addButton:hover {
    background-color: #333333;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* Change from flex to none */
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal:not(.hidden) {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 0;
    text-align: center;
    max-width: 400px; /* Limit width of modal content */
    margin: 0 auto;
}

.modal-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

#confirmClear, #cancelClear {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

#confirmClear {
    background-color: #212121;
    color: #ffffff;
}

#cancelClear {
    background-color: #cc0000;
    color: #ffffff;
}

#confirmClear:hover {
    background-color: #333333;
}

#cancelClear:hover {
    background-color: #ff0000;
}

.wait-time {
    font-size: 14px;
    color: #666666;
    margin: 0; /* Remove top margin */
    width: auto; /* Allow it to take only the space it needs */
}

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

    button, #addButton, #clearAllButton {
        font-size: 14px;
    }

    h1 {
        font-size: 20px;
    }
}

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

    button, #addButton, #clearAllButton {
        font-size: 12px;
    }

    h1 {
        font-size: 18px;
    }
}

/* Add these styles */
#clearAllButton.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#clearAllButton.disabled:hover {
    background-color: #cccccc;
}

.hidden {
    display: none !important;
}

#formContainer {
    width: 100%;
    max-width: 405px; /* Increased from 400px to 405px */
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

#formContainer:not(.hidden) {
    display: flex;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    li {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 5px;
    }

    .remove-button-container {
        grid-column: 1 / -1;
        justify-self: center;
    }
}

/* Larger VIP checkbox */
#vipToggle {
    width: 30px;
    height: 30px;
    cursor: pointer;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.form-row label {
    margin-right: 10px;
    font-size: 16px;
    line-height: 30px;
    vertical-align: middle;
}
