/* ============================================
   WHITE OAK MEDIA — Client Portal Styles
   05-dashboard.css — Admin dashboard widgets, client projects grid, Bible verse, quick stats, upsell, footer, Donna's Brief
   ============================================ */

/* ---------- Projects List, Deadlines, Requests (Admin Dashboard widgets) ---------- */
/* ---------- Projects List (Admin Dashboard) ---------- */
.projects-list { max-height: 500px; overflow-y: auto; }
.project-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--color-border-light);
  cursor: pointer; transition: background var(--transition);
}
.project-row:last-child { border-bottom: none; }
.project-row:hover { background: var(--color-cream); }
.project-row-left { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0; }
.project-avatar {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--color-navy); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.project-row-info { min-width: 0; }
.project-row-info h4 { font-size: 0.9rem; font-weight: 600; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-row-info p { font-size: 0.78rem; color: var(--color-text-secondary); margin-top: 0.125rem; }
.project-row-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* ---------- Deadlines List ---------- */
.deadlines-list { max-height: 500px; overflow-y: auto; }
.deadline-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.875rem 1.5rem; border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition); cursor: pointer;
}
.deadline-row:last-child { border-bottom: none; }
.deadline-row:hover { background: var(--color-cream); }
.deadline-row-info { flex: 1; min-width: 0; }
.deadline-row-info h4 { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deadline-row-info p { font-size: 0.72rem; color: var(--color-text-secondary); margin-top: 0.125rem; }
.deadline-row-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.deadlines-empty { padding: 2rem 1.5rem; text-align: center; color: var(--color-text-muted); font-size: 0.85rem; }

/* ---------- Requests List ---------- */
.requests-list { max-height: 500px; overflow-y: auto; }
.requests-list.compact { max-height: 350px; }
.request-row {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--color-border-light);
  cursor: pointer; transition: background var(--transition);
}
.request-row:last-child { border-bottom: none; }
.request-row:hover { background: var(--color-cream); }
.request-row-info { flex: 1; min-width: 0; }
.request-row-info h4 { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.request-row-info p { font-size: 0.78rem; color: var(--color-text-secondary); margin-top: 0.125rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.request-row-meta { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; margin-top: 0.25rem; }
.requests-empty, .timeline-empty, .projects-empty {
  padding: 2rem 1.5rem; text-align: center; color: var(--color-text-muted); font-size: 0.85rem;
}


/* ---------- Client Projects Grid ---------- */
/* ---------- Client Projects Grid ---------- */
.client-projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.client-project-card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; transition: all var(--transition);
}
.client-project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--color-primary); }
.client-card-top { padding: 1.5rem; }
.client-card-service-badge { margin-bottom: 0.75rem; }
.client-card-top h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--color-navy); letter-spacing: -0.025em; }
.client-card-top p { font-size: 0.85rem; color: var(--color-text-secondary); margin-top: 0.25rem; line-height: 1.5; }
.client-card-phase { margin-top: 1.25rem; }
.client-card-phase-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.client-card-phase-bar {
  height: 6px; background: var(--color-cream); border-radius: 3px; overflow: hidden;
}
.client-card-phase-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; background: var(--color-primary); }
.client-card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border-top: 1px solid var(--color-border-light);
  background: var(--color-cream);
}
.client-card-status { display: flex; align-items: center; gap: 0.5rem; }
.client-card-meta { font-size: 0.78rem; color: var(--color-text-secondary); }
.client-card-deadline { font-size: 0.72rem; font-weight: 600; }

/* Retainer card indicator */
.client-project-card.retainer-card {
  border-left: 3px solid var(--color-primary);
}

/* Completed project card */
.client-project-card.completed-project-card {
  border-left: 3px solid var(--color-success);
  background: var(--color-white);
}
.client-project-card.completed-project-card:hover {
  border-color: var(--color-success);
}
.badge-completed {
  background: var(--color-success-bg); color: var(--color-success);
  font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.5rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em;
  display: inline-block; margin-left: 0.5rem; vertical-align: middle;
}
.client-card-phase-fill.completed-fill {
  background: var(--color-success) !important;
}

/* Hosting/Maintenance card */
.client-project-card.hosting-card {
  border-left: 3px solid var(--color-info);
  background: var(--color-white);
}
.client-project-card.hosting-card:hover {
  border-color: var(--color-info);
}
.badge-svc-hosting {
  background: #dbeafe; color: #2563eb;
}

