:root {
    --gold: #D4AF37;
    --black: #000000;
    --red: #A52A2A;
    --light-gold: #F5D98F;
    --dark-red: #800000;
    --gray: #F5F5F5;
    --dark-gray: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--black);
}

/* Customer Menu Styles */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    background-color: white;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid var(--gold);
    margin-bottom: 15px;
}

.logo h1 {
    font-size: 28px;
    color: var(--black);
}

.logo h1 span {
    color: var(--gold);
}

.logo p {
    font-size: 12px;
    color: var(--dark-gray);
    font-style: italic;
}

.cart-icon {
    position: relative;
    font-size: 24px;
    color: var(--gold);
    cursor: pointer;
}

#cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--red);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.menu-categories {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}

.menu-categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    background-color: white;
    border: 1px solid var(--gold);
    color: var(--black);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn.active {
    background-color: var(--gold);
    color: white;
}

.search-box {
    position: relative;
    margin-bottom: 15px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.menu-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.item-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.item-details {
    padding: 10px;
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--black);
}

.item-description {
    font-size: 12px;
    color: var(--dark-gray);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-price {
    font-weight: bold;
    color: var(--red);
}

.add-to-cart {
    background-color: var(--gold);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: var(--dark-red);
}

/* Cart Overlay Styles */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.cart-container {
    background-color: white;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--gold);
    color: white;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--red);
    font-size: 14px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background-color: var(--gray);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.remove-item {
    color: var(--red);
    margin-left: 10px;
    cursor: pointer;
}

.cart-total {
    padding: 15px;
    background-color: var(--gray);
    text-align: right;
}

.customer-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customer-details input, .customer-details textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.place-order-btn {
    background-color: var(--red);
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.place-order-btn:hover {
    background-color: var(--dark-red);
}

/* Order Confirmation */
.order-confirmation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.confirmation-box {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
}

.confirmation-box h2 {
    color: var(--gold);
    margin-bottom: 15px;
}

.confirmation-box p {
    margin-bottom: 20px;
}

#close-confirmation {
    background-color: var(--gold);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* Admin Panel Styles */
.admin-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
}

.admin-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold);
}

.admin-header h1 {
    font-size: 24px;
    color: var(--black);
}

.admin-header h1 span {
    color: var(--gold);
}

.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#refresh-orders {
    background-color: var(--gold);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

#order-filter {
    padding: 8px;
    border: 1px solid var(--gold);
    border-radius: 5px;
    background-color: white;
}

.orders-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-id {
    font-weight: bold;
    color: var(--black);
}

.order-time {
    font-size: 12px;
    color: var(--dark-gray);
}

.order-status {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background-color: #FFF3CD;
    color: #856404;
}

.status-paid {
    background-color: #D4EDDA;
    color: #155724;
}

.order-customer {
    margin-bottom: 10px;
}

.customer-name {
    font-weight: bold;
}

.table-number {
    font-size: 14px;
    color: var(--dark-gray);
}

.order-items {
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.order-item-name {
    flex: 1;
}

.order-item-quantity {
    width: 30px;
    text-align: center;
}

.order-item-price {
    width: 60px;
    text-align: right;
}

.order-total {
    text-align: right;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--red);
}

.order-actions {
    display: flex;
    justify-content: space-between;
}

.order-action-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.delete-order {
    background-color: #F8D7DA;
    color: #721C24;
}

.mark-paid {
    background-color: var(--gold);
    color: white;
}

.print-order {
    background-color: #E2E3E5;
    color: #383D41;
}

.order-card.paid {
    opacity: 0.7;
    position: relative;
}

.order-card.paid::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .menu-items {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .admin-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 1200px;
    }
    
    .admin-container {
        max-width: 1200px;
    }
    
    .orders-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}