/* ==========================================================================
   dashboard.css — Dashboard module (Stage 2)
   ========================================================================== */

.dash-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ---------------------------------- Notification banner ---------------------------------- */

.notice-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--gold-100);
  color: var(--gold-600);
  border: 1px solid rgba(201, 151, 43, 0.35);
}

.notice-banner p {
  flex: 1;
  font-size: 13.5px;
  color: var(--text-900);
  min-width: 180px;
}

.notice-banner .btn-secondary {
  background: var(--paper-card);
  flex-shrink: 0;
}

.notice-banner--muted {
  background: var(--paper-100);
  color: var(--text-400);
  border-color: var(--paper-line);
}

.notice-banner--muted p {
  color: var(--text-600);
}

/* ---------------------------------- Stat cards ---------------------------------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 18px 18px 16px;
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-400);
}

.stat-value {
  font-family: "Fraunces", serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--text-900);
  line-height: 1.1;
}

.stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-600);
  margin-top: 4px;
}

.stat-sub {
  font-size: 11px;
  color: var(--text-400);
}

.stat-card--moss .stat-value {
  color: var(--moss-600);
}

.stat-card--rust .stat-value {
  color: var(--rust-500);
}

.stat-card--gold .stat-value {
  color: var(--gold-600);
}

/* ---------------------------------- Two-column panels ---------------------------------- */

.dash-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .dash-columns {
    grid-template-columns: 1fr;
  }
}

.dash-panel {
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px 20px 16px;
}

.dash-panel-header {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-600);
  margin-bottom: 14px;
}

.dash-panel-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-900);
}

.dash-panel-empty {
  font-size: 13.5px;
  color: var(--text-400);
  padding: 10px 2px 4px;
}

.dash-panel-link {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--paper-line);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-600);
  text-align: left;
}

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

/* ---------------------------------- Shared row-button styling ---------------------------------- */

.deadline-list,
.activity-list {
  display: flex;
  flex-direction: column;
}

.deadline-item,
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 6px;
  border-radius: 10px;
  text-align: left;
  transition: background 0.14s ease;
}

.deadline-item:hover,
.activity-item:hover {
  background: var(--paper-100);
}

.deadline-item + .deadline-item,
.activity-item + .activity-item {
  border-top: 1px solid var(--paper-line);
}

.deadline-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.dot-overdue { background: var(--rust-500); }
.dot-due7    { background: var(--status-amber-text); }
.dot-due30   { background: var(--gold-600); }
.dot-safe    { background: var(--moss-600); }
.dot-none    { background: var(--text-400); }

.deadline-item-main,
.activity-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.deadline-item-title,
.activity-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deadline-item-sub,
.activity-item-sub {
  font-size: 12px;
  color: var(--text-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deadline-item-when {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.deadline-item-date {
  font-size: 12px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--text-900);
}

.deadline-item-meta {
  font-size: 11px;
  margin-top: 1px;
}

.activity-item-time {
  font-size: 11.5px;
  color: var(--text-400);
  flex-shrink: 0;
  font-family: "IBM Plex Mono", monospace;
}

/* Read-only status pill (no dropdown affordance) for dashboard rows */
.status-pill-static {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ---------------------------------- Quick actions ---------------------------------- */

.dash-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  color: var(--text-900);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.quick-action-btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold-500);
  color: var(--gold-600);
}

/* ---------------------------------- Small screens ---------------------------------- */

@media (max-width: 640px) {
  .deadline-item-when {
    align-items: flex-start;
  }
  .deadline-item,
  .activity-item {
    flex-wrap: wrap;
  }
  .status-pill-static {
    margin-left: 21px;
  }
}
