/* Deck-specific styles and animations */

/* Slide animations */
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-border {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
  }
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

/* Applied animation classes */
.slide-new {
  animation: slide-in 0.5s ease-out;
}

.slide-updated {
  animation: pulse-border 1s ease-out;
}

.assistant-message {
  animation: messageSlideIn 0.4s ease-out;
}

.user-message {
  animation: messageSlideIn 0.3s ease-out;
}

/* Smooth transitions */
.deck-slide {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.deck-slide:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Slide content styling */
.slide-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.slide-content table {
  width: 100%;
  border-collapse: collapse;
}

.slide-content table th,
.slide-content table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.slide-content table th {
  background-color: #f9fafb;
  font-weight: 600;
}

.slide-content pre {
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}

.slide-content code {
  background-color: #f3f4f6;
  color: #1f2937;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.slide-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

/* Edit controls transitions */
.edit-controls {
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.edit-controls-enter {
  opacity: 0;
  transform: translateY(-10px);
}

.edit-controls-active {
  opacity: 1;
  transform: translateY(0);
}

/* Focus states */
.slide-focused {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
  border-color: rgb(59, 130, 246);
}

/* Chat input focus animation */
.chat-input-focused {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  border-color: rgb(59, 130, 246);
}

/* Button press effect */
.button-press {
  transform: scale(0.98);
  transition: transform 0.1s ease-out;
}

/* Hover lift effect */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.2);
}

/* Slide navigation active state */
.slide-nav-active {
  background-color: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transform: translateX(4px);
}