/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4b5e28;
    --primary-hover: #3a4a20;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.btn-block {
    width: 100%;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

.btn-success {
    background-color: var(--success-color);
    color: var(--white);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-draft {
    background-color: #ffc107;
    color: #000;
}

.status-sent {
    background-color: #17a2b8;
    color: #fff;
}

.status-paid {
    background-color: #28a745;
    color: #fff;
}

.status-pending {
    background-color: #ffc107;
    color: #000;
}

.status-confirmed {
    background-color: #17a2b8;
    color: #fff;
}

.status-preparing {
    background-color: #6c5ce7;
    color: #fff;
}

.status-ready {
    background-color: #00b894;
    color: #fff;
}

.status-delivered {
    background-color: #28a745;
    color: #fff;
}

.status-declined {
    background-color: #dc3545;
    color: #fff;
}

/* Messages */
.error-message {
    margin-top: 16px;
    padding: 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    font-size: 14px;
}

.success-message {
    margin-top: 16px;
    padding: 12px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
    font-size: 14px;
}

.warning-message {
    margin-top: 16px;
    padding: 12px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
    font-size: 14px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Admin Dashboard Styles */
.admin-page {
    min-height: 100vh;
    background-color: var(--light-bg);
}

.admin-header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 16px 24px;
}

.admin-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 24px;
    color: var(--text-dark);
    margin: 0;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-user-info span {
    font-weight: 600;
    color: var(--text-dark);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 14px;
}

.admin-nav {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 12px 24px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.nav-link {
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: var(--light-bg);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.admin-content {
    max-width: 1400px;
    margin: 32px auto;
    padding: 0 24px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h2 {
    margin: 0;
    font-size: 28px;
    color: var(--text-dark);
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.card h2,
.card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 600;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* Table Styles */
.table {
    width: 100%;
    max-width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.table td button,
.admin-table td button {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    cursor: pointer !important;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 600;
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.table tr:hover {
    background-color: var(--light-bg);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    margin-bottom: 12px;
    width: fit-content;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    max-width: 400px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--danger-color);
}

.toast-warning {
    border-left: 4px solid var(--warning-color);
}

.toast-info {
    border-left: 4px solid var(--info-color);
}

/* Customer Facing Styles */
.customer-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 24px;
    box-shadow: var(--shadow);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customer-header h1 {
    font-size: 28px;
    margin: 0;
}

.cart-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.cart-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

.customer-content {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .customer-content {
        margin: 8px auto;
        padding: 0 8px;
    }
}

/* Container for centered content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 12px 8px;
    }
}

.filters-section {
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .filters-section {
        margin-bottom: 12px;
    }
}

/* Search and filter row */
.search-filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .search-filter-row {
        gap: 6px;
        margin-bottom: 8px;
    }
}

/* Filter toggle button */
.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #556B2F;
    border: 2px solid #556B2F;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-toggle-btn:hover {
    background: #6d8a3a;
    border-color: #6d8a3a;
}

.filter-toggle-btn.active {
    background: #3d4f21;
    color: white;
    border-color: #3d4f21;
}

.filter-toggle-btn svg {
    flex-shrink: 0;
}

/* Info button - more compact */
#infoBtn {
    padding: 10px 8px;
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

#infoBtn:hover {
    background: #1976D2;
    border-color: #1976D2;
}

/* Filter buttons container - collapsible on all screen sizes */
.filter-buttons-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.filter-buttons-container.mobile-open {
    max-height: 500px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #d0d0d0;
    background: white;
    color: #424242;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: capitalize;
}

.filter-btn:hover {
    background: #f5f5f5;
    border-color: #9e9e9e;
}

.filter-btn.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    grid-auto-rows: auto;
}

@media (max-width: 768px) {
    .menu-grid {
        gap: 8px;
    }
}

.menu-card {
    background: var(--white);
    border-radius: 12px;
    overflow: visible;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (min-width: 769px) {
    .menu-card {
        height: 100%;
    }
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.menu-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--light-bg);
    flex-shrink: 0;
    position: relative;
    border-radius: 12px 12px 0 0;
}

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

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.menu-card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.menu-card-content h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--text-dark);
    font-weight: 800;
}

.description-truncate {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    background: var(--light-bg);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-dark);
}

.tag-more {
    background: #e0e0e0;
    color: #666;
    border: 1px solid #ccc;
    font-weight: 600;
}

.menu-card-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    margin-bottom: 0;
}

@media (min-width: 769px) {
    .menu-card-footer {
        margin-top: auto;
    }
}

