/* ══════════════════════════════════════════════════════════════════
   ADMISSION CHECK & ANSWER REVIEW STYLES
   Master of Dental Surgery — UST
══════════════════════════════════════════════════════════════════ */

/* ── Container Section ── */
.admission-check-section {
  position: relative;
  padding: 120px 20px 60px;
  background: linear-gradient(180deg, #0b1a30 0%, #0d2342 60%, #102a4e 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.admission-check-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(53, 183, 243, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(6, 214, 160, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.adm-container {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ── Header ── */
.adm-header {
  text-align: center;
  margin-bottom: 36px;
}

.adm-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(53, 183, 243, 0.15);
  border: 1px solid rgba(53, 183, 243, 0.35);
  color: #35B7F3;
  padding: 8px 22px;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.adm-title {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.adm-title .hl-text {
  background: linear-gradient(135deg, #35B7F3 0%, #06D6A0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.adm-subtitle {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Search Bar Box ── */
.adm-search-card {
  position: relative;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

.adm-search-wrapper {
  position: relative;
  z-index: 1001;
  display: flex;
  gap: 10px;
  align-items: center;
}

.adm-input-wrap {
  position: relative;
  z-index: 1002;
  flex: 1;
}

.adm-input-icon-left {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #35B7F3;
  font-size: 1.15rem;
  pointer-events: none;
}

.adm-search-input {
  width: 100%;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 16px 52px 16px 44px;
  font-family: var(--font-primary, 'Cairo', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a202c;
  direction: rtl;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.adm-search-input:focus {
  border-color: #35B7F3;
  box-shadow: 0 0 0 4px rgba(53, 183, 243, 0.25), 0 8px 24px rgba(0, 0, 0, 0.15);
}

.adm-search-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.adm-clear-btn {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #e2e8f0;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #64748b;
  font-size: 0.75rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.adm-clear-btn:hover {
  background: #cbd5e1;
  color: #1e293b;
}

.adm-search-btn {
  padding: 16px 32px;
  background: linear-gradient(135deg, #0774BA 0%, #35B7F3 100%);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-family: var(--font-primary, 'Cairo', sans-serif);
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(7, 116, 186, 0.35);
  white-space: nowrap;
}

.adm-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(53, 183, 243, 0.45);
}

/* ── Suggestions Dropdown ── */
.adm-suggestions-box {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  max-height: 320px;
  overflow-y: auto;
  z-index: 99999;
  display: none;
  border: 1px solid #cbd5e1;
}

.adm-suggest-item {
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease;
}

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

.adm-suggest-item:hover {
  background: #f8fafc;
}

.adm-suggest-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
}

.adm-suggest-name mark {
  background: rgba(53, 183, 243, 0.2);
  color: #0774BA;
  padding: 0 2px;
  border-radius: 3px;
}

.adm-suggest-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-suggest-spec {
  font-size: 0.8rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 6px;
}

.adm-suggest-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}

.adm-suggest-empty {
  padding: 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Status colors in suggest list */
.status-accepted { background: #dcfce7; color: #15803d; }
.status-transfer { background: #fef9c3; color: #854d0e; }
.status-wait-week { background: #fef3c7; color: #b45309; }
.status-wait-month { background: #e0f2fe; color: #0369a1; }
.status-default { background: #f1f5f9; color: #475569; }

/* ── Search Quota Bar ── */
.adm-quota-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
  flex-wrap: wrap;
  gap: 10px;
}

.adm-qb-text {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.adm-qb-text i {
  color: #35B7F3;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.adm-qb-text strong {
  color: #fff;
}

.adm-qb-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.adm-qdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.3s ease;
}

.adm-qdot.active {
  background: #06D6A0;
  border-color: #06D6A0;
  box-shadow: 0 0 8px rgba(6, 214, 160, 0.6);
}

.adm-qdot.warning {
  background: #f59e0b;
  border-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.adm-qdot.used {
  background: rgba(239, 68, 68, 0.35);
  border-color: rgba(239, 68, 68, 0.6);
}

/* ── Quota Lock Card ── */
.adm-quota-lock-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 38px 32px;
  text-align: center;
  color: #1e293b;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 2px solid #ef4444;
  position: relative;
  overflow: hidden;
  animation: admFadeIn 0.35s ease-out;
}

.adm-quota-lock-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #ef4444);
}

.adm-ql-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  background: #fef2f2;
  color: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

.adm-ql-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 10px;
}

.adm-ql-desc {
  font-size: 0.96rem;
  color: #64748b;
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.8;
}

.adm-ql-history {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  max-width: 620px;
  margin: 0 auto;
  text-align: right;
}

.adm-qlh-head {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-qlh-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adm-qlh-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  transition: all 0.2s ease;
  flex-wrap: wrap;
  gap: 10px;
}

.adm-qlh-item:hover {
  border-color: #35B7F3;
  box-shadow: 0 4px 14px rgba(53, 183, 243, 0.15);
}

.adm-qlh-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

.adm-qlh-spec {
  font-size: 0.8rem;
  color: #64748b;
  margin-right: 6px;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
}

.adm-qlh-btn {
  padding: 8px 18px;
  background: #0774BA;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.adm-qlh-btn:hover {
  background: #35B7F3;
  transform: translateY(-1px);
}

/* ── Result Area ── */
.adm-result-area {
  position: relative;
  z-index: 1;
  display: none;
  animation: admFadeIn 0.35s ease-out;
}

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

/* ── Result Card ── */
.adm-result-card {
  background: #ffffff;
  color: #1e293b;
  border-radius: 24px;
  padding: 36px 38px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.adm-result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #0774BA, #35B7F3, #06D6A0);
}

/* Header */
.adm-card-header {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

.adm-avatar-circle {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, rgba(7, 116, 186, 0.1), rgba(53, 183, 243, 0.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 2px solid rgba(7, 116, 186, 0.2);
  flex-shrink: 0;
}

.adm-header-info {
  flex: 1;
}

.adm-student-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0774BA;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.adm-student-name {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.adm-student-spec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #475569;
  font-weight: 600;
}

.adm-student-spec i {
  color: #35B7F3;
}

.adm-spec-en {
  font-size: 0.85rem;
  color: #64748b;
  direction: ltr;
}

.adm-grade-box {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 12px 24px;
  text-align: center;
  min-width: 120px;
}

.adm-grade-num {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 2.3rem;
  font-weight: 900;
  color: #0774BA;
  line-height: 1;
}

.adm-grade-sub {
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
}

.adm-grade-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 4px;
}

/* ── Status Banner ── */
.adm-status-banner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 16px;
  margin-bottom: 28px;
}

.adm-sb-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.adm-sb-title {
  margin: 0 0 6px 0;
  font-size: 1.18rem;
  font-weight: 800;
}

.adm-sb-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Accepted Banner */
.adm-status-banner.badge-accepted {
  background: #f0fdf4;
  border: 2px solid #86efac;
  color: #14532d;
}
.adm-status-banner.badge-accepted .adm-sb-icon {
  background: #22c55e;
  color: #fff;
}
.adm-status-banner.badge-accepted .adm-sb-title {
  color: #15803d;
}

/* Transfer/Alternative Major */
.adm-status-banner.badge-transfer {
  background: #fefce8;
  border: 2px solid #fde047;
  color: #713f12;
}
.adm-status-banner.badge-transfer .adm-sb-icon {
  background: #eab308;
  color: #fff;
}
.adm-status-banner.badge-transfer .adm-sb-title {
  color: #854d0e;
}

/* Waitlist 1 Week */
.adm-status-banner.badge-wait-week {
  background: #fffbeb;
  border: 2px solid #fcd34d;
  color: #78350f;
}
.adm-status-banner.badge-wait-week .adm-sb-icon {
  background: #f59e0b;
  color: #fff;
}
.adm-status-banner.badge-wait-week .adm-sb-title {
  color: #92400e;
}

/* Waitlist 1 Month */
.adm-status-banner.badge-wait-month {
  background: #f0f9ff;
  border: 2px solid #7dd3fc;
  color: #0c4a6e;
}
.adm-status-banner.badge-wait-month .adm-sb-icon {
  background: #0284c7;
  color: #fff;
}
.adm-status-banner.badge-wait-month .adm-sb-title {
  color: #0369a1;
}

/* ── Score Stats Grid ── */
.adm-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.adm-stat-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.adm-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.adm-si-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.adm-stat-item.green .adm-si-icon { background: #dcfce7; color: #16a34a; }
.adm-stat-item.red .adm-si-icon { background: #fee2e2; color: #dc2626; }
.adm-stat-item.grey .adm-si-icon { background: #f1f5f9; color: #64748b; }
.adm-stat-item.blue .adm-si-icon { background: #e0f2fe; color: #0284c7; }

.adm-si-data {
  display: flex;
  flex-direction: column;
}

.adm-si-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.adm-si-lbl {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 3px;
}

/* ── Waiting List Contact Form ── */
.adm-waitlist-box {
  background: #fff8eb;
  border: 2px dashed #f59e0b;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 28px;
}

.adm-wb-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.adm-wb-icon {
  font-size: 2rem;
}

.adm-wb-header h4 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #92400e;
}

.adm-wb-header p {
  margin: 0;
  font-size: 0.88rem;
  color: #78350f;
  line-height: 1.6;
}

.adm-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}

.adm-form-group {
  flex: 1;
}

.adm-form-group.full-width {
  width: 100%;
}

.adm-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #78350f;
  margin-bottom: 6px;
}

.adm-form-group .required {
  color: #dc2626;
  font-weight: 800;
}

.adm-form-group .optional {
  color: #94a3b8;
  font-weight: normal;
}

.adm-input-icon {
  position: relative;
}

.adm-input-icon i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #f59e0b;
  font-size: 0.95rem;
}

.adm-input-icon input,
.adm-form-group input[type="text"] {
  width: 100%;
  padding: 12px 42px 12px 14px;
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s;
}

.adm-form-group input[type="text"] {
  padding: 12px 14px;
}

.adm-input-icon input:focus,
.adm-form-group input[type="text"]:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.adm-input-icon input.invalid,
.adm-form-group input.invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.adm-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.adm-btn-save-contact {
  padding: 12px 26px;
  background: #d97706;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.adm-btn-save-contact:hover {
  background: #b45309;
  transform: translateY(-1px);
}

.adm-btn-save-contact:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.adm-save-feedback {
  font-size: 0.88rem;
  font-weight: 700;
  display: none;
}

.adm-save-feedback.visible {
  display: flex;
  align-items: center;
  gap: 6px;
}

.adm-save-feedback.success { color: #15803d; }
.adm-save-feedback.error { color: #dc2626; }
.adm-save-feedback.warning { color: #b45309; }

/* ── Action Buttons ── */
.adm-action-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.adm-btn-primary {
  flex: 2;
  padding: 16px 28px;
  background: linear-gradient(135deg, #0774BA 0%, #005691 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(7, 116, 186, 0.25);
}

.adm-btn-primary:hover {
  background: linear-gradient(135deg, #0988da 0%, #0774BA 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(7, 116, 186, 0.35);
}

.adm-btn-secondary {
  flex: 1;
  padding: 16px 24px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #334155;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.adm-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* ── Multiple Matches Card ── */
.adm-multi-card {
  background: #fff;
  color: #1e293b;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.adm-multi-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
}

.adm-multi-head i {
  font-size: 2rem;
  color: #35B7F3;
}

.adm-multi-head h3 {
  margin: 0 0 4px 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.adm-multi-head p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.adm-multi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.adm-multi-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.adm-multi-item:hover {
  border-color: #35B7F3;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.adm-mi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.adm-mi-name {
  font-weight: 800;
  color: #0f172a;
  font-size: 1.05rem;
}

.adm-badge-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}

.adm-mi-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 14px;
}

.adm-btn-pick {
  width: 100%;
  padding: 8px;
  background: #e0f2fe;
  color: #0369a1;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
}

.adm-multi-item:hover .adm-btn-pick {
  background: #0284c7;
  color: #fff;
}

/* ── Not Found Card ── */
.adm-not-found-card {
  background: #fff;
  color: #1e293b;
  border-radius: 20px;
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.adm-nf-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.adm-not-found-card h3 {
  font-size: 1.35rem;
  color: #0f172a;
  margin: 0 0 10px 0;
}

.adm-not-found-card p {
  color: #64748b;
  max-width: 540px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.adm-nf-tips {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px 20px;
  display: inline-block;
  text-align: right;
  max-width: 480px;
  font-size: 0.88rem;
  color: #475569;
}

.adm-nf-tips ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

/* ── Alert Notice ── */
.adm-alert-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 14px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ══════════════════════════════════════════════════════════════════
   DETAILED ANSWER REVIEW MODAL
══════════════════════════════════════════════════════════════════ */
.adm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 48, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: admFadeIn 0.25s ease-out;
}

.adm-modal-box {
  background: #ffffff;
  color: #1e293b;
  border-radius: 24px;
  width: 100%;
  max-width: 1080px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}

.adm-modal-header {
  padding: 24px 30px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}

.adm-mh-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #35B7F3;
  margin-bottom: 4px;
}

.adm-mh-title {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
}

.adm-mh-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

.adm-mh-meta strong {
  color: #35B7F3;
}

.adm-mh-stat-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
}

.adm-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.adm-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Modal Filter Bar */
.adm-modal-filter-bar {
  display: flex;
  gap: 10px;
  padding: 12px 30px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
  scrollbar-width: thin;
}

.adm-mf-tab {
  padding: 8px 18px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.adm-mf-tab:hover {
  border-color: #0774BA;
  color: #0774BA;
}

.adm-mf-tab.active {
  background: #0774BA;
  border-color: #0774BA;
  color: #fff;
}

.adm-modal-note {
  padding: 10px 30px;
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  font-size: 0.82rem;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Questions Grid */
.adm-questions-container {
  padding: 24px 30px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
  -webkit-overflow-scrolling: touch;
}

.adm-question-card {
  border-radius: 14px;
  border: 2px solid;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.adm-question-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.adm-question-card.q-correct {
  border-color: #86efac;
  background: #f0fdf4;
}

.adm-question-card.q-wrong {
  border-color: #fca5a5;
  background: #fef2f2;
}

.adm-question-card.q-blank {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.adm-qc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 8px;
}

.adm-qc-num {
  font-weight: 800;
  font-size: 0.95rem;
  color: #1e293b;
}

.adm-qc-status {
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
}

.adm-qc-status.q-correct { color: #15803d; }
.adm-qc-status.q-wrong { color: #b91c1c; }
.adm-qc-status.q-blank { color: #64748b; }

.adm-answer-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.adm-ans-box {
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.adm-ans-box.student-ans.correct {
  background: #dcfce7;
  border: 1px solid #86efac;
}

.adm-ans-box.student-ans.wrong {
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.adm-ans-box.student-ans.blank {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

.adm-ans-box.key-ans {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.adm-ab-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 2px;
}

.adm-ab-val {
  font-size: 1.2rem;
  font-weight: 900;
  color: #0f172a;
}

.adm-qc-stats-bar {
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
}

.adm-diff-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #475569;
}

.adm-diff-level {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.adm-diff-level.diff-easy { background: #dcfce7; color: #166534; }
.adm-diff-level.diff-medium { background: #e0f2fe; color: #075985; }
.adm-diff-level.diff-hard { background: #fef3c7; color: #92400e; }
.adm-diff-level.diff-very-hard { background: #fee2e2; color: #991b1b; }

.adm-options-dist {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.adm-dist-label {
  color: #64748b;
  font-size: 0.72rem;
}

.adm-dist-pills {
  display: flex;
  gap: 4px;
}

.adm-opt-pill {
  font-size: 0.7rem;
  padding: 2px 5px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}

.adm-opt-pill.opt-key {
  background: #dbeafe;
  color: #1e40af;
  font-weight: 800;
  border: 1px solid #93c5fd;
}

.adm-opt-pill.opt-picked-wrong {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 800;
  border: 1px solid #fca5a5;
}

.adm-questions-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #94a3b8;
}

.adm-questions-empty i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}

/* Modal Footer */
.adm-modal-footer {
  padding: 16px 30px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════
   ARCHIVE DIVIDER & BATCH 4 WELCOME SECTION
══════════════════════════════════════════════════════════════════ */
.archive-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 20px;
  background: var(--background, #F8FBFF);
  position: relative;
}

.archive-divider-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 700;
  max-width: 600px;
  width: 100%;
}

.archive-divider-inner::before,
.archive-divider-inner::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
}

.batch4-welcome-banner {
  background: linear-gradient(135deg, #0774BA 0%, #0b2545 100%);
  border-radius: 20px;
  padding: 36px 40px;
  color: #fff;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(7, 116, 186, 0.2);
}

.batch4-welcome-banner::after {
  content: 'Batch 4';
  position: absolute;
  left: 20px;
  bottom: -20px;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  font-family: var(--font-display, sans-serif);
}

.b4-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #35B7F3;
  margin-bottom: 14px;
}

.b4-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 900;
  margin: 0 0 10px 0;
}

.b4-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  max-width: 780px;
  margin: 0 0 20px 0;
}

.b4-highlights {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.b4-h-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.b4-h-item i {
  color: #06D6A0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .admission-check-section { padding: 90px 14px 35px; }
  .adm-search-card { padding: 12px; }
  .adm-search-wrapper { flex-direction: column; }
  .adm-search-btn { width: 100%; justify-content: center; }
  .adm-result-card { padding: 20px 16px; border-radius: 18px; }
  .adm-card-header { flex-direction: column; text-align: center; gap: 14px; }
  .adm-student-spec { justify-content: center; }
  .adm-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .adm-form-row { flex-direction: column; gap: 10px; }
  .adm-action-buttons { flex-direction: column; gap: 10px; }
  .adm-btn-primary, .adm-btn-secondary { width: 100%; }

  /* Modal Mobile Fixes */
  .adm-modal-overlay {
    padding: 8px;
  }
  .adm-modal-box {
    max-height: 96vh;
    border-radius: 16px;
  }
  .adm-modal-header {
    padding: 12px 14px;
    flex-shrink: 0;
  }
  .adm-mh-badge {
    font-size: 0.72rem;
  }
  .adm-mh-title {
    font-size: 1.15rem;
    margin-bottom: 4px;
  }
  .adm-mh-meta {
    gap: 8px;
    font-size: 0.76rem;
  }
  .adm-modal-filter-bar {
    padding: 8px 10px;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
  }
  .adm-mf-tab {
    padding: 6px 12px;
    font-size: 0.76rem;
    border-radius: 20px;
    flex-shrink: 0;
  }
  .adm-modal-note {
    padding: 8px 12px;
    font-size: 0.74rem;
    line-height: 1.45;
    flex-shrink: 0;
    gap: 6px;
  }
  .adm-questions-container {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
  }
  .adm-question-card {
    padding: 12px;
  }
  .adm-modal-footer {
    padding: 10px 12px;
    flex-direction: column-reverse;
    gap: 8px;
    flex-shrink: 0;
  }
  .adm-modal-footer .adm-btn-primary,
  .adm-modal-footer .adm-btn-secondary {
    width: 100%;
    padding: 10px;
    font-size: 0.88rem;
  }
  .batch4-welcome-banner { padding: 24px 20px; }
}
