body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
}

.top-panel, .bottom-panel {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    border-bottom: 2px solid #333;
}

.top-panel {
    height: 60vh; /* Top 60% of the screen */
    overflow-y: auto;
    background-color: #1a1a1a;
}

.bottom-panel {
    height: 40vh; /* Bottom 40% of the screen */
    background-color: #0d0d0d;
    display: flex;
    flex-direction: column;
}

h2 {
    text-align: center;
    color: #00ffcc;
    margin-bottom: 20px;
}

h3 {
    color: #99ffcc;
    margin-top: 15px;
    margin-bottom: 10px;
}

/* New styles for order type selection (HOT/OIL) */
.type-selection {
    margin-bottom: 20px;
}

.type-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.type-btn {
    flex: 1; /* Make type buttons take equal width */
    padding: 12px 20px;
    font-size: 18px;
    background-color: #555; /* Different color for type buttons */
    border-color: #777;
}

.type-btn.selected {
    background-color: #00ffcc; /* Selected type button color */
    color: black;
    font-weight: bold;
    border-color: #00ffcc;
}


/* Order sections (HOT/OIL) */
.order-sections {
    display: flex;
    flex: 1;
    width: 100%;
    overflow: hidden;
}

.order-section {
    flex: 1;
    padding: 10px;
    border-right: 1px solid #333;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.order-section:last-child {
    border-right: none;
}

.order-section h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    color: #00ffcc;
}

.time-selection, .menu-selection {
    margin-bottom: 20px;
}

.time-buttons, .menu-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

button {
    background-color: #333;
    color: white;
    border: 1px solid #555;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s, border-color 0.2s;
    min-width: 50px;
    text-align: center;
}

button:hover {
    background-color: #555;
    border-color: #777;
}

button.selected {
    background-color: #00ffcc;
    color: black;
    font-weight: bold;
    border-color: #00ffcc;
}

#add-order-btn, #reset-selection-btn {
    background-color: #0088cc;
    border-color: #0088cc;
    padding: 12px 20px;
    font-size: 18px;
    margin-top: 10px;
    margin-right: 10px;
}

#add-order-btn:hover, #reset-selection-btn:hover {
    background-color: #00aaff;
    border-color: #00aaff;
}

.current-selection p {
    font-size: 18px;
    margin: 5px 0;
    color: #cccccc;
}

.current-selection span {
    font-weight: bold;
    color: #00ffcc;
}

.order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 5px;
}

.order-item {
    background-color: #333;
    border: 1px solid #555;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: white;
    text-align: center;
    transition: background-color 0.2s;
    position: relative;
    word-break: break-word;
    cursor: pointer; /* Make it clickable for deletion */
}

.order-item:hover {
    background-color: #444;
}

/* Hide the 'X' button, as the whole item is clickable for deletion */
.order-item .delete-btn {
    display: none;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .time-buttons, .menu-buttons, .type-buttons {
        justify-content: center;
    }
    button {
        font-size: 12px;
        padding: 6px 10px;
        min-width: 35px;
    }
    .type-btn {
        font-size: 14px;
        padding: 8px 12px;
    }
    #add-order-btn, #reset-selection-btn {
        font-size: 14px;
        padding: 8px 12px;
    }
    .order-item {
        font-size: 14px;
        padding: 8px;
    }
    .order-sections {
        flex-direction: column;
    }
    .order-section {
        border-right: none;
        border-bottom: 1px solid #333;
    }
    .order-section:last-child {
        border-bottom: none;
    }
}