.price-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.portion-size {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

/* Cart Page Styles */
.btn-back {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.cart-items {
    min-height: 400px;
    max-width: 100%;
    overflow-x: hidden;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.empty-cart p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

/* Hide cart and order item images on desktop */
.cart-item-image,
.order-item-image,
.cart-item-info .cart-item-image,
.cart-table .cart-item-image {
    display: none !important;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

.cart-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
}

.cart-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-item-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.cart-item-info p {
    font-size: 14px;
    margin: 0;
}

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

.btn-quantity {
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-quantity:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.btn-quantity:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 60px;
    padding: 8px 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.item-total {
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
}

.cart-actions {
    margin-top: 16px;
    text-align: right;
}

.cart-summary h2 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--border-color);
}

.cart-summary .btn {
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        padding: 24px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .admin-nav {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .card {
        padding: 16px;
    }
    
    .toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
    
    .cart-container {
        grid-template-columns: 1fr;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .cart-table {
        font-size: 14px;
        max-width: 100%;
        overflow-x: hidden;
        table-layout: fixed;
        width: 100%;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 8px;
    }
}
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-large {
    max-width: 900px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--light-bg);
    color: var(--text-dark);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
    background: var(--white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Report Styles */
.report-filters {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.report-summary .stat-card {
    padding: 16px;
    background: var(--light-bg);
    border-radius: 8px;
}

.report-summary .stat-card h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.report-summary .stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Quantity Add Control */
.quantity-add-control {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.quantity-add-control .btn-quantity {
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.quantity-add-control .btn-quantity:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.quantity-add-control .btn-quantity:active {
    transform: scale(0.95);
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
    background: var(--light-bg);
    padding: 8px 12px;
    border-radius: 8px;
    flex-shrink: 0;
}

.quantity-add-control .btn-primary {
    flex: 1;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

/* Pending Orders List */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--light-bg);
    transition: box-shadow 0.2s;
}

.order-item:hover {
    box-shadow: var(--shadow);
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-item-details p {
    margin: 4px 0;
}

.mt-3 {
    margin-top: 24px;
}

/* Order Tracking Page */
.track-form {
    max-width: 500px;
    margin: 0 auto;
}

.order-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.badge-pending {
    background-color: var(--warning-color);
    color: var(--text-dark);
}

.badge-confirmed {
    background-color: var(--info-color);
    color: var(--white);
}

.badge-declined {
    background-color: var(--danger-color);
    color: var(--white);
}

.badge-delivered {
    background-color: var(--success-color);
    color: var(--white);
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    font-size: 16px;
    color: var(--text-dark);
}

.info-value.strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.order-items-section {
    margin: 24px 0;
}

.order-items-section h3 {
    margin-bottom: 16px;
    font-size: 18px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--border-color) !important;
}

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

.item-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-quantity {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 40px;
}

.item-name {
    font-size: 16px;
}

.item-price {
    font-weight: 600;
    color: var(--text-dark);
}

.order-summary {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 16px;
}

.summary-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.form-text {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: var(--text-muted);
}


/* Sold Out Styles */
.menu-card.sold-out {
    opacity: 0.7;
}

.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
}

.sold-out-overlay span {
    background: #d32f2f;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
}

.menu-meta {
    margin: 12px 0;
}

.menu-meta .tags {
    margin-top: 8px;
}

/* Order item actions */
.order-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.order-info-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.order-info-section:last-child {
    border-bottom: none;
}

.order-info-section h4 {
    margin-bottom: 12px;
    color: #333;
}

.order-info-section p {
    margin: 8px 0;
}

/* Description truncation */
.description-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.read-more-link {
    display: inline-block;
    margin-top: 4px;
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.read-more-link:hover {
    text-decoration: underline;
}

/* Modal content adjustments */
.modal-content img {
    max-height: 300px;
    object-fit: cover;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

/* Settings Page */
.meal-time-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
}

.meal-time-section h4 {
    margin-bottom: 12px;
    color: #333;
}

.form-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #e0e0e0;
    text-align: right;
}

/* Report Stats */
.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.report-filters {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.report-filters .form-group {
    min-width: 200px;
}

/* Tag/Allergen Management */
.tags-management .tag,
.allergens-management .tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
}

/* Color input styling */
input[type="color"] {
    width: 50px;
    height: 35px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

/* Checkout Page Styles */
.customer-nav {
    background: var(--primary-color);
    color: white;
    padding: 16px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.customer-nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customer-nav h1 {
    margin: 0;
    font-size: 24px;
}

.customer-nav .nav-links {
    display: flex;
    gap: 20px;
}

.customer-nav .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

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

.order-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 16px;
}

.total-row.total-final {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #e0e0e0;
}

.radio-group {
    display: flex;
    gap: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay .modal-content {
    background: white;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.modal-overlay .modal-body {
    text-align: left;
}

/* Cart Page Summary Row */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 16px;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 16px;
    margin-top: 12px;
    border-top: 2px solid #e0e0e0;
}

/* Track Order Page Styles */
.track-page-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.track-hero {
    text-align: center;
    margin-bottom: 40px;
}

.track-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.track-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.track-hero p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

.track-form {
    max-width: 100%;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.track-form .form-group {
    margin-bottom: 24px;
}

.track-form label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.track-form .form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

.track-form .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.track-form .form-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

.btn-lg span {
    margin-right: 8px;
}

.order-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    display: block;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.info-value.strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.order-items-section {
    margin-top: 24px;
}

.order-items-section h3 {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
}

.item-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-quantity {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 30px;
}

.item-name {
    font-size: 16px;
    color: #333;
}

.item-price {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.order-summary {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 2px solid #e0e0e0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 16px;
}

.summary-row.summary-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #e0e0e0;
}

/* Status badges */
.badge-pending {
    background: #ff9800;
    color: white;
}

.badge-confirmed {
    background: #2196F3;
    color: white;
}

.badge-preparing {
    background: #9C27B0;
    color: white;
}

.badge-ready {
    background: #4CAF50;
    color: white;
}

.badge-out_for_delivery {
    background: #00BCD4;
    color: white;
}

.badge-delivered {
    background: #4CAF50;
    color: white;
}

.badge-cancelled {
    background: #f44336;
    color: white;
}

.error {
    padding: 12px 16px;
    background: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 8px;
    color: #c62828;
}

.btn-block {
    width: 100%;
}

.form-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

/* ============================================
   UNIFIED HEADER STYLES FOR ALL PAGES
   ============================================ */

/* Main Header Container */
.site-header {
    background: white;
    color: var(--primary-color);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #f0f0f0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

/* Logo Section */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-color);
    transition: opacity 0.2s;
}

.header-logo:hover {
    opacity: 0.8;
}

.header-logo img {
    height: 85px;
    width: auto;
    object-fit: contain;
}

.header-logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-color);
}

.header-logo-subtitle {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -4px;
    color: var(--primary-color);
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-nav a:hover {
    background: rgba(139, 140, 68, 0.1);
}

.header-nav a.active {
    background: rgba(139, 140, 68, 0.15);
    color: var(--primary-color);
    font-weight: 600;
}

/* Cart Badge in Header */
.header-cart-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Admin User Info in Header */
.header-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    background: rgba(255, 87, 34, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 87, 34, 0.2);
}

.header-user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
}

.header-logout-btn {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.header-logout-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        position: relative;
        align-items: center;
        padding: 12px 16px;
        justify-content: flex-start;
        gap: 12px;
    }
    
    .header-logo-text {
        font-size: 18px;
    }
    
    .header-logo {
        order: 1;
        flex-shrink: 0;
        margin-right: auto;
    }
    
    .header-logo img {
        height: 35px;
    }
    
    /* Show hamburger menu on mobile */
    .mobile-menu-toggle {
        display: flex;
        order: 3;
        flex-shrink: 0;
    }
    
    /* Hide cart link from navigation on mobile */
    .header-nav a[href="cart.html"] {
        display: none !important;
    }
    
    /* Add bottom padding for all main content on mobile */
    main, .container, body {
        padding-bottom: 80px;
    }
    
    /* Filter buttons already handled globally */
    
    /* Mobile dropdown navigation */
    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
        gap: 0;
        display: flex;
    }
    
    .header-nav.mobile-open {
        max-height: 300px;
        border-bottom: 1px solid #e0e0e0;
        padding: 12px 0;
    }
    
    .header-nav a {
        padding: 14px 24px;
        font-size: 15px;
        border-bottom: 1px solid #f5f5f5;
        justify-content: flex-start;
        border-radius: 0;
        border-left: 3px solid transparent;
        width: 100%;
    }
    
    .header-nav a.active {
        border-left-color: var(--primary-color);
        background: rgba(139, 140, 68, 0.1);
        color: var(--primary-color);
    }
    
    .header-nav a:last-child {
        border-bottom: none;
    }
    
    .header-logo-subtitle {
        display: none;
    }
}

/* Admin Navigation Bar (Secondary) */
.admin-nav-secondary {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
}

.admin-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 4px;
    padding: 0 24px;
    overflow-x: auto;
}

.admin-nav-container a {
    padding: 14px 20px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-nav-container a:hover {
    color: var(--primary-color);
    background: rgba(255, 87, 34, 0.05);
}

.admin-nav-container a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

/* Override old header styles */
.customer-header,
.admin-header,
.customer-nav,
.nav {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none; /* Hidden by default (desktop) */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: flex; /* Temporarily showing on all screens for testing */
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 22px;
    z-index: 1001;
    transition: all 0.3s ease;
    line-height: 1;
}

.mobile-filter-toggle.active {
    transform: scale(1.1);
}

/* Sticky Cart Button (Mobile Only) */
.sticky-cart-btn {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    color: #333;
    padding: 14px 20px;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    transition: all 0.2s ease;
}

.sticky-cart-btn:hover {
    background: #fafafa;
}

.sticky-cart-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-cart-btn .cart-icon {
    font-size: 22px;
    line-height: 1;
}

.cart-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-count-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.sticky-cart-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-arrow {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Admin Header Navigation */
.admin-header-nav {
    flex: 1;
    justify-content: center;
}

.admin-header-nav a {
    font-size: 14px;
    padding: 8px 12px;
}

.mobile-logout {
    display: none;
}

/* Mobile Responsive Updates */
@media (max-width: 1024px) {
    .header-container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        position: relative;
        align-items: center;
        padding: 12px 16px;
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 2;
        flex-shrink: 0;
    }
    
    .header-logo {
        order: 1;
        flex-shrink: 0;
    }
    
    .header-user-info {
        display: none;
    }
    
    .admin-header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
        display: flex;
    }
    
    .mobile-logout {
        display: block;
        padding: 12px 24px;
        border-top: 1px solid #e0e0e0;
        margin-top: 8px;
    }
    
    .mobile-logout-btn {
        width: 100%;
        padding: 12px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .mobile-logout-btn:hover {
        background: #6b6d36;
    }
    
    .admin-header-nav.mobile-open {
        max-height: 500px;
        padding: 12px 0;
    }
    
    .admin-header-nav a {
        width: 100%;
        padding: 14px 24px;
        border-radius: 0;
        justify-content: flex-start;
        border-left: 3px solid transparent;
    }
    
    .admin-header-nav a.active {
        border-left-color: var(--primary-color);
        background: rgba(139, 140, 68, 0.1);
        color: var(--primary-color);
    }
    
    .header-user-info {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .header-user-name {
        font-size: 13px;
    }
    
    .header-logout-btn {
        padding: 4px 12px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 12px;
    }
    
    .header-logo img {
        height: 40px;
    }
    
    .mobile-menu-toggle {
        padding: 4px;
    }
}

/* Invoice Table Styling */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.data-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.data-table td {
    color: #555;
}

/* Invoice-specific column widths - Desktop only */
@media (min-width: 769px) {
    .data-table th:nth-child(1), /* Invoice # */
    .data-table td:nth-child(1) {
        width: 12%;
        min-width: 140px;
    }

    .data-table th:nth-child(2), /* Customer Name */
    .data-table td:nth-child(2) {
        width: 15%;
        min-width: 120px;
    }

    .data-table th:nth-child(3), /* Phone */
    .data-table td:nth-child(3) {
        width: 12%;
        min-width: 120px;
    }

    .data-table th:nth-child(4), /* Date */
    .data-table td:nth-child(4) {
        width: 14%;
        min-width: 160px;
    }

    .data-table th:nth-child(5), /* Orders */
    .data-table td:nth-child(5) {
        width: 8%;
        min-width: 60px;
        text-align: center;
    }

    .data-table th:nth-child(6), /* Total */
    .data-table td:nth-child(6) {
        width: 10%;
        min-width: 90px;
        text-align: right;
        font-weight: 600;
    }

    .data-table th:nth-child(7), /* Status */
    .data-table td:nth-child(7) {
        width: 10%;
        min-width: 80px;
    }

    .data-table th:nth-child(8), /* Actions */
    .data-table td:nth-child(8) {
        width: 19%;
        min-width: 250px;
    }
}

/* Table wrapper for horizontal scroll */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Action buttons in table */
.data-table .btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    margin-right: 4px;
    margin-bottom: 4px;
    white-space: nowrap;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.status-draft {
    background: #ffd54f;
    color: #f57f17;
}

.status-badge.status-sent {
    background: #81d4fa;
    color: #01579b;
}

.status-badge.status-paid {
    background: #a5d6a7;
    color: #2e7d32;
}

/* Responsive Card-Style Tables for Mobile */
@media (max-width: 768px) {
    /* Hide table headers */
    .table thead,
    .admin-table thead,
    .cart-table thead {
        display: none;
    }
    
    .table tbody,
    .admin-table tbody,
    .cart-table tbody {
        display: block;
    }
    
    /* Cart table - Clean card design */
    .cart-table tr {
        display: block;
        background: white;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 0;
        padding: 16px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        overflow: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Group item details and textarea in one card */
    .cart-table tr:nth-child(odd) {
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        padding: 16px;
        margin-bottom: 0;
        margin-top: 16px;
        border-bottom: none;
    }
    
    .cart-table tr:nth-child(even) {
        background: white;
        border: 1px solid #e0e0e0;
        border-top: 1px solid #f0f0f0;
        border-radius: 0 0 12px 12px;
        padding: 0 16px 16px 16px;
        margin-bottom: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    
    .cart-table tr:first-child {
        margin-top: 0;
    }
    
    .cart-table tr:last-of-type {
        margin-bottom: 0;
    }
    
    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .cart-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        flex-shrink: 0;
        min-width: 80px;
    }
    
    /* Item cell - full width with image */
    .cart-table td[data-label="Item"] {
        display: block;
        padding: 0;
        border-bottom: 2px solid #f5f5f5;
    }
    
    .cart-table td[data-label="Item"]::before {
        display: none;
    }
    
    .cart-table td[data-label="Item"] .cart-item-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .cart-table td[data-label="Item"] .cart-item-image {
        display: flex;
        width: 60px;
        height: 60px;
        border-radius: 8px;
        object-fit: cover;
        flex-shrink: 0;
        border: 1px solid #e8e8e8;
    }
    
    /* Show order item images on mobile */
    .order-item-image {
        display: flex;
        width: 60px;
        height: 60px;
        border-radius: 8px;
        object-fit: cover;
        flex-shrink: 0;
        border: 1px solid #e8e8e8;
    }
    
    .cart-table td[data-label="Item"] .cart-item-text {
        flex: 1;
        text-align: left;
    }
    
    .cart-table td[data-label="Item"] .cart-item-info h4 {
        font-size: 16px;
        margin-bottom: 4px;
        font-weight: 600;
        color: #1a1a1a;
        text-align: left;
    }
    
    .cart-table td[data-label="Item"] .cart-item-info p {
        font-size: 13px;
        color: #6b7280;
        margin: 0;
        text-align: left;
    }
    
    /* Price, Quantity, Total cells */
    .cart-table td[data-label="Price"],
    .cart-table td[data-label="Quantity"],
    .cart-table td[data-label="Total"] {
        padding: 12px 0;
        justify-content: flex-start;
    }
    
    .cart-table td[data-label="Total"] {
        font-weight: 600;
        font-size: 16px;
        color: #1a1a1a;
    }
    
    /* Action button */
    .cart-table td[data-label="Action"] {
        border-bottom: none;
        padding: 16px;
        border-top: 1px solid #f0f0f0;
        justify-content: center;
    }
    
    .cart-table td[data-label="Action"]::before {
        display: none;
    }
    
    .cart-table td[data-label="Action"] button {
        width: 100%;
        padding: 12px;
        font-size: 15px;
        font-weight: 600;
    }
    
    /* Clear Cart button - standalone outside cards */
    .cart-actions {
        margin-top: 24px;
        padding: 0 16px;
    }
    
    .cart-actions .btn-secondary {
        width: 100%;
        padding: 14px;
        font-size: 15px;
        font-weight: 600;
        background: #6b7280;
        color: white;
        border: none;
        border-radius: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    /* Special instructions textarea - seamless integration */
    .cart-table td[colspan="5"] {
        display: block;
        padding: 0 16px 16px 16px;
        border-bottom: none;
        border-top: none;
    }
    
    .cart-table td[colspan="5"]::before {
        display: none;
    }
    
    .cart-table td[colspan="5"] textarea {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        min-height: 80px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background: #fafafa;
        color: #333;
    }
    
    /* Generic tables - basic mobile design */
    .table tr,
    .admin-table tr {
        display: block;
        margin-bottom: 16px;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        padding: 12px;
    }
    
    .table td,
    .admin-table td {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 12px;
        align-items: center;
        padding: 10px 0;
        border: none;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .table td:last-child,
    .admin-table td:last-child {
        border-bottom: none;
        padding-top: 12px;
        margin-top: 4px;
        border-top: 1px solid #e8e8e8;
    }
    
    .table td::before,
    .admin-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    /* Actions column styling */
    .table td[data-label="Actions"],
    .table td[data-label="Action"],
    .admin-table td[data-label="Actions"],
    .admin-table td[data-label="Action"],
    .cart-table td[data-label="Actions"],
    .cart-table td[data-label="Action"] {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
    }
    
    .table td[data-label="Actions"]::before,
    .table td[data-label="Action"]::before,
    .admin-table td[data-label="Actions"]::before,
    .admin-table td[data-label="Action"]::before,
    .cart-table td[data-label="Actions"]::before,
    .cart-table td[data-label="Action"]::before {
        display: none;
    }
    
    .table td[data-label="Actions"] button,
    .table td[data-label="Action"] button,
    .admin-table td[data-label="Actions"] button,
    .admin-table td[data-label="Action"] button,
    .cart-table td[data-label="Actions"] button,
    .cart-table td[data-label="Action"] button {
        width: 100%;
    }
    
    /* Description and Item columns - allow wrapping */
    .table td[data-label="Description"],
    .table td[data-label="Item"],
    .admin-table td[data-label="Description"],
    .admin-table td[data-label="Item"],
    .cart-table td[data-label="Description"],
    .cart-table td[data-label="Item"] {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    /* Cart item info styling */
    .cart-table .cart-item-info {
        width: 100%;
    }
    
    .cart-table .cart-item-info h4 {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .cart-table .cart-item-info p {
        font-size: 13px;
    }
    
    /* Quantity controls in cart */
    .cart-table .quantity-control {
        justify-content: center;
        width: 100%;
    }
    
    /* Table responsive wrapper */
    .table-responsive {
        overflow-x: visible;
    }
    
    /* Invoice Table - Custom Card Design */
    .data-table thead {
        display: none;
    }
    
    .data-table tbody {
        display: block;
    }
    
    .data-table tr {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 14px;
        margin-bottom: 14px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        border: 1px solid #e5e7eb;
    }
    
    .data-table td {
        display: block;
        padding: 4px 0;
        border: none;
        text-align: left;
    }
    
    .data-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 9px;
        color: #9ca3af;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
    }
    
    .data-table td[data-label="Invoice #"] {
        font-size: 15px;
        font-weight: 700;
        color: #111827;
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 2px solid #e5e7eb;
    }
    
    .data-table td[data-label="Customer"] {
        font-size: 15px;
        font-weight: 700;
        color: #111827;
        padding: 6px 0;
    }
    
    .data-table td[data-label="Phone"],
    .data-table td[data-label="Date"] {
        font-size: 13px;
        color: #6b7280;
        padding: 3px 0;
    }
    
    .data-table td[data-label="Orders"] {
        font-size: 14px;
        font-weight: 600;
        color: #4b5563;
        padding: 4px 0;
    }
    
    .data-table td[data-label="Total"] {
        font-size: 20px;
        font-weight: 800;
        color: #059669;
        padding: 10px 0;
        margin: 6px 0;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .data-table td[data-label="Status"] {
        padding: 8px 0 12px 0;
    }
    
    .data-table td[data-label="Actions"] {
        padding-top: 12px;
        border-top: 2px solid #e5e7eb;
    }
    
    .data-table td[data-label="Actions"]::before {
        display: none;
    }
    
    .data-table td[data-label="Actions"] button {
        display: block;
        width: 100%;
        margin-bottom: 6px;
        padding: 11px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 8px;
        border: none;
    }
    
    .data-table td[data-label="Actions"] button:last-child {
        margin-bottom: 0;
    }
}

/* Modal Responsive Styles for Small Screens */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 12px;
    }
    
    .modal-header {
        padding: 12px 16px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 8px;
    }
    
    .modal-header {
        padding: 10px 12px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .modal-footer {
        padding: 10px 12px;
        gap: 6px;
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
}

.settings-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.settings-tab:hover {
    color: var(--primary-color);
    background: rgba(255, 87, 34, 0.05);
}

.settings-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Badge styles for meal times */
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-secondary {
    background: #f5f5f5;
    color: #757575;
}

/* Meal Time Sections on Menu Page */
.meal-time-section h2 {
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

#menuGrid {
    display: block !important;
}

#menuGrid .menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Email Preview Modal Styles */
#emailPreviewModal .modal-content {
    max-height: 90vh;
}

#emailPreviewModal .modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#emailPreviewModal .modal-body table {
    max-width: 100% !important;
    width: 100% !important;
}

#emailPreviewModal .modal-body img {
    max-width: 100% !important;
    height: auto !important;
}

/* Mobile responsive for email preview */
@media (max-width: 768px) {
    #emailPreviewModal .modal-content {
        width: 98%;
        max-width: 98%;
        max-height: 90vh;
        margin: 10px;
    }
    
    #emailPreviewModal .modal-header {
        padding: 12px 16px;
    }
    
    #emailPreviewModal .modal-body {
        padding: 0 !important;
    }
    
    #emailPreviewModal .modal-body > div {
        padding: 5px !important;
    }
    
    #emailPreviewModal .modal-body > div > div {
        box-shadow: none !important;
        max-width: 100% !important;
    }
    
    #emailPreviewModal .modal-body * {
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    #emailPreviewModal .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    #emailPreviewModal .modal-header h3 {
        font-size: 14px;
    }
    
    #emailPreviewModal .modal-close {
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    #emailPreviewModal .modal-body > div {
        padding: 2px !important;
    }
}

