.dashboard-page {
  height: 100vh;
  height: 100dvh;
}

.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dashboard-header {
  padding: var(--space-lg) var(--space-xxl);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-shrink: 0;
}

.dashboard-header h1 {
  font-size: var(--text-title);
  font-weight: var(--weight-semibold);
}

.dashboard-grid {
  flex: 1;
  padding: var(--space-xxl);
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
  align-content: start;
}

.board-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
}

.board-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.board-card-preview {
  height: 140px;
  background: var(--canvas-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.board-card-preview .board-icon {
  font-size: 48px;
  opacity: 0.6;
}

.board-card-body {
  padding: var(--space-md);
}

.board-card-title {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xxs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-card-date {
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.board-card-actions {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  display: flex;
  gap: var(--space-xxs);
  opacity: 0;
  transition: var(--transition-fast);
}

.board-card:hover .board-card-actions {
  opacity: 1;
}

.board-card-actions .btn {
  padding: var(--space-xxs) var(--space-xs);
  font-size: var(--text-caption);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-flat);
}

.board-card-actions .btn:hover {
  background: var(--canvas-soft);
}

.dashboard-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl);
  text-align: center;
}

.dashboard-empty-icon {
  font-size: 64px;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.dashboard-empty h2 {
  font-size: var(--text-heading-3);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}

.dashboard-empty p {
  color: var(--ink-secondary);
  margin-bottom: var(--space-xxl);
  max-width: 400px;
}