/* Completed section spacing */
.completed-section { margin-top: 2rem; }
.completed-section-header { margin-bottom: 1.25rem; }


/* ---------- Bible Verse Card + Client Quick Stats + Service Upsell + Portal Footer ---------- */
/* ---------- Bible Verse Card ---------- */
.client-verse-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--color-navy);
  border-radius: var(--radius-lg); padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem; color: #f2f1ec;
}
.verse-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.15rem; }
.verse-body { flex: 1; }
.verse-text {
  font-size: 0.95rem; font-style: italic; line-height: 1.65;
  color: rgba(242,241,236,0.9); margin: 0 0 0.5rem;
}
.verse-ref { font-size: 0.75rem; color: rgba(242,241,236,0.5); font-weight: 600; letter-spacing: 0.02em; }

/* ---------- Client Quick Stats ---------- */
.client-quick-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem; margin-bottom: 1.25rem;
}
.quick-stat {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1rem 1.25rem;
}
.quick-stat-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.quick-stat-value { font-size: 1rem; font-weight: 700; color: var(--color-text); }
.quick-stat-label { font-size: 0.7rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Service Upsell ---------- */
.upsell-section { margin-top: 2rem; }
.upsell-header { margin-bottom: 1rem; }
.upsell-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.upsell-card {
  position: relative;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: all 0.15s; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.upsell-card:hover { border-color: var(--color-primary); box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-2px); }
.upsell-card-icon { margin-bottom: 0.75rem; color: var(--color-primary); }
.upsell-card-icon svg { width: 32px; height: 32px; }
.upsell-card h4 { font-size: 1rem; font-weight: 700; margin: 0; color: var(--color-text); }
.upsell-card p { font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.5; margin: 0; overflow-wrap: break-word; }
.btn-upsell-learn { align-self: center; }
.btn-success-sent { background: #d1fae5; color: #059669; border-color: #a7f3d0; pointer-events: none; }

/* ---------- Portal Footer ---------- */
.portal-footer {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 1.25rem 1rem;
  font-size: 0.72rem; color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}
.portal-footer a {
  color: var(--color-text-secondary); text-decoration: none;
  transition: color 0.15s;
}
.portal-footer a:hover { color: var(--color-primary); }
.portal-footer-sep { color: var(--color-border); }


/* ═══════════════════════════════════════════════════════════════════
   PHASE 5 / 6 REFRESH — Client Action Needed, Donna's Brief, TODAY, Recent Activity
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Client Dashboard — Action Needed card (Phase 5) ──────────── */
.client-action-needed-card {
  background: linear-gradient(0deg, var(--wom-warm-white), var(--wom-warm-white)), var(--wom-amber-bg);
  background: var(--wom-amber-bg);
  border: 1px solid #f5d9a8;
  border-left: 4px solid var(--wom-amber);
  border-radius: 12px;
  padding: 1.25rem 1.5rem 1.35rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.client-action-needed-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #f5d9a8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--wom-amber);
}
.client-action-needed-body { flex: 1; min-width: 0; }
.client-action-needed-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--wom-navy-deep);
  letter-spacing: -0.01em;
  margin: 0 0 0.3rem;
}
.client-action-needed-body p {
  font-size: 0.88rem;
  color: var(--wom-navy);
  font-weight: 300;
  margin: 0 0 0.85rem;
  line-height: 1.55;
}
.client-action-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.client-action-item-chip {
  background: #fff;
  border: 1px solid #f5d9a8;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--wom-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.client-action-needed-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--wom-oak);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.08s ease;
  text-decoration: none;
}
.client-action-needed-cta:hover { filter: brightness(0.94); color: #fff; text-decoration: none; }
.client-action-needed-cta:active { transform: scale(0.97); }

@media (max-width: 640px) {
  .client-action-needed-card { flex-direction: column; gap: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   PHASE 6 — DASHBOARD REDESIGN
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Donna's Brief card ────────────────────────────────────────── */
.donna-brief-card {
  background: var(--wom-warm-white);
  border: 1px solid var(--wom-stone);
  border-left: 4px solid var(--wom-oak);
  border-radius: 12px;
  padding: 1.25rem 1.5rem 1.35rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.donna-brief-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  gap: 1rem;
}
.donna-brief-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.donna-brief-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--wom-oak);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.85rem;
}
.donna-brief-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wom-oak);
}
.donna-brief-sub {
  font-size: 0.78rem;
  color: var(--wom-dim);
  font-weight: 400;
  margin-top: 0.1rem;
}
.donna-brief-refresh {
  background: none;
  border: none;
  font-size: 0.78rem;
  color: var(--wom-dim);
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  font-weight: 500;
  transition: color 0.12s ease, background 0.12s ease;
}
.donna-brief-refresh:hover { color: var(--wom-navy-deep); background: var(--wom-cream); }
.donna-brief-refresh.is-loading { opacity: 0.6; pointer-events: none; }
.donna-brief-refresh.is-loading svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.donna-brief-body {
  font-size: 0.94rem;
  color: var(--wom-navy);
  font-weight: 300;
  line-height: 1.7;
  white-space: pre-wrap;
}
.donna-brief-body p { margin: 0 0 0.3rem; }
.donna-brief-body p:last-child { margin-bottom: 0; }
.donna-brief-loading {
  color: var(--wom-dim);
  font-style: italic;
  font-size: 0.88rem;
}
.donna-brief-empty {
  color: var(--wom-dim);
  font-size: 0.88rem;
}

