/* FormBuilder.module.css - Enhanced UI Styles for Admission Form Builder */

/* ─────────────────────────────────────────────────────────
   SCROLLBAR STYLING
   ───────────────────────────────────────────────────────── */

._scrollableFields_1rx0e_7::-webkit-scrollbar {
  width: 8px;
}

._scrollableFields_1rx0e_7::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #f0f9ff 0%, #ede9fe 100%);
  border-radius: 10px;
  margin: 5px;
}

._scrollableFields_1rx0e_7::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6 0%, #6366f1 100%);
  border-radius: 5px;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

._scrollableFields_1rx0e_7::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2563eb 0%, #4f46e5 100%);
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
}

/* Firefox scrollbar */
._scrollableFields_1rx0e_7 {
  scrollbar-color: #3b82f6 #f0f9ff;
  scrollbar-width: thin;
}

/* ─────────────────────────────────────────────────────────
   FORM BUILDER LAYOUT
   ───────────────────────────────────────────────────────── */

._formBuilderContainer_1rx0e_38 {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f3f4f6 100%);
  min-height: 100vh;
}

@media (max-width: 1400px) {
  ._formBuilderContainer_1rx0e_38 {
    gap: 20px;
    grid-template-columns: 1fr 350px;
  }
}

@media (max-width: 1024px) {
  ._formBuilderContainer_1rx0e_38 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ─────────────────────────────────────────────────────────
   FORM SECTIONS
   ───────────────────────────────────────────────────────── */

._sectionCard_1rx0e_65 {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid #e0e7ff;
  position: relative;
}

._sectionCard_1rx0e_65::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

._sectionCard_1rx0e_65:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12), 0 4px 12px rgba(99, 102, 241, 0.08);
  border-color: #dbeafe;
}

._sectionCard_1rx0e_65:hover::before {
  transform: scaleY(1);
}

._sectionHeader_1rx0e_97 {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  padding: 20px;
  border-bottom: 1px solid #e0e7ff;
}

._sectionTitle_1rx0e_103 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

/* ─────────────────────────────────────────────────────────
   FIELD ITEMS
   ───────────────────────────────────────────────────────── */

._fieldGrid_1rx0e_114 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 20px;
}

._fieldItem_1rx0e_121 {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  transition: all 0.3s ease;
  cursor: grab;
  position: relative;
  overflow: hidden;
}

._fieldItem_1rx0e_121::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(59, 130, 246, 0.03) 100%);
  pointer-events: none;
}

._fieldItem_1rx0e_121:active {
  cursor: grabbing;
  transform: scale(1.03);
}

._fieldItem_1rx0e_121:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15), inset 0 0 12px rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
}

._fieldItem_1rx0e_121._mandatory_1rx0e_154 {
  border-color: #fcd34d;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

._fieldItem_1rx0e_121._mandatory_1rx0e_154:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* ─────────────────────────────────────────────────────────
   TABS & BUTTONS
   ───────────────────────────────────────────────────────── */

._tabTrigger_1rx0e_168 {
  transition: all 0.25s ease;
  position: relative;
}

._tabTrigger_1rx0e_168::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

._tabTrigger_1rx0e_168:hover::after {
  transform: scaleX(1);
}

._primaryButton_1rx0e_190 {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  transition: all 0.2s ease;
  font-weight: 600;
}

._primaryButton_1rx0e_190:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

._secondaryButton_1rx0e_204 {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  transition: all 0.2s ease;
  font-weight: 600;
}

._secondaryButton_1rx0e_204:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* ─────────────────────────────────────────────────────────
   CARDS & BADGES
   ───────────────────────────────────────────────────────── */

._statsCard_1rx0e_222 {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  border: none;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

._statsCard_1rx0e_222::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: _pulse_1rx0e_1 4s ease-in-out infinite;
}

@keyframes _pulse_1rx0e_1 {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

._statValue_1rx0e_250 {
  font-size: 28px;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

._badge_1rx0e_257 {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

._badge_1rx0e_257._mandatory_1rx0e_154 {
  background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
  color: #92400e;
  border: 1px solid #fcd34d;
}

._badge_1rx0e_257._system_1rx0e_274 {
  background: linear-gradient(135deg, #ddd6fe 0%, #e9d5ff 100%);
  color: #5b21b6;
  border: 1px solid #d8b4fe;
}

._badge_1rx0e_257._required_1rx0e_280 {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #7f1d1d;
  border: 1px solid #fca5a5;
}

/* ─────────────────────────────────────────────────────────
   DRAG & DROP STATES
   ───────────────────────────────────────────────────────── */

._dragOver_1rx0e_290 {
  background: linear-gradient(135deg, #e0f2fe 0%, #cffafe 100%);
  border: 2px dashed #0ea5e9;
  box-shadow: inset 0 0 16px rgba(6, 182, 212, 0.15);
  transition: all 0.2s ease;
}

._draggingItem_1rx0e_297 {
  opacity: 0.7;
  transform: scale(0.98) rotate(-1deg);
}

/* ─────────────────────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────────────────────── */

@keyframes _slideIn_1rx0e_1 {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes _fadeIn_1rx0e_1 {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes _shimmer_1rx0e_1 {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

._fieldWrapper_1rx0e_335 {
  animation: _slideIn_1rx0e_1 0.3s ease forwards;
}

._loadingShimmer_1rx0e_339 {
  animation: _shimmer_1rx0e_1 2s infinite;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 1000px 100%;
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE DESIGN
   ───────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  ._fieldGrid_1rx0e_114 {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  ._statsCard_1rx0e_222 {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  ._formBuilderContainer_1rx0e_38 {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }

  ._fieldGrid_1rx0e_114 {
    grid-template-columns: 1fr;
  }

  ._sectionHeader_1rx0e_97 {
    padding: 16px;
  }

  ._sectionTitle_1rx0e_103 {
    font-size: 16px;
  }

  ._statValue_1rx0e_250 {
    font-size: 24px;
  }

  ._fieldItem_1rx0e_121 {
    padding: 12px;
  }
}

/* ─────────────────────────────────────────────────────────
   DARK MODE SUPPORT
   ───────────────────────────────────────────────────────── */

@media (prefers-color-scheme: dark) {
  ._formBuilderContainer_1rx0e_38 {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  }

  ._sectionCard_1rx0e_65,
  ._fieldItem_1rx0e_121 {
    background: #1e293b;
    border-color: #475569;
  }

  ._sectionHeader_1rx0e_97 {
    background: linear-gradient(135deg, #1e293b 0%, #0f4c75 100%);
  }

  ._sectionTitle_1rx0e_103 {
    color: #f1f5f9;
  }

  ._fieldItem_1rx0e_121:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  }
}

