/* ==========================================================
   dashboard.css — Dashboard page styles
   ========================================================== */

.dashboard-header {
  margin-bottom: var(--space-8);
}

.dashboard-header h1 { margin-bottom: var(--space-1); }

.dashboard-empty {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  text-align: center;
  background: var(--bg-surface);
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-8);
}

.dashboard-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.dashboard-empty h2 { font-size: var(--text-xl); }

.kb-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.kb-grid-header h2 { font-size: var(--text-lg); }

/* Quick stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}

.stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* Recent chats section */
.recent-chats {
  margin-top: var(--space-8);
}

.recent-chat-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-micro) var(--ease-out);
}

.recent-chat-item:hover { background: var(--bg-surface); }

.recent-chat-meta {
  flex: 1;
  min-width: 0;
}

.recent-chat-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-chat-info {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 2px;
}
