/* === DASHBOARD PAGE === */

.dash-page {
  min-height: calc(100vh - 80px);
  padding: 48px 0 80px;
}

.dash-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
}

.dash-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--navy);
  margin-bottom: 6px;
}

.dash-sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg-muted);
}

/* Streak indicator */
.dash-streak {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 20px;
  text-align: center;
  flex-shrink: 0;
}

.dash-streak-num {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1;
}

.dash-streak-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* Quick action cards */
.dash-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.dash-action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  cursor: pointer;
}

.dash-action-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
  transform: translateY(-2px);
}

.dash-action-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.dash-action-label {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.dash-action-sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* Activity sections */
.dash-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.dash-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.dash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-section-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.dash-see-all {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.15s;
}

.dash-see-all:hover {
  color: var(--navy);
}

/* Empty states */
.dash-empty {
  text-align: center;
  padding: 28px 16px;
}

.dash-empty-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.dash-empty-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.dash-link {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 500;
}

.dash-link:hover {
  text-decoration: underline;
}

/* Activity list */
.dash-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-item {
  border-radius: 8px;
  overflow: hidden;
}

.dash-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 8px;
  text-decoration: none;
  color: var(--fg);
  border-radius: 8px;
  transition: background 0.12s;
}

.dash-item-link:hover {
  background: var(--bg-alt);
}

.dash-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dash-item-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-item-meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dash-score {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.dash-score-good {
  background: #dcfce7;
  color: #15803d;
}

.dash-score-low {
  background: #fef3c7;
  color: #92400e;
}

.dash-item-time {
  font-family: var(--font-head);
  font-size: 11px;
  color: var(--fg-muted);
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 700px) {
  .dash-actions {
    grid-template-columns: 1fr;
  }

  .dash-sections {
    grid-template-columns: 1fr;
  }

  .dash-header {
    flex-direction: column;
    gap: 20px;
  }

  .dash-streak {
    align-self: flex-start;
  }
}
