/* ========================================================================== Order System - Pure Native CSS Design System ========================================================================== */ :root { --primary: #4f46e5; --primary-hover: #4338ca; --primary-light: #eef2ff; --secondary: #64748b; --secondary-hover: #475569; --success: #10b981; --success-light: #ecfdf5; --warning: #f59e0b; --warning-light: #fffbeb; --danger: #ef4444; --danger-light: #fef2f2; --info: #0ea5e9; --info-light: #f0f9ff; --bg-main: #f8fafc; --bg-card: #ffffff; --bg-card-header: #f8fafc; --text-main: #0f172a; --text-muted: #64748b; --text-light: #94a3b8; --border-color: #e2e8f0; --border-focus: #818cf8; --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-full: 9999px; --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; } *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: var(--font-family); background-color: var(--bg-main); color: var(--text-main); line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; } /* ---------------- Navbar ---------------- */ .navbar { background-color: #ffffff; border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 50; } .navbar-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 4.25rem; } .navbar-brand { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 700; color: var(--primary); text-decoration: none; } .navbar-brand-icon { width: 2rem; height: 2rem; background: linear-gradient(135deg, var(--primary), #818cf8); color: white; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 1rem; } .nav-links { display: flex; list-style: none; gap: 0.5rem; } .nav-link { display: inline-flex; align-items: center; padding: 0.5rem 0.85rem; border-radius: var(--radius-sm); font-size: 0.925rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: all 0.15s ease; } .nav-link:hover { color: var(--primary); background-color: var(--primary-light); } .nav-link.active { color: var(--primary); background-color: var(--primary-light); font-weight: 600; } .nav-actions { display: flex; align-items: center; gap: 0.75rem; } /* ---------------- Container & Layout ---------------- */ .main-container { max-width: 1200px; width: 100%; margin: 2rem auto; padding: 0 1.5rem; flex: 1; } .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; } .page-title { font-size: 1.75rem; font-weight: 700; color: var(--text-main); } .page-subtitle { font-size: 0.95rem; color: var(--text-muted); margin-top: 0.25rem; } /* ---------------- Cards & Grid ---------------- */ .grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; } .stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: space-between; transition: transform 0.15s ease, box-shadow 0.15s ease; } .stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } .stat-label { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.025em; } .stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text-main); margin-top: 0.25rem; } .stat-icon { width: 3rem; height: 3rem; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; } .card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 1.5rem; } .card-header { padding: 1.25rem 1.5rem; background-color: var(--bg-card-header); border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; } .card-title { font-size: 1.125rem; font-weight: 600; color: var(--text-main); } .card-body { padding: 1.5rem; } .card-footer { padding: 1rem 1.5rem; background-color: var(--bg-card-header); border-top: 1px solid var(--border-color); } /* ---------------- Tables ---------------- */ .table-responsive { width: 100%; overflow-x: auto; } .table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.925rem; } .table th { background-color: #f8fafc; color: var(--text-muted); font-weight: 600; padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border-color); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; } .table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-color); color: var(--text-main); vertical-align: middle; } .table tr:last-child td { border-bottom: none; } .table tbody tr:hover { background-color: #f8fafc; } /* ---------------- Badges ---------------- */ .badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.65rem; border-radius: var(--radius-full); font-size: 0.775rem; font-weight: 600; letter-spacing: 0.02em; } .badge-pending { background-color: var(--warning-light); color: #b45309; } .badge-processing { background-color: var(--info-light); color: #0369a1; } .badge-completed { background-color: var(--success-light); color: #047857; } .badge-cancelled { background-color: var(--danger-light); color: #b91c1c; } .badge-neutral { background-color: #f1f5f9; color: #475569; } /* ---------------- Buttons ---------------- */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem 1.15rem; font-size: 0.925rem; font-weight: 500; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: all 0.15s ease; line-height: 1.25; } .btn-primary { background-color: var(--primary); color: white; } .btn-primary:hover { background-color: var(--primary-hover); } .btn-secondary { background-color: white; border-color: var(--border-color); color: var(--text-main); } .btn-secondary:hover { background-color: #f8fafc; border-color: #cbd5e1; } .btn-danger { background-color: var(--danger); color: white; } .btn-danger:hover { background-color: #dc2626; } .btn-success { background-color: var(--success); color: white; } .btn-success:hover { background-color: #059669; } .btn-sm { padding: 0.35rem 0.65rem; font-size: 0.825rem; } /* ---------------- Forms ---------------- */ .form-group { margin-bottom: 1.25rem; } .form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-main); margin-bottom: 0.4rem; } .form-control, .form-select, .form-textarea { width: 100%; padding: 0.625rem 0.875rem; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 0.925rem; color: var(--text-main); background-color: #ffffff; transition: border-color 0.15s ease, box-shadow 0.15s ease; } .form-control:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); } .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; } .filter-bar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; } /* ---------------- Alerts / Toasts ---------------- */ .alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.925rem; } .alert-success { background-color: var(--success-light); color: #065f46; border: 1px solid #a7f3d0; } .alert-error { background-color: var(--danger-light); color: #991b1b; border: 1px solid #fecaca; } /* ---------------- Invoice / Detail View ---------------- */ .invoice-card { background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 2.5rem; box-shadow: var(--shadow-sm); } .invoice-header { display: flex; justify-content: space-between; border-bottom: 2px solid var(--border-color); padding-bottom: 1.5rem; margin-bottom: 2rem; } .invoice-meta { text-align: right; } .order-summary-box { background: #f8fafc; border-radius: var(--radius-sm); padding: 1.25rem; margin-left: auto; width: 320px; max-width: 100%; } .summary-row { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.925rem; } .summary-total { font-size: 1.2rem; font-weight: 700; border-top: 1px solid var(--border-color); padding-top: 0.75rem; margin-top: 0.5rem; color: var(--primary); } /* ---------------- Footer ---------------- */ .footer { background-color: #ffffff; border-top: 1px solid var(--border-color); padding: 1.5rem; text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: auto; } /* ---------------- Responsive ---------------- */ @media (max-width: 768px) { .navbar-container { flex-direction: column; height: auto; padding: 1rem; gap: 1rem; } .nav-links { width: 100%; justify-content: center; } .page-header { flex-direction: column; align-items: flex-start; } .invoice-card { padding: 1.25rem; } .invoice-header { flex-direction: column; gap: 1rem; } .invoice-meta { text-align: left; } .order-summary-box { width: 100%; } } /* ---------------- Multi-Select Interactive Menu Cards ---------------- */ .menu-select-card { background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 0.65rem 0.85rem; cursor: pointer; transition: all 0.15s ease; user-select: none; } .menu-select-card:hover { border-color: var(--primary); background-color: #f8faff; } .menu-select-card.is-selected { border-color: var(--primary); background-color: var(--primary-light); box-shadow: 0 0 0 1px var(--primary); }