/**
 * Nanban Students — world-class registry (ivory light)
 */

/* ── Page canvas ── */
#listSection.section-content {
  padding-bottom: 2rem;
}

/* ── Hero — premium strip ── */
#listSection .nb-crm-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: 1.75rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(28, 25, 23, 0.08);
  background: linear-gradient(135deg, #ffffff 0%, #fafaf9 55%, #fff7ed 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 32px rgba(28, 25, 23, 0.07);
}

#listSection .nb-crm-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -8%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.08), transparent 70%);
  pointer-events: none;
}

#listSection .nb-crm-hero__eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #dc2626;
  margin-bottom: 8px;
}

#listSection .nb-crm-hero__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #0c0a09;
}

#listSection .nb-crm-hero__sub {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  max-width: 40rem;
}

/* ── Subnav tabs ── */
#listMgmtSubnav {
  gap: 10px;
  margin-bottom: 1.25rem;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(28, 25, 23, 0.08);
  box-shadow: 0 2px 12px rgba(28, 25, 23, 0.04);
}

#listMgmtSubnav .list-mgmt-subtab {
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

#listMgmtSubnav .list-mgmt-subtab--active {
  background: #ffffff;
  border-color: rgba(220, 38, 38, 0.2);
  color: #b91c1c;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.1);
}

/* ── Filter shell ── */
#listSection .list-filter-shell.nb-crm-filter-shell {
  border-radius: 20px !important;
  padding: 1.5rem 1.75rem !important;
  background: #ffffff !important;
  border: 1px solid rgba(28, 25, 23, 0.1) !important;
  box-shadow: 0 4px 24px rgba(28, 25, 23, 0.06) !important;
}

/* Search */
#listSection .nb-stu-search-wrap {
  flex: 2;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(28, 25, 23, 0.12);
  background: #fafaf9;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#listSection .nb-stu-search-wrap:focus-within {
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
  background: #ffffff;
}

#listSection .nb-stu-search-wrap span {
  font-size: 18px;
  opacity: 0.55;
}

#listSection .nb-stu-search-wrap input,
#listSection #studentSearchInput {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0c0a09 !important;
  outline: none !important;
  box-shadow: none !important;
  width: 100%;
}

#listSection .nb-stu-search-wrap input::placeholder,
#listSection #studentSearchInput::placeholder {
  color: #9ca3af !important;
}

#listSection #studentCountBadge {
  padding: 12px 20px !important;
  background: linear-gradient(135deg, #fef2f2, #fff7ed) !important;
  border: 1px solid rgba(220, 38, 38, 0.15) !important;
  color: #991b1b !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  border-radius: 14px !important;
}

#listSection #studentFilterRow select {
  min-height: 46px;
  font-weight: 600 !important;
  cursor: pointer;
}

/* Bulk panel */
#listSection .nb-stu-bulk-panel {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(220, 38, 38, 0.15);
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.08);
}

#listSection .nb-stu-bulk-panel[style*="flex"],
#listSection .nb-stu-bulk-panel.nb-stu-bulk-panel--open {
  display: flex !important;
}

#listSection .nb-stu-bulk-panel__label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1c1917;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#listSection .nb-stu-bulk-panel__sep {
  height: 28px;
  width: 1px;
  background: rgba(28, 25, 23, 0.12);
  margin: 0 6px;
}

#listSection #bulkStatusText {
  color: #6b7280 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  margin-left: auto;
}

/* ── Grid ── */
#listSection .student-card-grid,
#listSection .nb-crm-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 20px;
  margin-top: 1.5rem;
}

/* ── CRM cards (bento) ── */
#listSection .nb-crm-card {
  position: relative;
  border-radius: 20px;
  padding: 1.35rem 1.5rem 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(28, 25, 23, 0.1);
  box-shadow: 0 2px 12px rgba(28, 25, 23, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

#listSection .nb-crm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, #dc2626, #4f46e5);
  opacity: 0.85;
}

#listSection .nb-crm-card--student.nb-crm-row--active::before {
  background: linear-gradient(90deg, #0891b2, #2563eb);
}

#listSection .nb-crm-card--student.nb-crm-row--follow::before {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

#listSection .nb-crm-card--student.nb-crm-row--hold::before {
  background: #9ca3af;
}

#listSection .nb-crm-card:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 38, 38, 0.18);
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.1);
}

#listSection .nb-crm-card__name {
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: #0c0a09 !important;
  line-height: 1.25;
}

#listSection .nb-crm-card__name:hover {
  color: #dc2626 !important;
}

#listSection .nb-crm-card__phone {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb !important;
}

#listSection .nb-crm-card__service {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: #4338ca !important;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

