/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f5f7;
  color: #333;
  line-height: 1.5;
  display: flex;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar {
  width: 220px;
  background: #1a0a2e;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
}
.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand-text { font-size: 1.2rem; font-weight: 700; letter-spacing: 1px; }
.brand-u { color: #a78bfa; }
.brand-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}
.sidebar-nav { flex: 1; padding: 12px 0; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.nav-item.active {
  color: #fff;
  background: rgba(167,139,250,0.12);
  border-left-color: #a78bfa;
}
.sidebar-footer {
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user {
  padding: 8px 18px 4px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Main ────────────────────────────────────────────── */
.main {
  flex: 1;
  margin-left: 220px;
  min-height: 100vh;
  overflow-x: hidden;
}
.topbar {
  background: #fff;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e5e5;
  position: sticky; top: 0; z-index: 100;
}
.topbar-title { font-size: 1.15rem; font-weight: 700; color: #1a0a2e; }

/* ── Tab Content ─────────────────────────────────────── */
.tab-content { display: none; padding: 24px 28px 40px; }
.tab-content.active { display: block; }

/* ── Stats Grid ──────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  font-weight: 600;
  margin-bottom: 6px;
}
.stat-value { font-size: 1.6rem; font-weight: 700; color: #1a0a2e; }
.stat-sub { font-size: 0.75rem; color: #999; margin-top: 2px; }

/* ── Section Header ──────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-header h2 { font-size: 1.05rem; font-weight: 700; color: #1a0a2e; }

/* ── Pipeline Board ──────────────────────────────────── */
.pipeline-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 28px;
}
.pipeline-col {
  min-width: 200px;
  max-width: 240px;
  flex: 1;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}
.pipeline-col-header {
  padding: 12px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  border-bottom: 2px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pipeline-count {
  background: #f0ecf5;
  color: #4a1d96;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
}
.pipeline-col-body {
  padding: 8px;
  flex: 1;
  max-height: 300px;
  overflow-y: auto;
}
.pipeline-card {
  background: #f8f7fa;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.pipeline-card:hover { box-shadow: 0 2px 8px rgba(26,10,46,0.12); }
.pipeline-card-name { font-weight: 600; color: #1a0a2e; margin-bottom: 2px; }
.pipeline-card-meta { color: #888; font-size: 0.7rem; }

/* ── Activity Feed ───────────────────────────────────── */
.activity-feed { margin-bottom: 28px; }
.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.85rem;
}
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4a1d96;
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-text { flex: 1; }
.activity-text strong { color: #1a0a2e; }
.activity-time { color: #999; font-size: 0.75rem; white-space: nowrap; }

/* ── Toolbar ─────────────────────────────────────────── */
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: 9px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
}
.search-input:focus { border-color: #4a1d96; box-shadow: 0 0 0 3px rgba(74,29,150,0.1); }
.filter-select {
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.85rem;
  background: #fff;
  outline: none;
  cursor: pointer;
}

/* ── Data Table ──────────────────────────────────────── */
.table-wrap {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}
.data-table td {
  padding: 11px 14px;
  font-size: 0.85rem;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}
.data-table tbody tr { transition: background 0.1s; }
.data-table tbody tr:hover { background: #faf8fc; }

/* ── Status Badge ────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.status-applied { background: #ede9fe; color: #5b21b6; }
.status-emailed { background: #dbeafe; color: #1d4ed8; }
.status-job_center_found { background: #d1fae5; color: #065f46; }
.status-orientation_complete { background: #d1fae5; color: #065f46; }
.status-wioa_submitted { background: #fef3c7; color: #92400e; }
.status-case_manager_assigned { background: #fef3c7; color: #92400e; }
.status-bid_letter_requested { background: #fce7f3; color: #9d174d; }
.status-bid_letter_sent { background: #fce7f3; color: #9d174d; }
.status-po_received { background: #cffafe; color: #155e75; }
.status-contracts_signed { background: #cffafe; color: #155e75; }
.status-training_started { background: #d9f99d; color: #3f6212; }
.status-month1_complete,
.status-month2_complete { background: #d9f99d; color: #3f6212; }
.status-completed { background: #bbf7d0; color: #14532d; }
.status-stipend_sent { background: #bbf7d0; color: #14532d; }
.status-dropped { background: #fecaca; color: #991b1b; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #333;
  transition: all 0.15s;
}
.btn:hover { background: #f5f5f7; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-primary { background: #4a1d96; color: #fff; border-color: #4a1d96; }
.btn-primary:hover { background: #3a1578; }
.btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-ghost { border: none; background: transparent; color: #4a1d96; }
.btn-ghost:hover { background: #f0ecf5; }

/* ── Pagination ──────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
}
.pagination .btn { min-width: 36px; justify-content: center; }
.pagination .btn.active { background: #4a1d96; color: #fff; border-color: #4a1d96; }

/* ── Drawer ──────────────────────────────────────────── */
.drawer { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 300; }
.drawer.open { display: block; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(600px, 90vw);
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #eee;
}
.drawer-header h2 { font-size: 1.05rem; font-weight: 700; color: #1a0a2e; }
.drawer-close {
  background: none; border: none;
  font-size: 1.5rem; color: #999;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.drawer-close:hover { background: #f5f5f5; color: #333; }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px; }

/* Drawer sections */
.drawer-section { margin-bottom: 24px; }
.drawer-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.detail-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}
.detail-field input,
.detail-field select,
.detail-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.85rem;
  outline: none;
}
.detail-field input:focus,
.detail-field select:focus,
.detail-field textarea:focus {
  border-color: #4a1d96;
  box-shadow: 0 0 0 2px rgba(74,29,150,0.1);
}
.detail-field textarea { resize: vertical; min-height: 60px; }
.detail-field.full { grid-column: 1 / -1; }

/* Timeline */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 4px; top: 4px; bottom: 4px;
  width: 2px;
  background: #e5e5e5;
}
.timeline-item { position: relative; padding-bottom: 14px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px; top: 5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4a1d96;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #e5e5e5;
}
.timeline-stage { font-weight: 600; font-size: 0.85rem; color: #1a0a2e; }
.timeline-meta { font-size: 0.75rem; color: #999; }
.timeline-notes { font-size: 0.8rem; color: #666; margin-top: 2px; }

/* ── Modal ───────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 400;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  width: min(520px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #eee;
}
.modal-header h3 { font-size: 1rem; font-weight: 700; color: #1a0a2e; }
.modal-close {
  background: none; border: none;
  font-size: 1.3rem; color: #999;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.modal-close:hover { background: #f5f5f5; color: #333; }
.modal-body { padding: 20px 24px 24px; }
.modal-body .detail-grid { margin-bottom: 16px; }
.modal-body .btn { margin-top: 8px; }

/* ── Settings ────────────────────────────────────────── */
.settings-section { margin-bottom: 32px; }
.settings-section h2 { font-size: 1.05rem; font-weight: 700; color: #1a0a2e; margin-bottom: 8px; }
.settings-desc { font-size: 0.85rem; color: #666; margin-bottom: 12px; }
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.info-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.info-card h4 { font-size: 0.85rem; font-weight: 700; color: #1a0a2e; margin-bottom: 8px; }
.info-card p { font-size: 0.8rem; color: #666; line-height: 1.6; }
.stages-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stage-tag {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f0ecf5;
  color: #4a1d96;
}

/* ── Toggle Switch ───────────────────────────────────── */
.toggle {
  position: relative;
  display: inline-block;
  width: 38px; height: 20px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: #ccc;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 2px; bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle input:checked + .toggle-slider { background: #4a1d96; }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ── Animations ──────────────────────────────────────── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0.15); }
  50% { box-shadow: 0 0 0 6px rgba(0,0,0,0); }
}
@keyframes fillDot {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
@keyframes flowPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.anim-slide-up {
  opacity: 0;
  animation: slideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.anim-fade-in {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}
.anim-scale-in {
  opacity: 0;
  animation: scaleIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.anim-slide-left {
  opacity: 0;
  animation: slideInLeft 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Stagger delay utility (set via JS inline style) */

/* ── Pipeline Flow Diagram (Snaking) ─────────────────── */
.flow-diagram {
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 24px;
}
.flow-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.flow-legend {
  display: flex;
  gap: 16px;
  padding: 0 4px;
}
.flow-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.flow-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.flow-legend-applicant { background: #7C3AED; }
.flow-legend-student   { background: #2563EB; }
.flow-legend-graduate  { background: #059669; }
.flow-legend-dropped   { background: #DC2626; }

.flow-snake {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  padding: 4px 0;
}
.flow-snake-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 4px 8px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}
.flow-snake-row + .flow-snake-row {
  margin-top: -30px;
}

/* Horizontal arrows between nodes */
.flow-h-arrow {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 36px;
  max-width: 70px;
  color: #d4d0dc;
  margin-top: 18px;
  margin-left: -10px;
  margin-right: -10px;
}
.flow-h-arrow.active {
  color: #a78bfa;
}
.flow-h-arrow .arrow-shaft {
  flex: 1;
  height: 2px;
  background: currentColor;
}
.flow-h-arrow .arrow-tip {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 10px solid currentColor;
  flex-shrink: 0;
}
.flow-h-arrow.reversed {
  transform: scaleX(-1);
}

/* Arc connectors (inline with row, curve down to next row) */
.flow-arc-spacer {
  width: 40px;
  flex-shrink: 0;
}
.flow-arc-down {
  position: relative;
  width: 40px;
  flex-shrink: 0;
  color: #c4b5fd;
  margin-top: 10px;
  overflow: visible;
}
.flow-arc-down .arc-down-svg {
  width: 40px;
  height: 96px;
  display: block;
  overflow: visible;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  position: relative;
  opacity: 0;
  animation: scaleIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  min-width: 0;
  width: 72px;
  flex-shrink: 1;
}
.flow-node-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4a1d96, #6b2fa0);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.flow-node:hover .flow-node-circle {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.flow-node-circle.has-students {
  animation: pulse 2.5s ease-in-out infinite;
}
.flow-node-circle.empty {
  font-size: 0.75rem;
}

/* Classification colors -- active (has students) */
.flow-type-applicant .flow-node-circle { background: linear-gradient(135deg, #6D28D9, #7C3AED); }
.flow-type-student .flow-node-circle   { background: linear-gradient(135deg, #1D4ED8, #2563EB); }
.flow-type-graduate .flow-node-circle  { background: linear-gradient(135deg, #047857, #059669); }
.flow-type-dropped .flow-node-circle   { background: linear-gradient(135deg, #DC2626, #EF4444); }

/* Classification colors -- empty (muted) */
.flow-type-applicant .flow-node-circle.empty { background: linear-gradient(135deg, #c4b5fd, #ddd6fe); }
.flow-type-student .flow-node-circle.empty   { background: linear-gradient(135deg, #93c5fd, #bfdbfe); }
.flow-type-graduate .flow-node-circle.empty  { background: linear-gradient(135deg, #6ee7b7, #a7f3d0); }
.flow-type-dropped .flow-node-circle.empty   { background: linear-gradient(135deg, #fca5a5, #fecaca); }

.flow-node-label {
  font-size: 0.58rem;
  font-weight: 600;
  color: #888;
  text-align: center;
  max-width: 72px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  overflow: hidden;
  word-break: break-word;
}
.flow-node.active .flow-node-label { color: #4a1d96; }
.flow-node.flow-type-student.active .flow-node-label { color: #1D4ED8; }
.flow-node.flow-type-graduate.active .flow-node-label { color: #047857; }
.flow-node.flow-type-dropped.active .flow-node-label { color: #DC2626; }

.flow-node.flow-warn .flow-node-circle {
  box-shadow: 0 0 0 3px #fbbf24, 0 0 12px rgba(251,191,36,0.4);
  animation: none;
}
.flow-node.flow-warn .flow-node-label { color: #b45309; }

.flow-node.flow-danger .flow-node-circle {
  box-shadow: 0 0 0 3px #ef4444, 0 0 12px rgba(239,68,68,0.4);
  animation: dangerPulse 1.5s ease-in-out infinite;
}
.flow-node.flow-danger .flow-node-label { color: #dc2626; font-weight: 700; }

@keyframes dangerPulse {
  0%, 100% { box-shadow: 0 0 0 3px #ef4444, 0 0 12px rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 5px #ef4444, 0 0 20px rgba(239,68,68,0.6); }
}

.flow-dropped-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
  width: fit-content;
}
.flow-dropped-badge:hover {
  background: #fef2f2;
}
.flow-dropped-badge .flow-node-circle {
  width: 36px;
  height: 36px;
  font-size: 0.8rem;
}
.flow-dropped-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #991b1b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Dual Pie Chart Row ──────────────────────────────── */
.dual-pie-row {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}
.dual-pie-col {
  flex: 1;
  min-width: 0;
}
@media (max-width: 700px) {
  .dual-pie-row { flex-direction: column; }
}

/* ── Pie Chart Panel (shared by both charts) ─────────── */
.pie-panel {
  background: #fff;
  border-radius: 12px;
  padding: 20px 12px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  justify-content: center;
  align-items: center;
}
.pie-chart-wrap {
  width: 100%;
}
.pie-svg {
  width: 100%;
  height: auto;
  display: block;
}
.pie-slice {
  cursor: pointer;
  opacity: 0;
  transform-origin: 200px 160px;
  animation: pieReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: opacity 0.15s, transform 0.15s;
}
.pie-slice:hover {
  opacity: 0.85;
  transform: scale(1.03);
}
@keyframes pieReveal {
  from { opacity: 0; transform: scale(0.7) rotate(-20deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
.pie-hole {
  opacity: 0;
  animation: fadeIn 0.5s 0.3s ease forwards;
}
.pie-total-num {
  font-size: 1.4rem;
  font-weight: 800;
  fill: #1a0a2e;
  opacity: 0;
  animation: fadeIn 0.5s 0.5s ease forwards;
}
.pie-total-label {
  font-size: 0.5rem;
  font-weight: 600;
  fill: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeIn 0.5s 0.6s ease forwards;
}
.pie-label-line {
  stroke: #aaa;
  stroke-width: 0.7;
}
.pie-label-text {
  font-size: 7.5px;
  font-weight: 600;
  fill: #444;
}
.pie-label-pct {
  font-size: 6px;
  font-weight: 700;
  fill: #999;
}
.pie-empty-text {
  font-size: 9px;
  fill: #999;
  text-anchor: middle;
}
/* ── Student Type Badge ─────────────────────────────── */
.student-type-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 50px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}
.type-applicant { background: #ede9fe; color: #5b21b6; }
.type-student { background: #dbeafe; color: #1d4ed8; }
.type-graduate { background: #d1fae5; color: #065f46; }
.type-dropped { background: #fecaca; color: #991b1b; }

/* ── Progress Track (Students Table) ─────────────────── */
.progress-track {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 0;
}
.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e0ee;
  transition: all 0.2s;
  flex-shrink: 0;
}
.progress-dot.filled {
  background: #a78bfa;
  animation: fillDot 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.progress-dot.current {
  background: #4a1d96;
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 3px rgba(74,29,150,0.2);
  animation: fillDot 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards, pulse 2.5s ease-in-out 0.3s infinite;
}
.progress-dot.dropped-dot {
  background: #fca5a5;
}
.progress-dot.dropped-dot.current {
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.2);
}
.progress-track-label {
  font-size: 0.65rem;
  color: #999;
  margin-left: 6px;
  white-space: nowrap;
}

/* ── Quick Send Card ─────────────────────────────────── */
.quick-send-card {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1b69 100%);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 28px;
  color: #fff;
}
.quick-send-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.quick-send-card h3 svg { opacity: 0.7; }
.quick-send-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.quick-send-field { flex: 1; min-width: 180px; }
.quick-send-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 5px;
}
.quick-send-field input,
.quick-send-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s;
}
.quick-send-field input::placeholder { color: rgba(255,255,255,0.35); }
.quick-send-field input:focus,
.quick-send-field select:focus {
  border-color: #a78bfa;
  background: rgba(255,255,255,0.12);
}
.quick-send-field select option { color: #333; background: #fff; }
.quick-send-btn {
  padding: 10px 24px;
  background: #a78bfa;
  color: #1a0a2e;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: all 0.15s;
  white-space: nowrap;
}
.quick-send-btn:hover { background: #c4b5fd; transform: translateY(-1px); }
.quick-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.quick-send-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  display: none;
}
.quick-send-results.open { display: block; }
.quick-send-result {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s;
}
.quick-send-result:hover { background: #f5f3ff; }
.quick-send-result:last-child { border-bottom: none; }
.quick-send-result-name { font-weight: 600; color: #1a0a2e; }
.quick-send-result-email { font-size: 0.75rem; color: #888; }

/* ── Enhanced Buttons ────────────────────────────────── */
.btn {
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74,29,150,0.3);
}

/* ── Enhanced Status Badge ───────────────────────────── */
.status-badge {
  transition: transform 0.15s;
}
.status-badge:hover {
  transform: scale(1.05);
}

/* ── Enhanced Stat Card ──────────────────────────────── */
.stat-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ── Enhanced Drawer Animation ───────────────────────── */
.drawer.open .drawer-overlay {
  animation: fadeIn 0.25s ease forwards;
}
.drawer.open .drawer-panel {
  animation: slideInRight 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Enhanced Pipeline Card ──────────────────────────── */
.pipeline-card {
  transition: transform 0.15s, box-shadow 0.15s;
}
.pipeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26,10,46,0.15);
}

/* ── Enhanced Pipeline Column ────────────────────────── */
.pipeline-col {
  transition: transform 0.2s;
}
.pipeline-col:hover {
  transform: translateY(-2px);
}

/* ── Enhanced Activity Item ──────────────────────────── */
.activity-item {
  transition: background 0.15s;
  border-radius: 6px;
  padding-left: 8px;
  padding-right: 8px;
}
.activity-item:hover {
  background: #faf8fc;
}

/* ── Enhanced Table Row ──────────────────────────────── */
.data-table tbody tr {
  transition: background 0.15s, transform 0.1s;
}

/* ── Enhanced Info Card ──────────────────────────────── */
.info-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ── Student Progress Tracks Panel (Overview) ────────── */
.progress-tracks-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.pt-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 12px;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.pt-row:last-child { border-bottom: none; }
.pt-row:hover {
  background: #faf8fc;
  transform: translateX(4px);
}
.pt-student {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  flex-shrink: 0;
}
.pt-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a1d96, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.pt-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1a0a2e;
}
.pt-meta {
  font-size: 0.7rem;
  color: #999;
}
.pt-track {
  flex: 1;
  position: relative;
  min-width: 0;
}
.pt-bar {
  height: 6px;
  background: #ede9fe;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.pt-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a1d96, #7c3aed, #a78bfa);
  border-radius: 3px;
  animation: barGrow 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transform-origin: left;
}
.pt-bar-fill.pt-bar-dropped {
  background: linear-gradient(90deg, #dc2626, #ef4444);
  opacity: 0.4;
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.pt-dots {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.pt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5e0ee;
  transition: all 0.2s;
  opacity: 0;
  animation: fillDot 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.pt-dot.pt-complete {
  background: #a78bfa;
}
.pt-dot.pt-current {
  background: #4a1d96;
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 3px rgba(74,29,150,0.2);
  animation: fillDot 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards, pulse 2.5s ease-in-out 0.3s infinite;
}
.pt-dot.pt-dropped {
  background: #fca5a5;
}
.pt-pct {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4a1d96;
  min-width: 55px;
  text-align: right;
  flex-shrink: 0;
}
.pt-pct-dropped {
  color: #dc2626;
}

/* ── Floating Action Bar ─────────────────────────────── */
.action-bar {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  background: rgba(26, 10, 46, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(26, 10, 46, 0.35), 0 0 0 1px rgba(167, 139, 250, 0.15);
  z-index: 250;
  transition: bottom 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}
.action-bar.visible {
  bottom: 28px;
}
.action-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a78bfa;
}
.action-bar-count {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.action-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.action-bar-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.action-bar-primary {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}
.action-bar-primary:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* ── Checkbox Column ────────────────────────────────── */
.th-check {
  width: 40px;
  text-align: center;
}
.td-check {
  width: 40px;
  text-align: center;
}
.td-check input[type="checkbox"],
.th-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #4a1d96;
  cursor: pointer;
  vertical-align: middle;
}
.data-table tbody tr.row-selected td {
  background: #f5f0ff;
}
.data-table tbody tr.row-selected:hover td {
  background: #ede5ff;
}

/* ── Bulk Send Modal Enhancements ───────────────────── */
.send-modal-recipients {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 14px;
  background: #f8f7fa;
  border-radius: 8px;
  margin-bottom: 16px;
  max-height: 100px;
  overflow-y: auto;
}
.recipient-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #ede9fe;
  color: #4a1d96;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
}
.send-modal-preview {
  background: #f8f7fa;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0 16px;
  border-left: 3px solid #a78bfa;
}
.send-modal-preview .preview-subject {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a0a2e;
  margin-bottom: 4px;
}
.send-modal-preview .preview-desc {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
}
.send-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.send-result {
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}
.send-result-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.send-result-partial {
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.send-result h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.send-result p {
  font-size: 0.85rem;
  color: #666;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar-brand { padding: 12px 8px; text-align: center; }
  .brand-text { font-size: 0.8rem; }
  .brand-label { display: none; }
  .nav-item { padding: 10px; justify-content: center; font-size: 0; }
  .nav-item svg { margin: 0; }
  .main { margin-left: 60px; }
  .tab-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}

/* ── Utility ─────────────────────────────────────────── */
.text-muted { color: #999; }
.text-sm { font-size: 0.8rem; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.loading {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 0.9rem;
}
.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.role-admin { background: #ede9fe; color: #5b21b6; }
.role-viewer { background: #e0f2fe; color: #0369a1; }
.btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.btn-danger:hover { background: #fee2e2; }

/* ── My Account ─────────────────────────────────────── */
.my-account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}
.my-account-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.my-account-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a0a2e;
  margin-bottom: 2px;
}
.form-msg {
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 6px;
  display: none;
}
.form-msg.success { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-msg.error { display: block; background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
@media (max-width: 900px) {
  .my-account-grid { grid-template-columns: 1fr; }
}