/* ─── TODAY list ────────────────────────────────────────────────── */
.today-list-card {
  background: #fff;
  border: 1px solid var(--wom-stone);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.today-list-card .section-card-header {
  padding: 0.95rem 1.5rem;
  border-bottom: 1px solid var(--wom-cream-dark);
}
.today-list-empty {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--wom-dim);
  font-size: 0.88rem;
}
.today-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--wom-cream-dark);
  transition: background 0.12s ease;
  cursor: pointer;
}
.today-item:hover { background: var(--wom-warm-white); }
.today-item:last-child { border-bottom: none; }
.today-item-priority {
  width: 4px;
  align-self: stretch;
  border-radius: 4px;
  margin: 0.15rem 0;
}
.today-item-priority.critical { background: var(--wom-rust); }
.today-item-priority.high { background: var(--wom-amber); }
.today-item-priority.medium { background: var(--wom-copper); }
.today-item-priority.low { background: var(--wom-sage); }
.today-item-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.today-item-icon.invoice { background: var(--wom-rust-bg); color: var(--wom-rust); }
.today-item-icon.asset { background: var(--wom-amber-bg); color: var(--wom-amber); }
.today-item-icon.monitoring { background: var(--wom-rust-bg); color: var(--wom-rust); }
.today-item-icon.approval { background: var(--wom-copper-bg); color: var(--wom-copper); }
.today-item-icon.email { background: var(--wom-slate-bg); color: var(--wom-slate); }
.today-item-body { flex: 1; min-width: 0; }
.today-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--wom-navy-deep);
  margin: 0;
}
.today-item-sub {
  font-size: 0.78rem;
  color: var(--wom-dim);
  margin-top: 0.1rem;
  font-weight: 400;
}
.today-item-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wom-dim);
  white-space: nowrap;
  margin-left: auto;
}
.today-item-meta.urgent { color: var(--wom-rust); }
.today-item-arrow {
  color: var(--wom-dim);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.today-item:hover .today-item-arrow { transform: translateX(3px); color: var(--wom-oak); }

/* ─── Recent Activity timeline ─────────────────────────────────── */
.activity-timeline {
  padding: 0.5rem 0;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.7rem 1.5rem;
  border-bottom: 1px solid var(--wom-cream-dark);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.activity-dot.payment { background: var(--wom-sage); }
.activity-dot.client { background: var(--wom-slate); }
.activity-dot.update { background: var(--wom-copper); }
.activity-dot.donna { background: var(--wom-oak); }
.activity-dot.default { background: var(--wom-dim); }
.activity-body { flex: 1; min-width: 0; }
.activity-text {
  font-size: 0.88rem;
  color: var(--wom-navy);
  font-weight: 300;
  margin: 0;
  line-height: 1.5;
}
.activity-text strong { font-weight: 700; color: var(--wom-navy-deep); }
.activity-time {
  font-size: 0.74rem;
  color: var(--wom-dim);
  margin-top: 0.15rem;
}

/* ─── Today item resolve button ──────────────────────────────────── */
.today-item-resolve {
  background: transparent;
  border: 1.5px solid var(--wom-stone);
  color: var(--wom-dim);
  border-radius: 7px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  padding: 0;
  margin-left: 0.5rem;
}
.today-item-resolve:hover {
  background: var(--wom-sage-bg);
  border-color: var(--wom-sage);
  color: var(--wom-sage);
}
.today-item-resolve:active { transform: scale(0.92); }
.today-item-resolve:disabled { opacity: 0.5; pointer-events: none; }
