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

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: #333;
	overflow-x: hidden;
	background: #f5f5f5;
}

/* Header - taller, bigger font */
header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 2rem 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	min-height: 100px;
}

nav {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 2rem;
}

.logo h1 {
	font-size: 2.5rem;
	font-weight: 700;
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 2rem;
	align-items: center;
}

.nav-links a {
	color: white;
	text-decoration: none;
	font-weight: 500;
	font-size: 1.2rem;
	transition: opacity 0.3s;
}

.nav-links a:hover {
	opacity: 0.8;
}

.manage-btn, .sales-btn {
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid white;
	color: white;
	padding: 0.75rem 1.5rem;
	border-radius: 5px;
	cursor: pointer;
	font-weight: 600;
	font-size: 1.1rem;
	transition: all 0.3s;
}

.manage-btn:hover, .sales-btn:hover {
	background: white;
	color: #667eea;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

.section-title {
	text-align: center;
	font-size: 2rem;
	margin-top: 1rem;
}

/* Menu cards */
.menu-section {
	padding: 3rem 0;
	background: white;
}

.menu-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.menu-item-card {
	background: white;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
	cursor: pointer;
	border: 2px solid transparent;
}

.menu-item-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
	border-color: #667eea;
}

.menu-item-image {
	width: 100%;
	height: 200px;
	background: #eee;
	display: flex;
	align-items: center;
	justify-content: center;
}

.menu-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.menu-item-info {
	padding: 1.25rem;
	text-align: center;
}

.menu-item-info h3 {
	font-size: 1.3rem;
	margin-bottom: 0.25rem;
	color: #333;
}

.menu-item-info .price {
	font-size: 1.2rem;
	font-weight: 700;
	color: #667eea;
	margin-top: 0.25rem;
}

/* Cart */
.cart-section {
	padding: 3rem 0;
	background: #f8f9fa;
	min-height: 60vh;
}

.cart-container {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2rem;
	margin-top: 1rem;
}

.cart-items {
	background: white;
	padding: 1.5rem;
	border-radius: 15px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.empty-cart {
	text-align: center;
	color: #999;
	padding: 2rem;
	font-size: 1.1rem;
}

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

.cart-item:last-child { border-bottom: none; }

.cart-item-info {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex: 1;
}

.cart-item-image {
	width: 60px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cart-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cart-item-details h4 { margin-bottom: 0.25rem; }
.cart-item-details .price { color: #667eea; font-weight: 600; }

.cart-item-controls {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.quantity-controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.quantity-btn {
	width: 30px;
	height: 30px;
	border: 1px solid #ddd;
	background: white;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.quantity-btn:hover { background: #f0f0f0; }
.quantity { min-width: 36px; text-align: center; font-weight: 600; }

.remove-btn {
	background: #ff4444;
	color: white;
	border: none;
	padding: 0.5rem 1rem;
	border-radius: 5px;
	cursor: pointer;
	font-size: 0.9rem;
}
.remove-btn:hover { background: #cc0000; }

.cart-summary {
	background: white;
	padding: 1.5rem;
	border-radius: 15px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
	height: fit-content;
	position: sticky;
	top: 110px;
}

.summary-row {
	display: flex;
	justify-content: space-between;
	padding: 0.75rem 0;
	border-bottom: 1px solid #eee;
}
.summary-row.total {
	border-bottom: 2px solid #667eea;
	font-size: 1.2rem;
	font-weight: 700;
	margin-top: 0.25rem;
}

.cart-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1rem;
}

.btn {
	padding: 0.9rem;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
}

.btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102,126,234,0.4); }

.btn-secondary {
	background: #f0f0f0;
	color: #333;
}
.btn-secondary:hover { background: #e0e0e0; }

/* Modal */
.modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.5);
	animation: fadeIn 0.2s;
}

.modal-content {
	background-color: white;
	margin: 5% auto;
	padding: 1.5rem 1.5rem 2rem;
	border-radius: 15px;
	width: 92%;
	max-width: 900px;
	max-height: 80vh;
	overflow-y: auto;
	animation: slideDown 0.2s;
}

.payment-modal { max-width: 560px; }

.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}
.close:hover { color: #000; }

/* Manage */
.manage-container {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 1.5rem;
	margin-top: 0.5rem;
}

.add-item-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.add-item-form input {
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 1rem;
}

.items-list { max-height: 520px; overflow-y: auto; }

.manage-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem;
	border: 1px solid #eee;
	border-radius: 8px;
	margin-bottom: 0.5rem;
}

.manage-item-actions { display: flex; gap: 0.5rem; }
.btn-small { padding: 0.45rem 0.8rem; font-size: 0.9rem; }
.btn-edit { background: #4CAF50; color: white; }
.btn-delete { background: #ff4444; color: white; }

/* Sales */
.sales-container { margin-top: 0.5rem; }
.report-filters { margin: 0.5rem 0 1rem; }
.report-filters input {
	padding: 0.5rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 1rem;
	margin-left: 0.75rem;
}

.sales-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	margin-bottom: 1rem;
}
.stat-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 1rem;
	border-radius: 10px;
	text-align: center;
}
.stat-card h3 { font-size: 0.9rem; margin-bottom: 0.3rem; opacity: 0.9; }
.stat-card p { font-size: 1.4rem; font-weight: 700; }

.sales-table table { width: 100%; border-collapse: collapse; }
.sales-table th, .sales-table td {
	padding: 0.6rem;
	text-align: left;
	border-bottom: 1px solid #eee;
}
.sales-table th { background: #f8f9fa; font-weight: 600; }

/* Payment */
.payment-container { display: flex; flex-direction: column; text-align: center; }
.payment-amount {
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid #e0e0e0;
}
.payment-amount h3 { font-size: 1.6rem; color: #667eea; font-weight: 700; }

.qr-code-container {
	margin: 0 0 1rem 0;
	padding: 1rem;
	background: #f8f9fa;
	border-radius: 10px;
}
.qr-code-container canvas {
	max-width: 240px;
	margin: 0 auto;
	display: block;
}
.qr-code-container p { margin-top: 0.6rem; font-weight: 600; color: #333; }

.payment-items-container {
	margin: 0 0 1rem 0;
	padding: 0.75rem;
	background: #f8f9fa;
	border-radius: 10px;
	max-height: 260px;
	overflow-y: auto;
	text-align: left;
}
.payment-items-container h4 { text-align: center; margin-bottom: 0.6rem; }

.payment-items { display: flex; flex-direction: column; gap: 0.6rem; }
.payment-item {
	background: white;
	padding: 0.6rem;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}
.payment-item-info { display: flex; align-items: center; gap: 0.75rem; }
.payment-item-image {
	width: 50px; height: 50px; border-radius: 6px; object-fit: cover;
}

.payment-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 0.75rem;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown {
	from { transform: translateY(-40px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
	.manage-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.cart-container { grid-template-columns: 1fr; }
	.nav-links { flex-wrap: wrap; gap: 0.75rem; }
	.menu-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	header { padding: 1.2rem 0; min-height: 70px; }
	nav { flex-direction: column; gap: 1rem; }
	.logo h1 { font-size: 1.9rem; }
}