/* Email Templates Cards */
.email-template-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.email-template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.email-template-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.email-template-info {
    flex: 1;
}

.email-template-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.email-preview-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Mobile responsive for email templates */
@media (max-width: 768px) {
    .email-templates-section h3 {
        font-size: 20px;
    }
    
    .email-templates-section p {
        font-size: 13px;
    }
    
    .email-template-card {
        padding: 14px !important;
    }
    
    .email-template-content {
        flex-direction: column;
    }
    
    .email-template-header h3 {
        font-size: 16px !important;
    }
    
    .email-template-header span {
        font-size: 10px !important;
        padding: 3px 10px !important;
    }
    
    .email-template-content p {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }
    
    .email-preview-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .email-template-card {
        padding: 12px !important;
    }
    
    .email-template-header {
        gap: 8px;
    }
    
    .email-template-header h3 {
        font-size: 15px !important;
    }
    
    .email-template-header span {
        font-size: 9px !important;
        padding: 2px 8px !important;
    }
    
    .email-template-content p {
        font-size: 12px !important;
        line-height: 1.5;
    }
}

/* Meal Times Drag and Drop */
.meal-times-table tbody tr[draggable="true"] {
    cursor: move;
    transition: background-color 0.2s;
}

.meal-times-table tbody tr[draggable="true"]:hover {
    background-color: #f5f5f5;
}

