/* ─── VIEW 3: DASHBOARD LOGIN ─── */
.dash-login-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: #F0F4F8; overflow: auto; padding: 24px;
}
.dash-login-card {
  background: #fff; border-radius: 16px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.12);
  padding: 40px 36px; width: 100%; max-width: 380px;
  display: flex; flex-direction: column; gap: 28px;
}
.dash-login-logo {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.dash-login-logo-mark {
  width: 52px; height: 52px; object-fit: contain; display: block;
}
.dash-login-brand { font-size: 20px; font-weight: 800; color: #0A101E; letter-spacing: -0.5px; }
.dash-login-role  { font-size: 13px; color: #64748B; }
.dash-login-fields { display: flex; flex-direction: column; gap: 14px; }
.dash-login-field { display: flex; flex-direction: column; gap: 6px; }
.dash-login-label { font-size: 12px; font-weight: 600; color: #374151; }
.dash-login-input {
  padding: 11px 14px; border: 1.5px solid #E2E8F0; border-radius: 9px;
  font-size: 14px; font-family: 'Inter', sans-serif; color: #0A101E;
  background: #FAFBFC; outline: none; transition: border-color 0.18s;
}
.dash-login-input:focus { border-color: var(--accent); background: #fff; }
.dash-login-remember {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #64748B; cursor: pointer; user-select: none;
}
.dash-login-remember input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.dash-login-btn {
  width: 100%; padding: 13px; background: var(--accent); color: #fff;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
  font-family: 'Inter', sans-serif; cursor: pointer; letter-spacing: -0.2px;
  transition: background 0.18s, transform 0.14s;
}
.dash-login-btn:hover  { background: #4B5FD8; }
.dash-login-btn:active { transform: scale(0.985); }
.dash-login-forgot {
  text-align: center; font-size: 13px; color: var(--accent); cursor: pointer;
  font-family: 'Inter', sans-serif; background: none; border: none; padding: 0;
  text-decoration: none; transition: opacity 0.2s;
}
.dash-login-forgot:hover { opacity: 0.75; }

/* ─── VIEW 3: MANAGER DASHBOARD ─── */
.dash-wrap {
  flex: 1; display: flex; overflow: hidden; background: #F0F4F8;
}
/* Sidebar */
.dash-sidebar {
  width: 200px; flex-shrink: 0; background: #fff;
  border-right: 1px solid #E2E8F0;
  display: flex; flex-direction: column; overflow: hidden;
}
.dash-sidebar-logo {
  padding: 20px 18px 16px; border-bottom: 1px solid #F1F5F9;
  display: flex; align-items: center; gap: 10px;
}
.dash-sidebar-logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dash-sidebar-brand { font-size: 15px; font-weight: 800; color: #0A101E; letter-spacing: -0.4px; }
.dash-sidebar-brand span { color: var(--accent); }
.dash-sidebar-nav { flex: 1; padding: 10px 0; overflow-y: auto; min-height: 0; }
.dash-nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 16px; margin: 2px 8px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: #64748B;
  cursor: pointer; transition: background 0.15s, color 0.15s; user-select: none;
}
.dash-nav-item:hover:not(.active) { background: #F8FAFC; color: #374151; }
.dash-nav-item.active {
  background: rgba(91,115,240,0.07); color: var(--accent); font-weight: 600;
}
.dash-nav-item svg { flex-shrink: 0; opacity: 0.7; }
.dash-nav-item.active svg { opacity: 1; }

/* ─── DASHBOARD SECTION VIEWS ─── */
/* Orders table */
.dsec-table { width: 100%; border-collapse: collapse; }
.dsec-table th {
  text-align: left; font-size: 11px; font-weight: 600; color: #94A3B8;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0 12px 10px; border-bottom: 1px solid #E2E8F0;
}
.dsec-table td {
  padding: 11px 12px; font-size: 13px; color: #374151;
  border-bottom: 1px solid #F8FAFC;
}
.dsec-table tr:last-child td { border-bottom: none; }
.dsec-badge {
  display: inline-block; padding: 2px 8px; border-radius: 99px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.dsec-badge.paid  { background: rgba(16,185,129,0.1); color: #10B981; }
.dsec-badge.prep  { background: rgba(91,115,240,0.08); color: #8B9EF0; }
.dsec-badge.new   { background: rgba(245,158,11,0.1); color: #F59E0B; }
/* Menu grid */
.dsec-menu-cat-header {
  font-size: 11px; font-weight: 700; color: #64748B;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 18px 0 10px; border-bottom: 1px solid #E2E8F0; margin-bottom: 12px;
}
.dsec-menu-section:first-child .dsec-menu-cat-header { padding-top: 4px; }
.dsec-menu-section { margin-bottom: 4px; }
.dsec-menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 6px; }
.dsec-menu-card {
  background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.dsec-menu-name { font-size: 13px; font-weight: 700; color: #0A101E; line-height: 1.3; }
.dsec-menu-price{ font-size: 13px; font-weight: 600; color: var(--accent); font-family: var(--mono); }
/* Reports */
.dsec-bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.dsec-bar-col   { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dsec-bar       { width: 100%; background: rgba(91,115,240,0.14); border-radius: 4px 4px 0 0; transition: height 0.5s; min-height: 4px; }
.dsec-bar.hi    { background: var(--accent); }
.dsec-bar-lbl   { font-size: 9px; color: #CBD5E1; font-family: var(--mono); }
.dsec-stat-row  { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #F8FAFC; align-items: center; }
.dsec-stat-row:last-child { border-bottom: none; }
.dsec-stat-label { font-size: 13px; color: #64748B; }
.dsec-stat-val   { font-size: 14px; font-weight: 700; color: #0A101E; font-family: var(--mono); }
/* Staff list */
.dsec-staff-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid #F8FAFC;
}
.dsec-staff-item:last-child { border-bottom: none; }
.dsec-staff-av {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.dsec-staff-name { font-size: 13px; font-weight: 600; color: #0A101E; }
.dsec-staff-role { font-size: 12px; color: #94A3B8; }
.dsec-staff-status {
  margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px;
}
.dsec-staff-status.on  { background: rgba(16,185,129,0.1); color: #10B981; }
.dsec-staff-status.off { background: #F1F5F9; color: #94A3B8; }
/* Settings form */
.dsec-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.dsec-field:last-child { margin-bottom: 0; }
.dsec-field-label { font-size: 12px; font-weight: 600; color: #374151; }
.dsec-field-input {
  padding: 10px 13px; border: 1.5px solid #E2E8F0; border-radius: 8px;
  font-size: 13px; color: #64748B; background: #F8FAFC;
  font-family: 'Inter', sans-serif;
}
.dsec-section-label {
  font-size: 12px; font-weight: 700; color: #94A3B8; text-transform: uppercase;
  letter-spacing: 0.07em; margin-bottom: 14px; margin-top: 4px;
}

/* ─── AI CHATBOT ─── */
.chat-widget {
  position: absolute; bottom: 20px; right: 20px; z-index: 50;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.chat-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(91,115,240,0.32);
  transition: transform 0.2s, box-shadow 0.2s; position: relative;
}
.chat-toggle:hover { transform: scale(1.07); box-shadow: 0 6px 28px rgba(91,115,240,0.4); }
.chat-toggle-dot {
  position: absolute; top: 3px; right: 3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #10B981; border: 2px solid #fff;
}
.chat-panel {
  width: 360px; height: 520px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.18);
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(0.92) translateY(16px);
  opacity: 0; pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: bottom right;
}
.chat-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
.chat-header {
  padding: 14px 16px; background: var(--accent);
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.chat-header-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-header-info { flex: 1; }
.chat-header-title { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -0.2px; }
.chat-header-sub   { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 1px; }
.chat-close-btn {
  background: rgba(255,255,255,0.15); border: none; cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; transition: background 0.15s;
}
.chat-close-btn:hover { background: rgba(255,255,255,0.28); }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px; background: #F8FAFC;
}
.chat-msg { display: flex; flex-direction: column; gap: 3px; max-width: 85%; }
.chat-msg.bot  { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-bubble {
  padding: 9px 13px; border-radius: 14px; font-size: 13px; line-height: 1.5;
}
.chat-msg.bot  .chat-bubble { background: #fff; color: #0A101E; border: 1px solid #E2E8F0; border-radius: 4px 14px 14px 14px; }
.chat-msg.user .chat-bubble { background: var(--accent); color: #fff; border-radius: 14px 4px 14px 14px; }
.chat-msg-time { font-size: 10px; color: #CBD5E1; }
.chat-msg.bot  .chat-msg-time { padding-left: 4px; }
.chat-msg.user .chat-msg-time { padding-right: 4px; text-align: right; }
.chat-suggestions { display: flex; flex-direction: column; gap: 6px; padding: 0 14px 10px; flex-shrink: 0; background: #F8FAFC; }
.chat-suggestion {
  text-align: left; padding: 8px 12px; background: #fff;
  border: 1px solid #E2E8F0; border-radius: 8px; cursor: pointer;
  font-size: 12px; color: #374151; font-family: 'Inter', sans-serif;
  transition: border-color 0.15s, background 0.15s;
}
.chat-suggestion:hover { border-color: var(--accent); background: rgba(91,115,240,0.03); color: var(--accent); }
.chat-input-row {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 1px solid #E2E8F0; background: #fff; flex-shrink: 0;
}
.chat-input {
  flex: 1; border: 1.5px solid #E2E8F0; border-radius: 8px;
  padding: 8px 12px; font-size: 13px; font-family: 'Inter', sans-serif;
  outline: none; background: #F8FAFC; color: #0A101E; transition: border-color 0.18s;
}
.chat-input:focus { border-color: var(--accent); background: #fff; }
.chat-send-btn {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  background: var(--accent); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.chat-send-btn:hover { background: #4B5FD8; }
.chat-mini-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12px; }
.chat-mini-table th { color: #94A3B8; font-weight: 600; padding: 4px 6px; text-align: left; font-size: 10px; text-transform: uppercase; }
.chat-mini-table td { padding: 5px 6px; border-top: 1px solid #F1F5F9; color: #374151; }
.chat-typing { display: flex; gap: 4px; align-items: center; padding: 10px 13px; background: #fff; border: 1px solid #E2E8F0; border-radius: 4px 14px 14px 14px; width: fit-content; }
.chat-typing-dot { width: 6px; height: 6px; border-radius: 50%; background: #CBD5E1; animation: chatDot 1.2s infinite; }
.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatDot { 0%,80%,100% { transform: scale(1); opacity:0.5; } 40% { transform: scale(1.3); opacity:1; } }
.dash-sidebar-footer {
  padding: 14px 16px; border-top: 1px solid #F1F5F9;
  font-size: 12px; color: #94A3B8; display: flex; align-items: center; gap: 8px;
}
.dash-sidebar-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
/* Main area */
.dash-main {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
}
.dash-topbar {
  height: 52px; flex-shrink: 0; background: #fff;
  border-bottom: 1px solid #E2E8F0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
}
.dash-topbar-title { font-size: 16px; font-weight: 700; color: #0A101E; letter-spacing: -0.4px; }
.dash-topbar-right { display: flex; align-items: center; gap: 14px; }
.dash-notif-btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: #F8FAFC; border: 1px solid #E2E8F0;
  display: flex; align-items: center; justify-content: center;
  cursor: default; position: relative;
}
.dash-notif-badge {
  position: absolute; top: 5px; right: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #EF4444; border: 1.5px solid #fff;
}
.dash-user-chip {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #374151;
}
.dash-user-chip-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.dash-content {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 18px;
}
/* Metric cards */
.dash-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.dash-card {
  background: #fff; padding: 18px 16px;
  border: 1px solid #E2E8F0; border-radius: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.dash-card-label { font-size: 11px; color: #94A3B8; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.dash-card-value { font-size: 24px; font-weight: 800; color: #0A101E; letter-spacing: -0.8px; font-family: var(--mono); }
.dash-card-delta { font-size: 12px; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.dash-card-delta.up   { color: #10B981; }
.dash-card-delta.flat { color: #94A3B8; }
/* Chart section */
.dash-chart-panel {
  background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 18px 20px;
}
.dash-chart-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.dash-chart-title { font-size: 14px; font-weight: 700; color: #0A101E; letter-spacing: -0.3px; }
.dash-chart-tabs { display: flex; gap: 4px; }
.dash-chart-tab {
  padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600;
  border: none; background: transparent; color: #94A3B8; cursor: default;
  font-family: 'Inter', sans-serif; transition: all 0.15s;
}
.dash-chart-tab.active { background: rgba(91,115,240,0.08); color: var(--accent); }
.dash-line-chart {
  height: 120px; position: relative; display: flex; align-items: flex-end;
  border-left: 1px solid #F1F5F9; border-bottom: 1px solid #F1F5F9;
  padding-bottom: 0; overflow: visible;
}
.dash-line-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dash-chart-xlabels {
  display: flex; justify-content: space-between;
  padding: 6px 0 0; font-size: 10px; color: #CBD5E1; font-family: var(--mono);
}
/* Two column lower */
.dash-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-panel {
  background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 0;
}
.dash-panel-title { font-size: 14px; font-weight: 700; color: #0A101E; margin-bottom: 14px; letter-spacing: -0.3px; }
/* Top items */
.dash-top-item   { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dash-top-item:last-child { margin-bottom: 0; }
.dash-item-rank  { font-size: 11px; color: #CBD5E1; font-family: var(--mono); width: 14px; text-align: center; flex-shrink: 0; }
.dash-item-name  { font-size: 13px; color: #374151; font-weight: 500; flex: 1; }
.dash-item-bar-wrap { width: 64px; height: 5px; background: #F1F5F9; border-radius: 3px; overflow: hidden; }
.dash-item-bar   { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.6s ease; }
.dash-item-count { font-size: 12px; color: #94A3B8; font-family: var(--mono); width: 28px; text-align: right; flex-shrink: 0; }
/* Performance summary */
.dash-perf-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #F8FAFC;
}
.dash-perf-row:last-child { border-bottom: none; }
.dash-perf-label { font-size: 13px; color: #64748B; }
.dash-perf-value { font-size: 13px; font-weight: 700; color: #0A101E; font-family: var(--mono); }
.dash-perf-value.green { color: #10B981; }
/* Activity feed */
.dash-activity-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid #F8FAFC;
}
.dash-activity-item:last-child { border-bottom: none; }
.dash-activity-dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 4px; flex-shrink: 0;
}
.dash-activity-dot.green  { background: #10B981; }
.dash-activity-dot.blue   { background: var(--accent); }
.dash-activity-dot.amber  { background: #F59E0B; }
.dash-activity-text { font-size: 12px; color: #374151; line-height: 1.5; flex: 1; }
.dash-activity-time { font-size: 11px; color: #CBD5E1; font-family: var(--mono); flex-shrink: 0; white-space: nowrap; }
