* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2ECCAA, #26b3aa);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.restaurant-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.restaurant-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.restaurant-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.table-number {
    font-size: 0.9rem;
    opacity: 0.9;
}

.search-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Search Container */
.search-container {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #eee;
    z-index: 999;
    display: none;
}

.search-container.active {
    display: block;
}

#searchInput {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    margin-bottom: 80px;
    padding: 1rem;
}

.main-content.with-search {
    margin-top: 140px;
}

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.category-tab {
    background: white;
    border: 2px solid #2ECCAA;
    color: #2ECCAA;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.3s;
}

.category-tab.active,
.category-tab:hover {
    background: #2ECCAA;
    color: white;
}

/* Menu Items */
.menu-items {
    display: grid;
    gap: 1rem;
}

.menu-item {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
}

.menu-item:hover {
    transform: translateY(-2px);
}

.menu-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.menu-info {
    flex: 1;
}

.menu-info h3 {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.menu-price {
    font-size: 0.75rem;
    font-weight: bold;
    color: #2ECCAA;
}

.menu-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-btn {
    background: white;
    color: #2ECCAA;
    border: 2px solid #2ECCAA;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.add-btn:hover {
    background: #f0fffe;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: white;
    color: #2ECCAA;
    border: 2px solid #2ECCAA;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: #f0fffe;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

/* Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 90px;
    left: 1rem;
    right: 1rem;
    background: #2ECCAA;
    color: white;
    padding: 0.75rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(46,236,170,0.3);
    z-index: 100;
    gap: 0.5rem;
}

.cart-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    background: white;
    color: #2ECCAA;
    padding: 0.5rem;
    border-radius: 50%;
}

.cart-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
    align-items: flex-start;
}

.cart-quantity {
    font-size: 0.8rem;
    opacity: 0.9;
}

.cart-total {
    font-size: 0.95rem;
    font-weight: bold;
}

.checkout-btn {
    background: white;
    color: #2ECCAA;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    z-index: 1000;
}

.nav-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #999;
    transition: color 0.3s;
}

.nav-btn.active {
    color: #2ECCAA;
}

.nav-btn i {
    font-size: 1.2rem;
}

.nav-btn span {
    font-size: 0.8rem;
}

/* Order Pages */
.order-items,
.checkout-items,
.summary-items {
    margin-bottom: 2rem;
}

.order-item,
.checkout-item {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item-info h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.order-item-price {
    font-weight: bold;
    color: #2ECCAA;
    font-size: 0.8rem;
}

.notes-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* Order Summary */
.order-summary,
.payment-summary {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-weight: bold;
    font-size: 0.95rem;
    color: #2ECCAA;
    border-top: 2px solid #2ECCAA;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

/* Buttons */
.confirm-btn,
.pay-btn,
.close-bill-btn,
.ok-btn {
    width: 100%;
    background: #2ECCAA;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.confirm-btn:hover,
.pay-btn:hover,
.close-bill-btn:hover,
.ok-btn:hover {
    background: #26b3aa;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method {
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.payment-method:hover,
.payment-method.selected {
    border-color: #2ECCAA;
    background: #f0fffe;
}

.payment-method i {
    font-size: 1.8rem;
    color: #2ECCAA;
}

.payment-method span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Transaction Info */
.transaction-info {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.transaction-info p {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* Payment Success */
.payment-success-page {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.payment-details {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.payment-details p {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 480px) {
    .payment-details p {
        flex-direction: column;
        gap: 0.25rem;
    }

    .payment-details p strong {
        font-size: 0.9rem;
    }

    .payment-details p span {
        font-size: 0.95rem;
        font-weight: 600;
        color: #2ECCAA;
    }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 1rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1rem;
}

.modal-content p {
    margin-bottom: 2rem;
    color: #666;
    font-size: 0.85rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #2ECCAA;
    color: white;
}

.btn-primary:hover {
    background: #26b3aa;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Empty State */
.empty-order {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .restaurant-name {
        font-size: 1rem;
    }

    .table-number {
        font-size: 0.8rem;
    }

    .menu-items {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .menu-item {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-align: center;
        padding: 0.75rem;
    }

    .menu-image {
        width: 120px;
        height: 120px;
    }

    .menu-info h3 {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }

    .menu-price {
        font-size: 0.65rem;
    }

    .menu-actions {
        align-self: center;
    }

    .add-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .quantity-display {
        font-size: 0.9rem;
        min-width: 25px;
    }

    .modal-buttons {
        flex-direction: column;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mt-1 {
    margin-top: 1rem;
}

/* Checkout Page */
.checkout-page {
    padding: 1rem;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.back-btn {
    background: #f5f5f5;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #333;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background: #e0e0e0;
}

.page-header h2 {
    margin: 0;
    flex: 1;
    font-size: 1.1rem;
}

.summary-total {
    margin-bottom: 2rem;
}

.summary-total h3 {
    margin-bottom: 0;
}

.pay-btn,