/* =====================================================
   NextGEN TVETMARA V21
   Profile Completion + Counselor Notes + Pre-offer Filter
   ===================================================== */

.v21-card {
  border-radius: 18px;
  border: 1px solid rgba(30, 64, 175, .14);
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(239,246,255,.92));
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.v21-profile-completion {
  overflow: hidden;
  position: relative;
}

.v21-profile-completion::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59,130,246,.18), transparent 70%);
  pointer-events: none;
}

.v21-completion-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .25);
  overflow: hidden;
}

.v21-completion-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  transition: width .45s ease;
}

.v21-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .28rem .65rem;
  font-size: .72rem;
  font-weight: 800;
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(255,255,255,.82);
  color: #334155;
}

.v21-chip-missing {
  border-color: rgba(249,115,22,.28);
  background: rgba(255,247,237,.88);
  color: #c2410c;
}

.v21-chip-ok {
  border-color: rgba(34,197,94,.24);
  background: rgba(240,253,244,.88);
  color: #15803d;
}

.v21-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: 12px;
  padding: .65rem 1rem;
  font-weight: 900;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.v21-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
}

.v21-table-wrap {
  max-height: 540px;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.35);
  background: white;
}

.v21-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .84rem;
}

.v21-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #334155;
  font-weight: 900;
  border-bottom: 1px solid rgba(148,163,184,.35);
  padding: .7rem .65rem;
  text-align: left;
  white-space: nowrap;
}

.v21-table tbody td {
  border-bottom: 1px solid rgba(226,232,240,.9);
  padding: .65rem;
  vertical-align: top;
}

.v21-table tbody tr:hover {
  background: rgba(239,246,255,.62);
}

.v21-mini-input,
.v21-mini-select,
.v21-mini-textarea {
  width: 100%;
  border: 1px solid rgba(148,163,184,.65);
  border-radius: 10px;
  padding: .5rem .6rem;
  background: #fff;
  font-size: .82rem;
}

.v21-mini-textarea {
  min-height: 54px;
  resize: vertical;
}

.v21-filter-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: .75rem;
}

@media (min-width: 768px) {
  .v21-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.v21-stat-pill {
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(148,163,184,.28);
  padding: .85rem 1rem;
}

.v21-stat-pill .value {
  font-size: 1.45rem;
  font-weight: 1000;
  color: #1d4ed8;
  line-height: 1.1;
}

.v21-stat-pill .label {
  font-size: .76rem;
  color: #64748b;
  font-weight: 700;
}

#v21ProfileCompletionCard .v21-missing-list {
  max-width: 100%;
}

#v21CounselorNotesBox,
#v21PreofferPanelInner {
  animation: v21FadeIn .25s ease both;
}

@keyframes v21FadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
