/* ResepPay CSS - Mobile-app style */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f1f5f9; color: #0f172a; }

.app-container { min-height: 100vh; display: flex; justify-content: center; }
.app-frame { width: 100%; max-width: 448px; min-height: 100vh; background: #fff; border-left: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; box-shadow: 0 0 10px rgba(0,0,0,0.05); position: relative; }

/* Landing */
.landing { padding: 48px 24px; display: flex; flex-direction: column; align-items: center; min-height: 100vh; justify-content: center; }
.landing-brand { text-align: center; margin-bottom: 40px; }
.brand-icon { font-size: 48px; margin-bottom: 16px; }
.landing-brand h1 { font-size: 24px; font-weight: 700; color: #0f172a; }
.landing-brand p { font-size: 14px; color: #64748b; margin-top: 4px; }
.role-cards { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.role-card { display: flex; flex-direction: column; align-items: center; padding: 24px; border-radius: 12px; border: 2px solid #e2e8f0; text-decoration: none; color: inherit; transition: border-color 0.2s; }
.role-card:hover { border-color: #f97316; }
.role-admin:hover { border-color: #0f172a; }
.role-kasir:hover { border-color: #059669; }
.role-icon { font-size: 32px; margin-bottom: 8px; }
.role-card h2 { font-size: 18px; font-weight: 700; }
.role-card p { font-size: 12px; color: #64748b; margin-top: 2px; }
.role-btn { margin-top: 12px; font-size: 13px; font-weight: 600; color: #f97316; }
.role-admin .role-btn { color: #0f172a; }
.role-kasir .role-btn { color: #059669; }
.footer { margin-top: 32px; font-size: 11px; color: #94a3b8; }

/* Header */
.header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid #f1f5f9; padding: 0 16px; height: 48px; display: flex; align-items: center; justify-content: space-between; }
.header-admin { background: #0f172a; color: #fff; }
.header-kasir { background: #059669; color: #fff; }
.header-left { display: flex; align-items: center; gap: 8px; }
.header-logo { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.header-logo-admin { background: rgba(255,255,255,0.1); }
.header-logo-kasir { background: rgba(255,255,255,0.15); }
.header-logo-mitra { background: #f97316; color: #fff; }
.header-title { font-size: 9px; color: #64748b; line-height: 1; }
.header-admin .header-title { color: #94a3b8; }
.header-kasir .header-title { color: #a7f3d0; }
.header-name { font-size: 12px; font-weight: 700; }
.header-right { display: flex; align-items: center; gap: 8px; }
.header-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.btn-logout { background: none; border: none; cursor: pointer; padding: 6px; color: inherit; opacity: 0.6; }
.btn-logout:hover { opacity: 1; }

/* Main content */
.main { padding: 16px; padding-bottom: 96px; }

/* Card */
.card { border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; padding: 12px; margin-bottom: 8px; }
.card-orange { background: #f97316; color: #fff; border: none; }
.card-dark { background: #0f172a; color: #fff; border: none; }
.card-emerald { background: #059669; color: #fff; border: none; }
.card-amber { background: #fef3c7; border-color: #fde68a; }
.card-red { background: #fee2e2; border-color: #fecaca; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.stat-card { border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; padding: 8px; text-align: center; }
.stat-value { font-size: 14px; font-weight: 700; }
.stat-label { font-size: 9px; color: #64748b; margin-top: 2px; }

/* Section header */
.section-header { font-size: 10px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin: 12px 4px 6px; }

/* Recipe card */
.recipe-card { width: 100%; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; padding: 10px; display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; transition: border-color 0.2s; margin-bottom: 6px; }
.recipe-card:hover { border-color: #cbd5e1; }
.recipe-name { font-size: 12px; font-weight: 500; color: #0f172a; }
.recipe-status { font-size: 10px; color: #64748b; margin-top: 2px; }
.chevron { color: #cbd5e1; }

/* Badge */
.badge { font-size: 9px; padding: 2px 6px; border-radius: 4px; font-weight: 500; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-emerald { background: #d1fae5; color: #047857; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-slate { background: #f1f5f9; color: #475569; }

/* Button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 12px; border-radius: 8px; border: none; cursor: pointer; font-size: 12px; font-weight: 500; text-decoration: none; }
.btn-orange { background: #f97316; color: #fff; }
.btn-emerald { background: #059669; color: #fff; }
.btn-red { background: #dc2626; color: #fff; }
.btn-dark { background: #0f172a; color: #fff; }
.btn-outline { background: #fff; border: 1px solid #e2e8f0; color: #475569; }
.btn-outline-red { background: #fff; border: 1px solid #fecaca; color: #dc2626; }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 8px; font-size: 10px; }

/* Form */
.form-group { margin-bottom: 10px; }
.form-label { font-size: 11px; color: #475569; display: block; margin-bottom: 4px; }
.form-input { width: 100%; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 13px; }
.form-input:focus { outline: none; border-color: #f97316; }
textarea.form-input { min-height: 60px; resize: vertical; }

/* Tabs */
.tabs { display: flex; background: #f1f5f9; border-radius: 8px; padding: 4px; margin-bottom: 10px; }
.tab { flex: 1; padding: 6px; border-radius: 6px; text-align: center; font-size: 11px; font-weight: 500; color: #64748b; cursor: pointer; border: none; background: none; }
.tab.active { background: #fff; color: #0f172a; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

/* Bottom nav */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 448px; background: #fff; border-top: 1px solid #f1f5f9; display: grid; grid-template-columns: repeat(5, 1fr); height: 64px; z-index: 40; }
.nav-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: #94a3b8; font-size: 10px; }
.nav-btn.active { color: #f97316; font-weight: 600; }
.nav-btn svg { width: 20px; height: 20px; }
.nav-fab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.nav-fab-btn { position: absolute; top: -20px; width: 48px; height: 48px; border-radius: 50%; background: #f97316; color: #fff; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; box-shadow: 0 4px 6px rgba(249,115,22,0.3); }
.nav-fab-btn svg { width: 24px; height: 24px; }
.nav-fab-label { margin-top: 32px; font-size: 10px; color: #94a3b8; }

/* Notification */
.notif-card { border-radius: 8px; border: 1px solid; padding: 10px; margin-bottom: 6px; }
.notif-approved { border-color: #a7f3d0; background: rgba(209,250,229,0.3); }
.notif-rejected { border-color: #fecaca; background: rgba(254,226,226,0.3); }
.notif-title { font-size: 12px; font-weight: 500; }
.notif-date { font-size: 9px; color: #94a3b8; }
.notif-msg { font-size: 10px; color: #475569; margin-top: 2px; line-height: 1.4; }

/* POS */
.pos-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pos-menu-card { border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; padding: 10px; cursor: pointer; text-align: left; }
.pos-menu-card:hover { border-color: #6ee7b7; }
.pos-menu-name { font-size: 12px; font-weight: 500; }
.pos-menu-owner { font-size: 9px; color: #94a3b8; }
.pos-menu-price { font-size: 13px; font-weight: 700; color: #f97316; margin-top: 4px; }

/* Cart */
.cart-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.cart-qty { display: flex; align-items: center; gap: 4px; }
.cart-qty-btn { width: 24px; height: 24px; border: 1px solid #e2e8f0; border-radius: 4px; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cart-qty-input { width: 40px; text-align: center; border: 1px solid #e2e8f0; border-radius: 4px; padding: 2px; font-size: 12px; }

/* Login */
.login-page { padding: 40px 24px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.login-brand { text-align: center; margin-bottom: 32px; }
.login-brand h1 { font-size: 24px; font-weight: 700; }
.login-brand p { font-size: 13px; color: #64748b; margin-top: 4px; }
.login-tabs { display: flex; background: #f1f5f9; border-radius: 8px; padding: 4px; margin-bottom: 20px; }
.login-tab { flex: 1; padding: 8px; border-radius: 6px; text-align: center; font-size: 12px; font-weight: 500; color: #64748b; cursor: pointer; text-decoration: none; }
.login-tab.active { background: #fff; color: #0f172a; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.demo-box { margin-top: 24px; padding: 12px; border-radius: 8px; background: #f8fafc; border: 1px solid #f1f5f9; }
.demo-box p { font-size: 10px; color: #64748b; }
.demo-box .demo-key { font-family: monospace; font-size: 11px; color: #475569; word-break: break-all; }

/* Chart */
.chart-container { height: 176px; }

/* Workflow */
.workflow-step { display: flex; gap: 12px; position: relative; margin-bottom: 10px; }
.workflow-circle { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; border: 2px solid #fff; position: relative; z-index: 1; }
.workflow-done { background: #10b981; color: #fff; }
.workflow-current { background: #f97316; color: #fff; }
.workflow-future { background: #e2e8f0; color: #64748b; }
.workflow-line { position: absolute; left: 14px; top: 28px; bottom: -10px; width: 2px; background: #e2e8f0; }
.workflow-line-done { background: #6ee7b7; }
.workflow-label { font-size: 13px; font-weight: 600; }
.workflow-label-done { color: #047857; }
.workflow-label-current { color: #c2410c; }
.workflow-label-future { color: #64748b; }
.workflow-desc { font-size: 11px; color: #64748b; margin-top: 2px; }
.workflow-date { font-size: 10px; color: #64748b; font-style: italic; margin-top: 2px; }

/* Misc */
.text-center { text-align: center; }
.text-xs { font-size: 10px; }
.text-sm { font-size: 12px; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-900 { color: #0f172a; }
.text-orange { color: #f97316; }
.text-emerald { color: #059669; }
.text-red { color: #dc2626; }
.text-amber { color: #b45309; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; }
.flex { display: flex; } .flex-1 { flex: 1; } .justify-between { justify-content: space-between; } .items-center { align-items: center;; } .gap-2 { gap: 8px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none; }