.meal-times-table tbody tr.drag-over {
    background-color: #e3f2fd;
    border-top: 2px solid #2196f3;
}

.drag-handle {
    user-select: none;
}

.drag-handle:hover {
    background-color: #f0f0f0;
}

/* Menu Items Drag and Drop */
.sortable-menu-items tr[draggable="true"] {
    cursor: move;
    transition: background-color 0.2s;
}

.sortable-menu-items tr[draggable="true"]:hover {
    background-color: #f5f5f5;
}

.sortable-menu-items tr.dragging {
    opacity: 0.5;
    background-color: #e3f2fd;
}

/* Mobile Responsive for All Modals */
@media (max-width: 1024px) {
    .modal-overlay {
        padding: 12px;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modal-large {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-start;
    }
    
    .modal-content {
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .modal-large {
        max-width: 100%;
    }
    
    .modal-header {
        padding: 16px !important;
        flex-shrink: 0;
    }
    
    .modal-header h3 {
        font-size: 18px !important;
    }
    
    .modal-body {
        padding: 16px !important;
        overflow-y: auto !important;
        max-height: none !important;
        flex: 1;
    }
    
    .modal-footer {
        padding: 12px 16px !important;
        gap: 8px;
    }
    
    .modal-footer button {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    /* Invoice Modal Specific */
    #invoiceViewModal .modal-body {
        padding: 0 !important;
    }
    
    #invoiceViewModal #invoicePrintArea {
        padding: 16px 12px !important;
    }
    
    #invoiceViewModal h1 {
        font-size: 24px !important;
        margin-bottom: 12px !important;
    }
    
    #invoiceViewModal .modal-body > div > div {
        padding-bottom: 12px !important;
        margin-bottom: 20px !important;
    }
    
    /* Invoice customer info */
    #invoiceViewModal .modal-body [style*="padding: 24px"] {
        padding: 16px !important;
    }
    
    /* Invoice order cards */
    #invoiceViewModal [style*="padding: 24px"][style*="background: #ffffff"] {
        padding: 16px !important;
        margin-bottom: 12px !important;
    }
    
    /* Invoice table cells */
    #invoiceViewModal table td {
        padding: 8px 4px !important;
        font-size: 13px !important;
    }
    
    #invoiceViewModal table td:first-child {
        font-size: 14px !important;
    }
    
    #invoiceViewModal table td:last-child {
        font-size: 14px !important;
        width: 80px !important;
    }
    
    /* Invoice amounts */
    #invoiceViewModal [style*="font-size: 18px"] {
        font-size: 16px !important;
    }
    
    #invoiceViewModal [style*="font-size: 20px"] {
        font-size: 16px !important;
    }
    
    #invoiceViewModal [style*="font-size: 36px"] {
        font-size: 22px !important;
    }
    
    /* Day total section */
    #invoiceViewModal [style*="background: linear-gradient(to right, #f9fafb, #f3f4f6)"] {
        padding: 12px 16px !important;
    }
    
    /* Invoice summary */
    #invoiceViewModal [style*="background: linear-gradient(135deg, #f9fafb, #f3f4f6)"] {
        padding: 20px 16px !important;
    }
    
    /* Contact footer */
    #invoiceViewModal [style*="text-align: center;"][style*="margin-top: 40px"] {
        margin-top: 24px !important;
        padding: 16px 12px !important;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 10px 12px !important;
    }
    
    .modal-header h3 {
        font-size: 14px !important;
    }
    
    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .modal-body {
        padding: 8px !important;
    }
    
    .modal-footer {
        padding: 10px 12px !important;
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
    
    /* Invoice Modal Very Small Screens */
    #invoiceViewModal #invoicePrintArea {
        padding: 12px 8px !important;
    }
    
    #invoiceViewModal h1 {
        font-size: 20px !important;
    }
    
    #invoiceViewModal [style*="padding: 24px"],
    #invoiceViewModal [style*="padding: 20px"],
    #invoiceViewModal [style*="padding: 16px"] {
        padding: 12px !important;
    }
    
    #invoiceViewModal table td {
        padding: 6px 2px !important;
        font-size: 12px !important;
    }
    
    #invoiceViewModal table td:first-child {
        font-size: 13px !important;
    }
    
    #invoiceViewModal table td:last-child {
        font-size: 13px !important;
        width: 70px !important;
    }
    
    #invoiceViewModal [style*="font-size: 15px"] {
        font-size: 13px !important;
    }
    
    #invoiceViewModal [style*="font-size: 16px"] {
        font-size: 14px !important;
    }
    
    #invoiceViewModal [style*="font-size: 17px"] {
        font-size: 14px !important;
    }
    
    #invoiceViewModal [style*="font-size: 18px"] {
        font-size: 15px !important;
    }
    
    #invoiceViewModal [style*="font-size: 20px"] {
        font-size: 15px !important;
    }
    
    #invoiceViewModal .status-badge {
        font-size: 9px !important;
        padding: 4px 10px !important;
    }
    
    /* Hide long separators on very small screens */
    #invoiceViewModal [style*="height: 2px"][style*="background: linear-gradient"] {
        margin: 20px 0 !important;
    }
    
    /* Date headers */
    #invoiceViewModal [style*="letter-spacing: 0.5px"][style*="text-transform: uppercase"] {
        font-size: 11px !important;
        padding: 0 12px !important;
    }
}

