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

@layer utilities {
  .animate-slide-in-right {
    animation: slide-in-right 0.3s ease-out;
  }

  .card-selected {
    animation: card-glow 1.2s ease-out forwards;
  }
}

@keyframes card-glow {
  0%   { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.55), 0 4px 12px rgba(220, 38, 38, 0.2); }
  60%  { box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25), 0 2px 8px rgba(220, 38, 38, 0.1); }
  100% { box-shadow: 0 0 0 0px rgba(220, 38, 38, 0),    0 0px 0px rgba(220, 38, 38, 0); }
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/
