/* ============================================================================
   Empty-state dashboard + workspace analytics (js/dashboard.js)
   ============================================================================ */

/* ---------------------------------------------------- empty-state dashboard */
.dash-empty {
  max-width: 620px;
  margin: 0 auto;
  padding: 8vh 24px 40px;
  text-align: center;
}
.dash-empty-head { margin-bottom: 26px; }
.dash-empty-title {
  font-family: var(--font-display, inherit);
  font-size: 30px; font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 6px; color: var(--text, #2b2b31);
}
.dash-empty-sub { margin: 0; font-size: 14px; color: var(--text-light, #6b6b76); }

.dash-actions {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 34px;
}
.dash-action {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  background: var(--bg-soft, rgba(0, 0, 0, .04));
  border: 1px solid var(--border, rgba(0, 0, 0, .07));
  color: var(--text, #2b2b31);
  transition: background .15s ease, transform .12s ease;
}
.dash-action:hover { background: var(--hover, rgba(0, 0, 0, .07)); transform: translateY(-1px); }
.dash-action-primary {
  background: var(--accent, #5b5bd6); border-color: transparent; color: #fff;
}
.dash-action-primary:hover { filter: brightness(1.08); background: var(--accent, #5b5bd6); }
.dash-action-ic { display: inline-flex; }
.dash-action-ic svg { width: 15px; height: 15px; }

.dash-section-title {
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-faint, #8b8b96); margin-bottom: 10px; text-align: start;
}
.dash-recents { display: flex; flex-direction: column; gap: 2px; }
.dash-recent {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: 7px; width: 100%;
  background: none; border: none; cursor: pointer; text-align: start;
  font-size: 13.5px; color: var(--text, #2b2b31);
}
.dash-recent:hover { background: var(--hover, rgba(0, 0, 0, .05)); }
.dash-recent-ic { flex-shrink: 0; display: inline-flex; width: 17px; justify-content: center; }
.dash-recent-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------- analytics overlay */
.dash-overlay {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(12, 12, 20, .46);
  backdrop-filter: blur(3px);
  animation: dash-fade .16s ease;
}
@keyframes dash-fade { from { opacity: 0; } to { opacity: 1; } }

.dash-panel {
  width: min(920px, 100%);
  max-height: 88vh;
  display: flex; flex-direction: column;
  background: var(--bg, #fff);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
  overflow: hidden;
}
.dash-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border, rgba(0, 0, 0, .07));
  flex-shrink: 0;
}
.dash-head h2 {
  margin: 0; font-size: 16px; font-weight: 600;
  font-family: var(--font-display, inherit); color: var(--text, #2b2b31);
}
.dash-close {
  width: 28px; height: 28px; border-radius: 6px; font-size: 20px; line-height: 1;
  background: none; border: none; cursor: pointer; color: var(--text-light, #6b6b76);
}
.dash-close:hover { background: var(--hover, rgba(0, 0, 0, .06)); }

.dash-scroll { overflow-y: auto; padding: 18px 20px 24px; }

.dash-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px; margin-bottom: 18px;
}
.dash-stat {
  padding: 12px 14px; border-radius: 10px;
  background: var(--bg-soft, rgba(0, 0, 0, .035));
  border: 1px solid var(--border, rgba(0, 0, 0, .06));
}
.dash-stat-v {
  font-family: var(--font-display, inherit);
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text, #2b2b31); font-variant-numeric: tabular-nums;
}
.dash-stat-l { font-size: 12px; color: var(--text-light, #6b6b76); margin-top: 1px; }
.dash-stat-s { font-size: 11px; color: var(--text-faint, #8b8b96); margin-top: 3px; }

.dash-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px;
}
.dash-card {
  padding: 14px 16px 12px; border-radius: 10px;
  border: 1px solid var(--border, rgba(0, 0, 0, .07));
  background: var(--bg, #fff);
}
.dash-card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; margin-bottom: 10px;
}
.dash-card-head h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--text, #2b2b31); }
.dash-card-note { font-size: 11px; color: var(--text-faint, #8b8b96); }

.dash-spark { width: 100%; height: 56px; display: block; color: var(--accent, #5b5bd6); }

.dash-cols { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.dash-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.dash-col-bar { width: 100%; border-radius: 3px 3px 0 0; margin-top: auto; min-height: 2px; opacity: .85; }
.dash-col-label { font-size: 10px; color: var(--text-faint, #8b8b96); margin-top: 4px; }

.dash-list { display: flex; flex-direction: column; gap: 1px; }
.dash-list-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 7px; border-radius: 6px; width: 100%;
  background: none; border: none; cursor: pointer; text-align: start;
  font-size: 13px; color: var(--text, #2b2b31);
}
.dash-list-row:hover { background: var(--hover, rgba(0, 0, 0, .05)); }
.dash-list-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-list-n {
  font-size: 11.5px; color: var(--text-faint, #8b8b96); font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.dash-empty-note { font-size: 12.5px; color: var(--text-faint, #8b8b96); padding: 6px 2px; }

@media (max-width: 640px) {
  .dash-panel { max-height: 94vh; }
  .dash-overlay { padding: 10px; }
  .dash-empty { padding-top: 6vh; }
}