/* Journey bar */
#listSection .nb-crm-journey {
  height: 32px;
  margin: 14px 0;
  background: #f5f5f4;
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: 999px;
}

#listSection .nb-crm-journey__bar {
  background: linear-gradient(90deg, #059669, #2563eb);
  border-radius: 999px;
}

#listSection .nb-crm-journey__dot {
  font-size: 10px;
  font-weight: 900;
  color: #9ca3af;
}

#listSection .nb-crm-journey__dot.active,
#listSection .nb-crm-journey__dot.done {
  color: #0c0a09;
}

/* Pills & chips */
#listSection .nb-crm-pill {
  border: 1px solid rgba(28, 25, 23, 0.1);
  background: #f5f5f4;
  color: #374151;
}

#listSection .nb-crm-pill--due {
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.3);
  background: #fffbeb;
}

#listSection .nb-crm-meta-chip {
  font-weight: 700;
  background: #fafaf9;
}

#listSection .nb-crm-meta-chip--due {
  color: #b45309;
  background: #fffbeb;
  border-color: rgba(217, 119, 6, 0.25);
}

/* Stats row */
#listSection .nb-crm-bento-stats {
  gap: 8px;
}

#listSection .nb-crm-stat {
  padding: 12px;
  border-radius: 14px;
  background: #fafaf9;
  border: 1px solid rgba(28, 25, 23, 0.07);
  text-align: center;
}

#listSection .nb-crm-stat__lbl {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #6b7280;
}

#listSection .nb-crm-stat__val {
  font-size: 16px;
  font-weight: 900;
  color: #0c0a09;
}

#listSection .nb-crm-stat--ok {
  color: #059669 !important;
}

#listSection .nb-crm-stat--warn {
  color: #dc2626 !important;
}

/* Actions */
#listSection .nb-crm-btn {
  border: 1px solid rgba(28, 25, 23, 0.12);
  background: #ffffff;
  color: #374151;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 800;
  transition: all 0.15s ease;
}

#listSection .nb-crm-btn--primary {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: transparent;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

#listSection .nb-crm-btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

#listSection .nb-crm-btn--danger {
  background: #fef2f2 !important;
  border-color: rgba(220, 38, 38, 0.25) !important;
  color: #b91c1c !important;
}

/* Empty state */
#listSection .nb-crm-empty {
  padding: 4rem 2rem;
  border: 2px dashed rgba(28, 25, 23, 0.12);
  background: linear-gradient(180deg, #fafaf9, #ffffff);
  border-radius: 20px;
}

#listSection .nb-crm-empty__title {
  font-size: 20px;
  font-weight: 800;
  color: #0c0a09;
}

#listSection .nb-crm-empty__sub {
  color: #6b7280;
  font-size: 14px;
}

/* ── Legacy premium student cards ── */
#listSection .premium-student-card {
  border-radius: 22px;
  padding: 1.5rem 1.5rem 1.35rem;
  border: 1px solid rgba(28, 25, 23, 0.1);
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(28, 25, 23, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#listSection .premium-student-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(28, 25, 23, 0.1);
  border-color: rgba(220, 38, 38, 0.15);
}

#listSection .premium-student-card .card-name {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0c0a09 !important;
  letter-spacing: -0.03em;
}

#listSection .premium-student-card .card-subtext {
  color: #2563eb !important;
  font-weight: 700;
}

#listSection .premium-student-card .card-finance-box,
#listSection .premium-student-card .inner-fee-box {
  background: #fafaf9;
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 16px;
}

#listSection .premium-student-card .btn-view-profile {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.22);
}

/* Journey stepper — light */
#listSection .journey-line {
  background: #e7e5e4;
}

#listSection .journey-progress {
  background: linear-gradient(90deg, #059669, #2563eb);
}

#listSection .j-step {
  background: #ffffff;
  border: 2px solid #d6d3d1;
  color: #78716c;
  font-weight: 900;
}

#listSection .j-step.active {
  border-color: #4f46e5;
  color: #4338ca;
  background: #eef2ff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

#listSection .j-step.done {
  border-color: #059669;
  background: #059669;
  color: #ffffff;
}

#listSection .j-label {
  color: #9ca3af;
  font-weight: 800;
}

#listSection .j-step.active .j-label {
  color: #4338ca;
}

#listSection .j-step.done .j-label {
  color: #059669;
}

@media (max-width: 768px) {
  #listSection .nb-crm-hero {
    padding: 1.25rem 1.35rem;
  }

  #listMgmtSubnav .list-mgmt-subtab {
    flex: 1 1 calc(50% - 5px);
    text-align: center;
    font-size: 12px;
    padding: 10px 8px;
  }

  #listSection .student-card-grid,
  #listSection .nb-crm-bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
