/* Welcome banner */
.welcome-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #0D3D7A 100%);
  border-radius: var(--r-lg);
  padding: 36px 40px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.welcome-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: 80px;
  width: 140px;
  height: 140px;
  background: rgba(245, 166, 35, 0.1);
  border-radius: 50%;
}

.welcome-banner h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
}

.welcome-banner p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 24px;
  position: relative;
}

.welcome-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}

.btn-white {
  background: #fff;
  color: var(--blue);
  border: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-white:hover {
  background: #F0F7FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Stat cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 4px;
  font-family: 'DM Sans', sans-serif;
}

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

.stat-card.highlight {
  border-color: var(--amber-border);
  background: var(--amber-light);
}

.stat-card.highlight .stat-value {
  color: var(--amber-text);
}

/* Layout grids */
.three-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.col-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* .card / .card-header / .card-title / .card-body now live in layout.css */

/* Survey table */
.survey-table {
  width: 100%;
  border-collapse: collapse;
}

.survey-table thead th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  padding: 8px 16px;
  text-align: left;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.survey-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

.survey-table tbody tr:last-child {
  border-bottom: none;
}

.survey-table tbody tr:hover {
  background: var(--muted);
}

.survey-table td {
  padding: 12px 16px;
  font-size: 13px;
  vertical-align: middle;
}

.org-name {
  font-weight: 500;
  color: var(--dark);
}

.org-meta {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}

/* Status pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill-active {
  background: var(--green-light);
  color: var(--green-text);
  border: 1px solid var(--green-border);
}

.pill-pending, .pill-awaiting-send {
  background: var(--amber-light);
  color: var(--amber-text);
  border: 1px solid var(--amber-border);
}

.pill-draft {
  background: #EDE9FE;
  color: #5B21B6;
  border: 1px solid #C4B5FD;
}

.pill-completed {
  background: var(--muted);
  color: var(--text-3);
  border: 1px solid var(--border);
}

.pill-generated {
  background: var(--green-light);
  color: var(--green-text);
  border: 1px solid var(--green-border);
}

.pill-closed {
  background: var(--muted);
  color: var(--text-3);
  border: 1px solid var(--border);
}

/* Progress bar */
.progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  width: 80px;
}

.progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 4px;
}

.progress-label {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

.muted-cell {
  font-size: 12px;
  color: var(--text-3);
}

/* Quick actions */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  color: inherit;
}

.quick-action-btn:hover {
  border-color: var(--orange);
  background: var(--orange-light);
}

.qa-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

/* Icon size matches the prototype (star_coach_dashboard_1.html). The font-size
   above still applies to the quick actions that are text glyphs rather than SVGs. */
.qa-icon svg {
  width: 16px;
  height: 16px;
}

.qa-icon-orange {
  background: var(--orange-light);
  color: var(--orange-text);
}

.qa-icon-blue {
  background: var(--blue-light);
  color: var(--blue-text);
}

.qa-icon-green {
  background: var(--green-light);
  color: var(--green-text);
}

.qa-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
}

.qa-sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}

/* Needs attention panel */
.attention-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.attention-item:last-child {
  border-bottom: none;
}

.attention-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.dot-amber { background: var(--amber); }
.dot-blue  { background: var(--blue); }
.dot-green { background: var(--green); }

.attention-body {
  flex: 1;
  min-width: 0;
}

.attention-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
}

.attention-text strong {
  font-weight: 600;
}

.attention-time {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

.attention-action {
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  padding: 2px 0;
  flex-shrink: 0;
}

.attention-action:hover {
  text-decoration: underline;
}

/* Empty state */
.empty-state {
  padding: 32px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .three-col {
    grid-template-columns: 1fr;
  }
}