/* Print Styles for Invoice */
@media print {
    .modal-overlay {
        background: white !important;
        position: static !important;
    }
    
    .modal-header,
    .modal-close,
    .modal-footer,
    button {
        display: none !important;
    }
    
    .modal-content {
        box-shadow: none !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }
    
    .modal-body {
        overflow: visible !important;
        max-height: 100% !important;
    }
    
    #invoicePrintArea {
        padding: 20px !important;
    }
}

/* Tooltip styling handled inline in HTML */

/* Add to Cart Animation */
@keyframes flyToCart {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    50% {
        transform: scale(0.5) translateY(-50px);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.2) translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

@keyframes cartBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.fly-to-cart {
    animation: flyToCart 0.8s ease-out forwards;
}

.cart-bounce {
    animation: cartBounce 0.4s ease-in-out;
}

/* Smooth fade and scale transitions */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-overlay {
    animation: fadeInScale 0.2s ease-out;
}

.menu-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Upsell Items Styles */
.upsell-item-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.upsell-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
    #upsellItems {
        grid-template-columns: 1fr !important;
    }
}
/* ==============================================
   MENU MANAGEMENT MOBILE RESPONSIVE STYLES
   ============================================== */

/* Menu header actions */
.menu-header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Show/hide desktop and mobile elements */
.desktop-only {
    display: block !important;
}

