* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

header p {
    opacity: 0.9;
    font-size: 1.1em;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    min-height: 600px;
}

.menu-section {
    flex: 3;
    padding: 25px;
    border-right: 1px solid #eee;
    background: #f8f9fa;
}

.order-section {
    flex: 1;
    padding: 25px;
    background: white;
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }
    
    .menu-section {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5em;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 16px;
    font-size: 0.9em;
    border: none;
    border-radius: 20px;
    background: #e9ecef;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active, .category-btn:hover {
    background: #ff6b6b;
    color: white;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.menu-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.menu-item-name {
    font-weight: 600;
    font-size: 1.1em;
    color: #2c3e50;
}

.menu-item-price {
    color: #e74c3c;
    font-weight: bold;
}

.menu-item-desc {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.menu-item-category {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8em;
}

.order-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.table-number, .customer-count {
    flex: 1;
}

.order-info label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.order-info input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.order-list {
    list-style: none;
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    max-height: 300px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-item-info {
    flex-grow: 1;
}

.order-item-name {
    font-weight: 500;
    margin-bottom: 3px;
}

.order-item-price {
    color: #7f8c8d;
    font-size: 0.9em;
}

.order-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    border: none;
    border-radius: 50%;
    background: #e9ecef;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.quantity {
    min-width: 25px;
    text-align: center;
}

.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 0.8em;
}

.order-total {
    padding: 15px 0;
    border-top: 2px solid #eee;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.order-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-primary, .btn-secondary {
    padding: 14px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.3);
}

.btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.btn-secondary:hover {
    background: #dee2e6;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2ecc71;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

@media (max-width: 600px) {
    .container {
        margin: 10px;
        border-radius: 8px;
    }
    
    header {
        padding: 20px;
    }
    
    .menu-section, .order-section {
        padding: 15px;
    }
    
    .order-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .order-actions button {
        width: 100%;
    }
}