/* Illustrative product dashboard shown in the hero, modelled on the app's overview screen */
.dashboard-wrap { position: relative; min-width: 0; padding: 18px 0 20px; }
.dashboard-glow { position: absolute; z-index: 0; width: 68%; aspect-ratio: 1; top: 1%; right: 10%; border-radius: 50%; background: #dce9ff; filter: blur(62px); opacity: .8; }
.dashboard { position: relative; z-index: 1; overflow: hidden; border: 1px solid #e4eaf2; border-radius: 15px; background: #fff; box-shadow: var(--shadow-card); transform: perspective(1300px) rotateY(-2deg) rotateX(1deg); }
.app-shell { display: grid; grid-template-columns: 132px minmax(0, 1fr); }

/* Sidebar */
.app-sidebar { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px 12px; border-right: 1px solid #edf0f4; background: #fff; }
.app-sidebar-logo { width: 64px; height: auto; margin: 0 0 14px 6px; }
.app-sidebar-label { margin: 12px 0 4px 6px; color: var(--subtle); font-size: 7px; font-weight: 720; letter-spacing: .12em; text-transform: uppercase; }
.app-sidebar-item { display: flex; align-items: center; gap: 7px; min-height: 26px; padding: 0 7px; border: 0; border-radius: 6px; color: #475467; background: transparent; font-size: 9px; font-weight: 560; text-align: left; }
.app-sidebar-item svg { flex: 0 0 13px; width: 13px; height: 13px; color: #667085; }
.app-sidebar-item:hover { background: #f8fafc; }
.app-sidebar-item.is-active { color: var(--blue-700); background: var(--blue-50); font-weight: 650; }
.app-sidebar-item.is-active svg { color: var(--blue-600); }
.app-sidebar-foot { display: flex; align-items: center; gap: 7px; margin-top: auto; padding: 8px; border: 1px solid #edf0f4; border-radius: 8px; }
.app-status-dot { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 3px #dcfae6; }
.app-sidebar-foot strong { display: block; color: #344054; font-size: 8px; }
.app-sidebar-foot small { display: block; color: var(--subtle); font-size: 7px; }

/* Top bar */
.app-main { min-width: 0; background: #f8fafc; }
.app-topbar { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-bottom: 1px solid #edf0f4; background: #fff; }
.app-search { display: flex; flex: 1; align-items: center; gap: 6px; max-width: 210px; min-height: 26px; padding: 0 9px; border: 1px solid #e4e7ec; border-radius: 7px; color: var(--subtle); background: #fbfcfd; font-size: 8.5px; white-space: nowrap; }
.app-search svg { flex: 0 0 11px; width: 11px; height: 11px; }
.demo-pill { margin-left: auto; padding: 4px 8px; border-radius: var(--pill); color: #64748b; background: #f2f4f7; font-size: 7.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.app-user { display: grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #1d4ed8; background: #eaf1ff; font-size: 8.5px; font-weight: 700; }

/* Page */
.dashboard-body { padding: 14px; }
.dash-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.dash-heading .dash-title { margin: 0; color: #1d2939; font-size: 15px; font-weight: 730; line-height: 1.25; letter-spacing: -.03em; }
.dash-heading p { margin: 3px 0 0; color: #8995a7; font-size: 9px; }
.date-select { display: inline-flex; align-items: center; gap: 6px; min-height: 27px; padding: 0 9px; border: 1px solid #e4e7ec; border-radius: 7px; color: #475467; background: #fff; font-size: 8.5px; font-weight: 600; white-space: nowrap; }
.date-select svg { width: 10px; height: 10px; }

.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.metric { min-width: 0; padding: 10px 11px; border: 1px solid #e8edf3; border-radius: 9px; background: #fff; }
.metric-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.metric-icon { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 6px; color: var(--blue-600); background: var(--blue-50); }
.metric-icon svg { width: 12px; height: 12px; }
.metric-label { color: #667085; font-size: 8.5px; font-weight: 560; }
.metric-value { margin-top: 3px; color: #1d2939; font-size: 18px; font-weight: 730; line-height: 1.05; letter-spacing: -.045em; white-space: nowrap; }
.metric-trend { color: var(--success); font-size: 8px; font-weight: 700; }
.metric-caption { margin-top: 4px; overflow: hidden; color: #98a2b3; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }

.chart-panel { margin-top: 8px; padding: 11px 12px 7px; border: 1px solid #e8edf3; border-radius: 9px; background: #fff; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.chart-head strong { display: block; color: #344054; font-size: 9.5px; }
.chart-head small { display: block; margin-top: 1px; color: #98a2b3; font-size: 7.5px; }
.chart-head b { color: #1d2939; font-size: 9.5px; }
.chart { width: 100%; height: 76px; margin-top: 6px; }
.chart-grid { stroke: #edf1f6; stroke-width: 1; }
.chart-line { fill: none; stroke: #3478f6; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: url(#chart-fill); }
.chart-labels { display: flex; justify-content: space-between; padding: 0 1px; color: #a0aaba; font-size: 7.5px; }

.orders-panel { margin-top: 8px; padding: 10px 12px 4px; border: 1px solid #e8edf3; border-radius: 9px; background: #fff; }
.recent-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; }
.recent-head strong { color: #344054; font-size: 9.5px; }
.recent-head a { color: var(--blue-600); font-size: 8px; font-weight: 650; }
.order-row { display: grid; grid-template-columns: .8fr 1fr 1.1fr .8fr 82px; align-items: center; gap: 8px; min-height: 26px; border-top: 1px solid #f0f2f5; color: #667085; font-size: 8px; }
.order-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-head { min-height: 20px; border-top: 0; color: var(--subtle); font-size: 6.5px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.order-head span:last-child { justify-self: end; }
.order-id, .order-total { color: #344054; font-weight: 650; }
.order-row > .mini-badge { justify-self: end; padding: 2px 7px; border-radius: var(--pill); font-size: 7.5px; font-weight: 650; }
.tone-neutral { color: #475467; background: #f2f4f7; }
.tone-warning { color: var(--warning); background: var(--warning-bg); }
.tone-info { color: var(--info); background: var(--info-bg); }
.tone-success { color: var(--success); background: var(--success-bg); }

.floating-sync { position: absolute; z-index: 2; right: -20px; bottom: -16px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid #e8edf3; border-radius: 11px; background: #fff; box-shadow: 0 10px 30px rgb(16 24 40 / 12%); }
.sync-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #039855; background: #eafaf1; }
.sync-icon svg { width: 15px; height: 15px; }
.floating-sync strong { display: block; color: #344054; font-size: 10px; }
.floating-sync small { display: block; color: #98a2b3; font-size: 8px; }

@media (max-width: 820px) {
  .dashboard-wrap { width: min(100%,720px); margin: 0 auto; padding: 15px 8px 24px; }
  .floating-sync { right: -2px; bottom: 0; }
  .dashboard { transform: none; }
}
@media (max-width: 620px) {
  .dashboard-wrap { width: calc(100% + 10px); margin-left: -5px; padding: 10px 2px 22px; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-topbar { padding-inline: 10px; }
  .dashboard-body { padding: 11px 10px; }
  .dash-heading .dash-title { font-size: 13px; }
  .date-select { padding-inline: 6px; font-size: 7.5px; }
  .metrics { gap: 5px; }
  .metric { padding: 8px 7px; }
  .metric-icon { width: 18px; height: 18px; }
  .metric-value { font-size: 13px; }
  .metric-caption { display: none; }
  .chart { height: 62px; }
  .order-row { grid-template-columns: .8fr 1fr .8fr 74px; gap: 5px; font-size: 7px; }
  .order-customer { display: none; }
  .floating-sync { right: 0; padding: 8px 10px; gap: 7px; }
  .sync-icon { width: 23px; height: 23px; }
  .floating-sync strong { font-size: 8px; }
  .floating-sync small { font-size: 7px; }
}