table.desktop-only {
    display: table !important;
}

.mobile-only {
    display: none !important;
}

/* Button text variants */
.btn-text-short {
    display: none;
}

.btn-text-full {
    display: inline;
}

/* Mobile menu item cards */
.menu-items-mobile {
    flex-direction: column;
    gap: 16px;
}

.menu-item-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

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

.menu-item-header {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.menu-item-meta {
    margin-bottom: 8px;
}

.menu-item-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Tablet Responsive (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .menu-header-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .menu-header-actions .btn {
        flex: 1;
    }
}

/* Mobile Responsive (max 768px) */
@media (max-width: 768px) {
    /* Hide desktop table, show mobile cards */
    .desktop-only {
        display: none !important;
    }
    
    table.desktop-only,
    .desktop-only table,
    .desktop-only tbody,
    .desktop-only thead,
    .desktop-only tr,
    .desktop-only td,
    .desktop-only th {
        display: none !important;
    }
    
    .mobile-only {
        display: inline-block !important;
    }
    
    .mobile-only.flex {
        display: flex !important;
    }
    
    /* Page header adjustments */
    .page-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }
    
    .page-header h2 {
        font-size: 22px;
    }
    
    .menu-header-actions {
        width: 100%;
    }
    
    /* Show shorter button text on small mobile */
    .btn-text-full {
        display: none;
    }
    
    .btn-text-short {
        display: inline;
    }
    
    .btn-download-menu svg {
        margin-right: 4px;
    }
    
    /* Stats grid - stack on mobile */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stat-card {
        padding: 16px !important;
    }
    
    .stat-card > div:last-child {
        font-size: 28px !important;
    }
    
    /* Menu item card adjustments */
    .menu-item-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .menu-item-price {
        font-size: 20px !important;
        align-self: flex-start;
    }
    
    /* Button adjustments */
    .menu-item-actions {
        flex-wrap: wrap;
    }
    
    .menu-item-actions .btn {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    /* Meal section headings */
    .meal-section h3 {
        font-size: 18px !important;
    }
    
    .meal-section p {
        font-size: 12px !important;
    }
    
    /* Settings page mobile adjustments */
    .settings-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        gap: 4px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .settings-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .settings-tabs::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
    
    .settings-tab {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: max-content;
    }
    
    /* Settings form adjustments */
    .settings .card {
        padding: 20px 16px;
        margin-bottom: 16px;
    }
    
    .settings .card h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .settings .form-group {
        margin-bottom: 16px;
    }
    
    .settings .form-group label {
        font-size: 14px;
    }
    
    .settings .form-input,
    .settings textarea.form-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Settings action buttons - responsive width */
    .settings .card .btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    /* Table responsive on mobile for settings */
    .settings table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .settings .admin-table {
        min-width: 600px;
    }
    
    /* Tag and allergen cards in settings */
    .settings .tag-card,
    .settings .allergen-card {
        padding: 12px;
        margin-bottom: 12px;
    }
}

/* Extra Small Mobile (max 480px) */
@media (max-width: 480px) {
    .menu-header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .menu-header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .page-header h2 {
        font-size: 20px;
    }
    
    .menu-item-card {
        padding: 12px;
    }
    
    .menu-item-actions {
        gap: 6px;
    }
    
    .menu-item-actions .btn-sm {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .stat-card > div:last-child {
        font-size: 24px !important;
    }
    
    /* Settings tabs - stack vertically on very small screens */
    .settings-tabs {
        flex-direction: column;
        gap: 8px;
        border-bottom: none;
    }
    
    .settings-tab {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #e0e0e0;
        border-left: 3px solid transparent;
        margin-bottom: 0;
        border-radius: 4px;
    }
    
    .settings-tab.active {
        border-bottom: 1px solid #e0e0e0;
        border-left-color: var(--primary-color);
        background: rgba(255, 87, 34, 0.05);
    }
    
    /* Settings form - full width buttons */
    .settings form button[type="submit"],
    .settings form .btn {
        width: 100%;
    }
}