* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    transition: all 0.2s ease;
}

body { 
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #E7E4E1;
    color: #333;
    line-height: 1.5;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #B2A59B;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Place Selection */
.place-dropdown {
    padding: 10px;
    text-align: center;
}

.place-dropdown select {
    height: 50px;
    width: 100%;
    max-width: 200px;
    padding: 0 15px;
    font-size: 16px;
    background: #C0DCDD;
    border: 1px solid #7d7d7d;
    cursor: pointer;
    color: #000;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.place-dropdown select:focus {
    background-color: #02979D;
    color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 151, 157, 0.3);
}

.place-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px;
}

.place-buttons button {
    height: 50px;
    padding: 0 15px;
    font-size: 16px;
    background: #C0DCDD;
    border: 1px solid #7d7d7d;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.place-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.place-buttons button.active {
    background: #02979D;
    color: white;
    box-shadow: 0 0 0 2px white, 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Info Bar */
.info-box {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    background: #01696C;
    height: 40px;
    color: #F4FBFD;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.open-orders {
    width: 33%;
    text-align: left;
}

.open-orders button {
    height: 100%;
    width: 50%;
    background: #F6B855;
    border: 1px solid #7d7d7d;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.open-orders button:hover {
    background: #e0a74b;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.selected-table {
    width: 33%;
    text-align: center;
    line-height: 20px;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.employee-name {
    width: 33%;
    text-align: right;
    line-height: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
}

.employee-name a {
    color: #F4FBFD;
    text-decoration: none;
    cursor: pointer;
    padding: 5px 10px;
    display: inline-block;
    border-radius: 6px;
    font-weight: 500;
}

.employee-name a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.employee-name .dropdown {
    position: absolute;
    right: 0;
    top: 40px;
    background: #01696C;
    border: 1px solid #7d7d7d;
    z-index: 1001;
    min-width: 120px;
    display: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.employee-name .dropdown.active {
    display: block;
}

.employee-name .dropdown a {
    display: block;
    padding: 8px 15px;
    color: #F4FBFD;
    text-decoration: none;
}

.employee-name .dropdown a:hover {
    background: #02979D;
}

/* Main Container */
.container {
    display: flex;
    margin-top: 110px;
    height: calc(100vh - 80px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background-color: #E7E4E1;
}

/* Categories Sidebar */
.categories-column {
    width: 200px;
    position: fixed;
    left: 0;
    top: 110px;
    height: calc(100vh - 110px);
    background: #B2A59B;
    padding: 15px 10px;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.category-item {
    padding: 15px 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(125, 125, 125, 0.3);
    background: #02979D;
    color: #F4FBFD;
    margin-bottom: 8px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-item:hover {
    background: #F6B855;
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.category-item:active {
    transform: translateX(4px) scale(0.98);
}

/* Content Area */
.content-area {
    margin-left: 170px;
    flex-grow: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

/* Tables List - Responsive Grid */
.table-list {
    margin: 15px 0;
    display: grid;
    gap: 10px;
}

/* Desktop - 3 columns */
@media (min-width: 769px) {
    .table-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .table-list button {
        height: 60px;
    }
}

/* Mobile - single column */
@media (max-width: 768px) {
    .table-list {
        grid-template-columns: 1fr;
    }
    
    .table-list button {
        height: 50px;
    }
}

.table-list button {
    font-size: 16px;
    background: #F4FBFD;
    border: 1px solid #7d7d7d;
    cursor: pointer;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.table-list button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.table-list button.active {
    background: #F6B855;
    color: black;
    box-shadow: 0 0 0 2px white, 0 4px 8px rgba(0, 0, 0, 0.2);
}

.table-list button.open-order {
    background: #F6B855;
    color: black;
    position: relative;
    overflow: hidden;
}

.table-list button.open-order::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #01696C;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.product-button {
    height: 80px;
    background: #C0DCDD;
    border: 1px solid #7d7d7d;
    cursor: pointer;
    font-size: 16px;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.product-button:hover {
    background: #02979D;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-button:active {
    transform: translateY(-1px);
}

/* Attributes Box */
.attributes-box {
    border: 1px solid #ccc;
    background-color: #F4FBFD;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.attributes-box h3 {
    margin-bottom: 10px;
    color: #01696C;
}

/* Cart Items */
.cart-item {
    border: 1px solid #ccc;
    padding: 12px;
    margin: 8px 0;
    font-size: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.message {
    padding: 15px;
    background: #F6B855;
    color: black;
    margin: 15px 0;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#existingOrder {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#existingOrder button {
    margin-top: 10px;
    padding: 8px 15px;
    background: #F6B855;
    border: 1px solid #7d7d7d;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
}

#existingOrder button:hover {
    background: #02979D;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-item label {
    display: block;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
}

.cart-item label:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* Checkboxes */
.attr-checkbox, .pay-checkbox {
    margin-right: 8px;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Stats Section */
#statsSection {
    border: 1px solid #7d7d7d;
    padding: 15px;
    margin: 15px 0;
    background: #F4FBFD;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#statsSection h2 {
    margin-bottom: 15px;
    color: #01696C;
}

#statsSection button {
    margin-top: 10px;
    padding: 8px 15px;
    background: #F6B855;
    border: 1px solid #7d7d7d;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
}

#statsSection button:hover {
    background: #02979D;
    color: white;
}

/* Utility Classes */
.hidden { 
    display: none; 
}

/* Form Elements */
button { 
    padding: 10px 15px; 
    font-size: 16px; 
    border: none;
    outline: none;
}

button:focus {
    box-shadow: 0 0 0 3px rgba(2, 151, 157, 0.3);
}

label { 
    display: block; 
    margin: 8px 0; 
    font-size: 16px; 
}

input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 80px;
    font-size: 16px;
}

input[type="number"]:focus {
    outline: none;
    border-color: #02979D;
    box-shadow: 0 0 0 2px rgba(2, 151, 157, 0.2);
}

/* Cart Section */
#cart {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

#cart h2 {
    color: #01696C;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #C0DCDD;
}

#cartInfo {
    font-weight: 500;
    margin-bottom: 15px;
    padding: 8px;
    background: #F4FBFD;
    border-radius: 6px;
}

/* Submit & Pay Buttons */
#submitBtn, #paidBtn {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 15px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#submitBtn {
    background: #02979D;
    color: white;
}

#submitBtn:hover:not(:disabled) {
    background: #01696C;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#submitBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

#paidBtn {
    background: #F6B855;
    color: #333;
}

#paidBtn:hover {
    background: #e0a74b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .categories-column { 
        position: fixed; 
        width: 35%; 
        height: calc(100vh - 110px);
        z-index: 999;
    }
    
    .content-area { 
        margin-left: 35%; 
        padding: 10px;
    }
    
    .products-grid { 
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .place-dropdown select {
        width: 80%;
        margin: 0 auto;
    }
    
    .place-buttons {
        flex-wrap: wrap;
        padding: 5px;
    }
    
    .place-buttons button {
        width: 48% !important;
        margin: 2px 0;
        font-size: 14px;
        padding: 0 8px;
    }
    
    .info-box {
        padding: 1px;
        height: 36px;
        font-size: 14px;
    }
    
    .open-orders, .selected-table, .employee-name {
        width: 33%;
        font-size: 12px;
    }
    
    .open-orders button {
        font-size: 12px;
        width: 100%;
    }
    
    .container {
        margin-top: 100px;
    }
    
    .categories-column {
        top: 100px;
        padding: 10px 5px;
    }
    
    .attr-checkbox, .pay-checkbox {
        width: 16px;
        height: 16px;
    }
    
    .employee-name .dropdown {
        top: 36px;
        min-width: 100px;
        right: 5px;
    }
    
    .product-button {
        height: 70px;
        font-size: 14px;
        padding: 8px;
    }
    
    #submitBtn, #paidBtn {
        padding: 10px 15px;
        font-size: 15px;
    }

	#cart {
    	background: white;
    	padding: 5px;
    	border-radius: 12px;
    	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    	margin-top: 20px;
	}
	
	#existingOrder {
    	border: 1px solid #ccc;
    	padding: 5px;
    	margin-bottom: 15px;
    	background: #f9f9f9;
    	border-radius: 8px;
    	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	}
}