/* ==========================================================================
   PREMIUM V267: MOCK TEST WIZARD & QUESTION BANK REDESIGN
   Ultra-vibrant, high-contrast, professional styling for Mock Test Creator
   ========================================================================== */

/* Outer Wizard Card for Question Bank Explorer */
.ds-wizard-qbank-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #3b82f6;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 25px;
  box-shadow: 0 12px 30px -6px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.ds-wizard-qbank-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 50%, #10b981 100%);
}

/* Card Header */
.ds-qbank-header {
  margin-bottom: 20px;
}

.ds-qbank-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.ds-step-badge {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  text-transform: uppercase;
}

.ds-qbank-title {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-req-tag {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.ds-qbank-desc {
  margin: 0;
  font-size: 13.5px;
  color: #334155 !important;
  line-height: 1.5;
}

/* Course Linkage Info Pill */
.ds-course-link-info {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
}

/* 3 Dropdown Filter Columns */
.ds-wizard-filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .ds-wizard-filters-grid {
    grid-template-columns: 1fr;
  }
}

.ds-filter-col {
  display: flex;
  flex-direction: column;
}

.ds-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.ds-label-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
}

.pill-course {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.pill-subj {
  background: #faf5ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.pill-folder {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* Filter Select Inputs */
.ds-wizard-select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  color: #0f172a !important;
  background-color: #ffffff;
  transition: all 0.2s ease;
  cursor: pointer;
  appearance: auto;
}

.ds-select-course {
  border: 2px solid #3b82f6 !important;
  background: #f8fbff !important;
}

.ds-select-course:focus {
  border-color: #1d4ed8 !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
  outline: none;
}

.ds-select-subj {
  border: 2px solid #8b5cf6 !important;
  background: #faf5ff !important;
}

.ds-select-subj:focus {
  border-color: #6d28d9 !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
  outline: none;
}

.ds-select-folder {
  border: 2px solid #10b981 !important;
  background: #f0fdf4 !important;
}

.ds-select-folder:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
  outline: none;
}

/* Question Bank Selection Box Container */
#wizQuestionsArea {
  position: relative;
  background: #ffffff !important;
  border: 2px solid #64748b !important;
  border-radius: 14px !important;
  min-height: 250px !important;
  max-height: 380px !important;
  overflow-y: auto !important;
  padding: 18px !important;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

/* Custom Scrollbar for Questions Area */
#wizQuestionsArea::-webkit-scrollbar {
  width: 8px;
}
#wizQuestionsArea::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
#wizQuestionsArea::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
#wizQuestionsArea::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Empty State / Selector Guidance */
.ds-wizard-empty-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 210px;
  padding: 20px 10px;
}

.ds-flow-tracker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ds-tracker-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.ds-tracker-step.step-1 {
  background: #eff6ff;
  border: 1.5px solid #3b82f6;
  color: #1d4ed8;
}

.ds-tracker-step.step-2 {
  background: #faf5ff;
  border: 1.5px solid #8b5cf6;
  color: #6b21a8;
}

.ds-tracker-step.step-3 {
  background: #f0fdf4;
  border: 1.5px solid #10b981;
  color: #15803d;
}

.ds-tracker-step.is-done {
  background: #dcfce7;
  border-color: #22c55e;
  color: #166534;
}

.ds-tracker-arrow {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 800;
}

.ds-empty-heading {
  font-size: 16.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 8px 0 !important;
}

.ds-empty-subtext {
  font-size: 13.5px !important;
  color: #475569 !important;
  max-width: 520px;
  line-height: 1.5 !important;
  margin: 0 0 16px 0 !important;
}

.ds-empty-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.ds-feat-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
}

/* Alert States (Guidance / Zero Questions) */
.ds-wizard-guide-box {
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px auto;
  max-width: 560px;
  text-align: left;
}

.ds-guide-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.ds-guide-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 2px;
}

.ds-guide-desc {
  font-size: 13px;
  color: #2563eb;
  line-height: 1.4;
}

.ds-wizard-warning-box {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 25px auto;
  max-width: 560px;
  text-align: left;
}

.ds-warn-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.ds-warn-title {
  font-size: 15px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 4px;
}

.ds-warn-desc {
  font-size: 13px;
  color: #b45309;
  line-height: 1.45;
}

/* Question Selection Toolbar */
.ds-q-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 11px 16px;
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  flex-wrap: wrap;
  gap: 10px;
}

.ds-select-all-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff !important;
  cursor: pointer;
  margin: 0;
}

.ds-select-all-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #2563eb;
}

.ds-total-avail-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffd700;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Individual Question Card */
.ds-q-card {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  background: #ffffff !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  margin-bottom: 10px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03) !important;
}

.ds-q-card:hover {
  border-color: #3b82f6 !important;
  background: #f8fbff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.12) !important;
}

.ds-q-card.is-selected {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%) !important;
  border-color: #2563eb !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.16) !important;
}

.ds-q-left {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
  flex-shrink: 0;
}

.ds-q-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #2563eb;
  border-radius: 4px;
}

.ds-q-index-pill {
  background: #0f172a;
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.ds-q-card.is-selected .ds-q-index-pill {
  background: #2563eb;
  color: #ffffff;
}

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

.ds-q-text {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.55 !important;
  margin-bottom: 8px !important;
  word-break: break-word;
}

.ds-q-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ds-type-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.ds-type-mcq {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.ds-type-subj {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #d8b4fe;
}

.ds-marks-badge {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
}

.ds-options-badge {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

/* Wizard Footer: High Contrast Counter & Buttons */
.ds-wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #e2e8f0;
  padding-top: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 16px;
}

.ds-footer-counter-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1.5px solid #334155;
  border-radius: 12px;
  padding: 8px 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.ds-counter-icon {
  font-size: 22px;
}

.ds-counter-details {
  display: flex;
  flex-direction: column;
}

.ds-counter-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ds-counter-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ds-counter-num {
  font-size: 24px;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1;
}

.ds-counter-suffix {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}

.ds-wizard-btn-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ds-wizard-btn-cancel {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 11px 24px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.ds-wizard-btn-cancel:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.ds-wizard-btn-submit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  padding: 11px 32px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ds-wizard-btn-submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
}

.ds-wizard-btn-submit:active {
  transform: translateY(0) !important;
}
