/* ==========================================================================
   CareerPro AI — dashboard.css
   Layout & components specific to the app shell dashboard
   ========================================================================== */

/* Welcome banner */
.welcome-banner {
  background: var(--grad-hero);
  border-radius: var(--r-xl);
  padding: 2rem 2.25rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.welcome-banner .grid-pattern { position: absolute; inset: 0; opacity: .18; }
.welcome-banner .blob-glow {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.18); filter: blur(50px); top: -90px; right: -40px;
}
.welcome-banner h2 { color: #fff; font-size: 1.7rem; }
.welcome-banner p { opacity: .92; max-width: 520px; }

/* Quick action grid */
.quick-actions {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.quick-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; padding: 1.4rem .75rem; text-align: center;
  border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface);
  transition: all var(--t) var(--ease-bounce);
}
.quick-action i { font-size: 1.5rem; color: var(--brand-500); }
.quick-action span { font-weight: 700; font-size: .9rem; }
.quick-action:hover { transform: translateY(-4px); border-color: var(--brand-300); box-shadow: var(--shadow-md); color: var(--brand-600); }

/* Dashboard layout grid */
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.dash-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Card header */
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.card-title { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: .55rem; }
.card-title i { color: var(--brand-500); }

/* Chart container */
.chart-box { position: relative; height: 280px; }
.chart-box-sm { position: relative; height: 220px; }

/* Activity feed */
.activity-item { display: flex; gap: .9rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; font-size: .85rem; }
.activity-body strong { font-size: .92rem; }
.activity-body small { color: var(--text-soft); font-size: .8rem; }

/* AI suggestion card */
.ai-suggest {
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(168,85,247,.08));
  border: 1px dashed var(--brand-300);
  border-radius: var(--r-md); padding: 1rem; display: flex; gap: .85rem;
}
.ai-suggest .activity-dot { background: var(--grad-brand); }

/* Goal mini */
.goal-mini { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.goal-mini:last-child { border-bottom: none; }
.goal-mini .flex-between { margin-bottom: .5rem; }

/* Kanban preview (job pipeline) */
.pipeline { display: grid; grid-template-columns: repeat(6,1fr); gap: .5rem; }
.pipeline-col { background: var(--surface-2); border-radius: var(--r-md); padding: .65rem; text-align: center; }
.pipeline-col .count { font-size: 1.4rem; font-weight: 800; }
.pipeline-col .lbl { font-size: .72rem; color: var(--text-muted); font-weight: 600; }

/* Notification list */
.notif-item { display: flex; gap: .75rem; padding: .65rem; border-radius: var(--r-md); transition: background var(--t-fast); cursor: pointer; }
.notif-item:hover { background: var(--surface-3); }
.notif-item.unread { background: var(--brand-50); }
[data-theme="dark"] .notif-item.unread { background: rgba(99,102,241,.12); }
.notif-item.unread::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); margin-top: .5rem; flex-shrink: 0; }

/* Resume completion checklist */
.check-item { display: flex; align-items: center; gap: .65rem; padding: .55rem 0; }
.check-item i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; }
.check-done i { background: var(--success); color: #fff; }
.check-todo i { background: var(--surface-3); color: var(--text-soft); }

@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
  .dash-stats { grid-template-columns: 1fr; }
  .dash-grid-3 { grid-template-columns: 1fr; }
}
