body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.auth-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.auth-card p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.landing-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: white;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Palette sidebar */
#questionPalette .palette-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  cursor: grab;
  border-radius: 6px;
  font-size: 0.813rem;
  color: #374151;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}
#questionPalette .palette-item:hover {
  background: #f3f4f6;
  color: #7c3aed;
}
#questionPalette .palette-item svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: #9ca3af;
}
#questionPalette .palette-item:hover svg {
  color: #7c3aed;
}

.dragging {
  opacity: 0.4;
}

.drag-over {
  border-color: #7c3aed !important;
  background: #f5f3ff !important;
}

/* Question cards in builder */
.question-card {
  transition: border-color 0.15s, box-shadow 0.15s;
  touch-action: none;
}
.question-card:hover {
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.question-card:active {
  cursor: grabbing;
}

/* Sortable drag handle */
.drag-handle {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.question-card:hover .drag-handle {
  opacity: 1;
}

.cursor-grabbing {
  cursor: grabbing;
}

/* Interact.js sortable styling */
.question-card.is-dragging {
  opacity: 0.6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: scale(1.02);
}

/* Builder layout */
#formCanvas {
  background: #f9fafb;
}

/* Section header */
.section-header input::placeholder {
  color: #9ca3af;
}

/* View form styling */
.question-view {
  transition: opacity 0.2s;
}

/* Tab transitions */
.tab-btn {
  transition: color 0.15s, border-color 0.15s;
}

/* Scrollbar styling */
#settingsContent::-webkit-scrollbar,
#formCanvas::-webkit-scrollbar {
  width: 6px;
}
#settingsContent::-webkit-scrollbar-thumb,
#formCanvas::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
#settingsContent::-webkit-scrollbar-track,
#formCanvas::-webkit-scrollbar-track {
  background: transparent;
}
