.app {
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header h1 { font-size: 1.8rem; font-weight: 700; }

.table-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
}

.table-info label { font-size: 0.9rem; opacity: 0.9; }

.table-info input {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    background: rgba(255,255,255,0.3);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.table-info input:focus {
    outline: none;
    border-color: white;
    background: rgba(255,255,255,0.4);
}

.menu-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.category {
    margin-bottom: 30px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 3px solid #2563eb;
}

.category-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.menu-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.menu-item-info { flex: 1; }

.menu-item-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #1e293b;
}

.menu-item-description {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.menu-item-price {
    font-weight: 700;
    color: #2563eb;
    font-size: 1.2rem;
}

.menu-item-unavailable {
    opacity: 0.5;
    position: relative;
}

.menu-item-unavailable::after {
    content: "Indisponible";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.cart-container {
    background: white;
    border-top: 2px solid #e2e8f0;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
}

.cart-header span:nth-child(2),
.cart-header span:nth-child(3) {
    background: #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.cart-items {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.cart-item-info { flex: 1; }

.cart-item-name { font-weight: 600; color: #1e293b; }

.cart-item-price { color: #64748b; font-size: 0.9rem; }

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #e2e8f0;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.quantity-btn:hover { background: #cbd5e1; }

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-item {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.remove-item:hover { background: #fee2e2; }

.btn-primary {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s;
}

.btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.visible {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-content h2 {
    color: #10b981;
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 15px;
    color: #475569;
}

@media (max-width: 600px) {
    .header h1 { font-size: 1.5rem; }
    .menu-item { flex-direction: column; text-align: center; }
    .cart-header { flex-wrap: wrap; gap: 10px; }
}