256 lines
4.9 KiB
CSS
256 lines
4.9 KiB
CSS
:root {
|
|
--primary-color: #1A1A1A;
|
|
--accent-color: #E63946;
|
|
--secondary-bg: #F5F5F5;
|
|
--text-primary: #1A1A1A;
|
|
--text-secondary: #666666;
|
|
--white: #FFFFFF;
|
|
--border-radius: 8px;
|
|
--shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
background-color: var(--secondary-bg);
|
|
color: var(--text-primary);
|
|
line-height: 1.5;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.navbar {
|
|
background-color: var(--white);
|
|
border-bottom: 1px solid #EAEAEA;
|
|
padding: 1rem 0;
|
|
}
|
|
|
|
.brand-logo {
|
|
font-weight: 700;
|
|
font-size: 1.5rem;
|
|
color: var(--primary-color);
|
|
text-decoration: none;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
.menu-category-title {
|
|
font-weight: 700;
|
|
margin: 2rem 0 1rem;
|
|
font-size: 1.25rem;
|
|
border-bottom: 2px solid var(--accent-color);
|
|
display: inline-block;
|
|
}
|
|
|
|
.product-card {
|
|
background: var(--white);
|
|
border-radius: var(--border-radius);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow);
|
|
transition: transform 0.2s ease;
|
|
border: 1px solid #EAEAEA;
|
|
height: 100%;
|
|
}
|
|
|
|
.product-card:hover {
|
|
transform: translateY(-4px);
|
|
}
|
|
|
|
.product-image {
|
|
width: 100%;
|
|
height: 180px;
|
|
background-color: #EEEEEE;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.product-info {
|
|
padding: 1.25rem;
|
|
}
|
|
|
|
.product-name {
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.product-desc {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
margin-bottom: 1rem;
|
|
min-height: 3rem;
|
|
}
|
|
|
|
.product-price {
|
|
font-weight: 700;
|
|
color: var(--accent-color);
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.btn-add {
|
|
background-color: var(--primary-color);
|
|
color: var(--white);
|
|
border-radius: var(--border-radius);
|
|
padding: 0.5rem 1rem;
|
|
font-weight: 600;
|
|
border: none;
|
|
}
|
|
|
|
.btn-add:hover {
|
|
background-color: #333333;
|
|
}
|
|
|
|
.cart-sidebar {
|
|
background: var(--white);
|
|
height: 100vh;
|
|
position: sticky;
|
|
top: 0;
|
|
border-left: 1px solid #EAEAEA;
|
|
padding: 2rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.cart-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 1rem;
|
|
padding-bottom: 1rem;
|
|
border-bottom: 1px solid #EEEEEE;
|
|
}
|
|
|
|
.cart-item-name {
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.cart-item-price {
|
|
font-weight: 700;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.cart-total {
|
|
margin-top: auto;
|
|
padding-top: 1rem;
|
|
border-top: 2px solid var(--primary-color);
|
|
font-weight: 700;
|
|
font-size: 1.25rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.order-badge {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* Admin Styles */
|
|
.admin-table-container {
|
|
background: var(--white);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow);
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.status-pending { color: #FFA500; font-weight: 600; }
|
|
.status-preparing { color: #007BFF; font-weight: 600; }
|
|
.status-ready { color: #28A745; font-weight: 600; }
|
|
|
|
.toast-container {
|
|
position: fixed;
|
|
bottom: 2rem;
|
|
right: 2rem;
|
|
z-index: 1050;
|
|
}
|
|
|
|
/* Friendly Table & UI Enhancements */
|
|
.filter-bar {
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
padding: 1rem 1.5rem;
|
|
box-shadow: 0 2px 12px rgba(0,0,0,0.03);
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.friendly-table {
|
|
border-collapse: separate;
|
|
border-spacing: 0 12px;
|
|
width: 100%;
|
|
}
|
|
.friendly-table thead th {
|
|
border: none;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
font-size: 0.75rem;
|
|
color: #999;
|
|
letter-spacing: 0.8px;
|
|
padding: 0 1.5rem 0.5rem 1.5rem;
|
|
}
|
|
.friendly-table tbody tr {
|
|
background: #fff;
|
|
box-shadow: 0 2px 6px rgba(0,0,0,0.02);
|
|
border-radius: 12px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
.friendly-table tbody tr:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 16px rgba(0,0,0,0.06);
|
|
}
|
|
.friendly-table td {
|
|
border: none;
|
|
padding: 1rem 1.5rem;
|
|
vertical-align: middle;
|
|
background-color: #fff; /* Ensure bg is applied to cells for radius to work if needed */
|
|
}
|
|
.friendly-table td:first-child {
|
|
border-top-left-radius: 12px;
|
|
border-bottom-left-radius: 12px;
|
|
}
|
|
.friendly-table td:last-child {
|
|
border-top-right-radius: 12px;
|
|
border-bottom-right-radius: 12px;
|
|
}
|
|
.img-thumb-lg {
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 12px;
|
|
object-fit: cover;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
.badge-soft {
|
|
background-color: #f3f4f6;
|
|
color: #4b5563;
|
|
font-weight: 500;
|
|
padding: 0.4em 0.8em;
|
|
border-radius: 6px;
|
|
}
|
|
.btn-icon-soft {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 8px;
|
|
transition: all 0.2s;
|
|
background: #f8f9fa;
|
|
color: #6c757d;
|
|
border: none;
|
|
}
|
|
.btn-icon-soft:hover {
|
|
background: #e9ecef;
|
|
color: #495057;
|
|
}
|
|
.btn-icon-soft.delete:hover {
|
|
background: #fee2e2;
|
|
color: #ef4444;
|
|
}
|
|
.btn-icon-soft.edit:hover {
|
|
background: #dbeafe;
|
|
color: #3b82f6;
|
|
}
|
|
.text-price {
|
|
font-family: 'Inter', sans-serif;
|
|
font-weight: 700;
|
|
color: #111827;
|
|
} |