/* Custom styles for Flash Learn Bot app */

/* Logo flash animation */
.logo-flash {
  animation: flash 8s infinite;
}

@keyframes flash {
  0%, 95%, 100% {
    filter: brightness(1);
  }
  97.5% {
    filter: brightness(1.5);
  }
}

/* Card flip animation */
.flashcard {
  perspective: 1000px;
  height: 10rem;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flashcard-front,
.flashcard-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.flashcard-back {
  transform: rotateY(180deg);
}

.flashcard.flipped {
  transform: rotateY(180deg);
}

/* Dark mode transition */
body {
  transition: background-color 0.3s, color 0.3s;
}

/* Drag and drop highlight effect */
.border-dashed:hover {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    border-color: rgba(59, 130, 246, 0.5);
  }
  50% {
    border-color: rgba(59, 130, 246, 1);
  }
}

/* Button hover effects */
button {
  transition: transform 0.1s, background-color 0.3s;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(0);
}