@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  *, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: currentColor;
  }
  
  html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }
}

@layer utilities {
  .bg-primary { background-color: #4F46E5; }
  .bg-primary-dark { background-color: #3730A3; }
  .text-primary { color: #4F46E5; }
  .bg-secondary { background-color: #10B981; }
  .text-secondary { color: #10B981; }
  
  .dark .bg-gray-900 { background-color: #111827; }
  .dark .bg-gray-800 { background-color: #1F2937; }
  .dark .bg-gray-700 { background-color: #374151; }
  .dark .text-gray-400 { color: #9CA3AF; }
  .dark .text-gray-300 { color: #D1D5DB; }
  .dark .text-white { color: #FFFFFF; }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

#app {
  min-height: 100vh;
}

.dark {
  background-color: #111827;
  color: #F3F4F6;
}

.progress-bar {
  transition: width 0.3s ease;
}

.option-btn {
  transition: all 0.2s ease;
}

.option-btn:hover {
  transform: translateY(-2px);
}

.option-btn:active {
  transform: translateY(0);
}

.correct {
  background-color: #10B981 !important;
  color: white;
}

.incorrect {
  background-color: #EF4444 !important;
  color: white;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse-slow {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
