/* Modern styles untuk Research Intelligence Platform */

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

/* Alpine.js x-cloak */
[x-cloak] {
  display: none !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Card hover lift */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* Question card states */
.question-card {
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

.question-card:hover {
  border-left-color: #14b8a6;
}

.question-card.error {
  border-color: #fecaca !important;
  border-left-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.question-card.error label {
  color: #991b1b;
}

/* Form focus rings */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

/* Modern radio/checkbox */
input[type="radio"], input[type="checkbox"] {
  accent-color: #0d9488;
}

/* Checked state for survey option labels */
.question-card label:has(input:checked) {
  border-color: #14b8a6 !important;
  background-color: #f0fdfa !important;
}

/* Fallback for browsers without :has() support */
.question-card label input:checked ~ * {
  color: #0f766e;
}

/* Button press effect */
button:active:not(:disabled) {
  transform: scale(0.98);
}

/* Slide-in animation for messages */
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in {
  animation: slide-in 0.3s ease-out;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass effect */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Progress bar */
.progress-bar {
  background: linear-gradient(90deg, #14b8a6 0%, #0d9488 100%);
  transition: width 0.5s ease;
}

/* Status badges */
.badge {
  @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}
