/* ============================================
   LIVE DASHBOARD — Platform Mock
   ============================================ */

.dashboard {
  position: relative;
  z-index: 2;
  padding: var(--space-32) var(--space-6);
  overflow: hidden;
}

.dashboard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-deepest) 0%, var(--bg-deep) 50%, var(--bg-deepest) 100%);
  z-index: 0;
}

.dashboard__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.dashboard__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.dashboard__header .section-label  { justify-content: center; }
.dashboard__header .section-headline { max-width: 700px; margin-inline: auto; }
.dashboard__header .section-desc    { margin-inline: auto; }

/* ── Platform Mock Window ── */
.platform-mock {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 163, 255, 0.05);
  background: #0d1117;
}

.platform-mock__chrome {
  height: 36px;
  background: #161b27;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  flex-shrink: 0;
}

.platform-mock__dots { display: flex; gap: 6px; }
.platform-mock__dot  { width: 10px; height: 10px; border-radius: 50%; }
.platform-mock__dot--red    { background: #FF5F57; }
.platform-mock__dot--yellow { background: #FFBD2E; }
.platform-mock__dot--green  { background: #28C840; }

.platform-mock__chrome-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  font-family: var(--font-body);
}

.platform-mock__chrome-right {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-body);
  white-space: nowrap;
}

.platform-mock__body {
  display: flex;
  height: 540px;
  overflow: hidden;
}

/* ── Sidebar ── */
.platform-mock__sidebar {
  width: 136px;
  min-width: 136px;
  background: #0a0f1a;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.platform-mock__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.platform-mock__logo-icon {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: white;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.platform-mock__logo-name {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  line-height: 1.2;
}

.platform-mock__logo-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-body);
}

.platform-mock__nav-group { padding-top: 6px; }

.platform-mock__nav-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
  padding: 4px 12px 2px;
  font-family: var(--font-body);
}

.platform-mock__nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-body);
  cursor: default;
  border-left: 2px solid transparent;
}

.platform-mock__nav-item--active {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(59, 130, 246, 0.1);
  border-left-color: #3b82f6;
}

.platform-mock__nav-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  opacity: 0.5;
}

.platform-mock__nav-item--active .platform-mock__nav-icon { opacity: 1; }

.platform-mock__user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.platform-mock__user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.platform-mock__user-name {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
  line-height: 1.3;
}

.platform-mock__user-role {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-body);
}

/* ── Main Content ── */
.platform-mock__content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0d1117;
  min-width: 0;
}

.platform-mock__topbar {
  height: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 16px;
  justify-content: space-between;
  flex-shrink: 0;
}

.platform-mock__page-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-display);
}

.platform-mock__page-date {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 400;
}

.platform-mock__tabs { display: flex; gap: 3px; }

.platform-mock__tab {
  font-size: 9px;
  padding: 3px 9px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.3);
  cursor: default;
  font-family: var(--font-body);
}

.platform-mock__tab--active {
  background: #3b82f6;
  color: white;
}

.platform-mock__main-scroll {
  flex: 1;
  overflow: hidden;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-mock__greeting { flex-shrink: 0; }

.platform-mock__greeting h3 {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-display);
  margin: 0;
}

.platform-mock__greeting p {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-body);
  margin: 3px 0 0;
}

/* ── KPI Cards ── */
.platform-mock__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  flex-shrink: 0;
}

.platform-mock__kpi {
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.platform-mock__kpi--blue   { background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(59,130,246,0.04)); }
.platform-mock__kpi--purple { background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(124,58,237,0.04)); }
.platform-mock__kpi--amber  { background: linear-gradient(135deg, rgba(214,158,46,0.2), rgba(214,158,46,0.05)); border-color: rgba(214,158,46,0.15); }
.platform-mock__kpi--red    { background: linear-gradient(135deg, rgba(229,62,62,0.2), rgba(229,62,62,0.05)); border-color: rgba(229,62,62,0.15); }

.platform-mock__kpi-label {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--font-body);
  margin-bottom: 5px;
}

.platform-mock__kpi-value {
  font-size: 20px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-display);
  line-height: 1;
}

.platform-mock__kpi--amber .platform-mock__kpi-value { color: #d69e2e; }
.platform-mock__kpi--red   .platform-mock__kpi-value { color: #e53e3e; }

.platform-mock__kpi-sub {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-body);
  margin-top: 4px;
}

/* ── Charts Row ── */
.platform-mock__charts {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.4fr;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.platform-mock__chart-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.platform-mock__chart-title {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.platform-mock__chart-title span {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 400;
  font-family: var(--font-body);
}

/* Donut chart */
.platform-mock__donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.platform-mock__donut { width: 90px; height: 90px; flex-shrink: 0; }

.platform-mock__donut-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.platform-mock__legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
}

.platform-mock__legend-item strong {
  margin-left: auto;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.platform-mock__legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Warehouse bars */
.platform-mock__wh-bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  justify-content: center;
}

.platform-mock__wh-bar-name {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  margin-bottom: 3px;
}

.platform-mock__wh-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.platform-mock__wh-bar-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 2px;
  width: 0;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-mock__wh-bar-num {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-body);
  margin-top: 2px;
}

/* Operational Intelligence */
.platform-mock__intel-badge {
  font-size: 7px;
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 500;
  font-family: var(--font-body);
  white-space: nowrap;
}

.platform-mock__intel-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  justify-content: center;
}

.platform-mock__intel-item {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  padding-left: 12px;
  position: relative;
  line-height: 1.45;
}

.platform-mock__intel-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.platform-mock__intel-item--blue::before  { background: #3b82f6; box-shadow: 0 0 4px rgba(59,130,246,0.6); }
.platform-mock__intel-item--red::before   { background: #e53e3e; box-shadow: 0 0 4px rgba(229,62,62,0.6); }
.platform-mock__intel-item--amber::before { background: #d69e2e; box-shadow: 0 0 4px rgba(214,158,46,0.6); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .platform-mock__sidebar { display: none; }
  .platform-mock__body { height: auto; }
  .platform-mock__main-scroll { overflow: visible; }
  .platform-mock__charts { grid-template-columns: 1fr 1fr; }
  .platform-mock__chart-card:last-child { grid-column: span 2; }
}

@media (max-width: 768px) {
  .dashboard { padding: var(--space-20) var(--space-4); }
  .platform-mock__body { height: auto; }
  .platform-mock__kpis { grid-template-columns: repeat(2, 1fr); }
  .platform-mock__charts { grid-template-columns: 1fr; }
  .platform-mock__chart-card:last-child { grid-column: span 1; }
  .platform-mock__chrome-right { display: none; }
}

@media (max-width: 480px) {
  .platform-mock__kpi-value { font-size: 16px; }
  .platform-mock__chrome-title { font-size: 9px; }
}
