/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Global Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Slower pulse animation */
@keyframes slow-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

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

/* Green glow animation for button border */
@keyframes green-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.8), 0 0 20px rgba(16, 185, 129, 0.6), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }
}

.animate-green-glow {
  animation: green-glow 2s ease-in-out infinite;
}

/* Static green glow for hover */
.hover-green-glow:hover {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.8), 0 0 20px rgba(16, 185, 129, 0.6), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Audio clip border colors */
.border-clip-0 {
  border-left-color: #3b82f6; /* Blue 500 */
}

.border-clip-1 {
  border-left-color: #10b981; /* Green 500 */
}

.border-clip-2 {
  border-left-color: #f59e0b; /* Amber 500 */
}

.border-clip-3 {
  border-left-color: #8b5cf6; /* Purple 500 */
}

.border-clip-4 {
  border-left-color: #ef4444; /* Red 500 */
}

/* Fade in up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-up-delay-200 {
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.animate-fade-in-up-delay-400 {
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

/* Blue glow animation for updated items */
@keyframes blue-glow-flash {
  0% {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.8), 0 0 20px rgba(59, 130, 246, 0.6);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0), 0 0 0 rgba(59, 130, 246, 0);
  }
}

.animate-blue-glow-flash {
  animation: blue-glow-flash 2s ease-out forwards;
}

/* Sidebar collapse */
#ai-list {
  transition: width 0.2s ease, min-width 0.2s ease;
}

#ai-list .app-sidebar-toggle-bar {
  transition: padding 0.2s ease;
}

@media (min-width: 1024px) {
  #ai-list.app-sidebar--collapsed {
    width: 3.5rem !important;
    min-width: 3.5rem;
  }

  #ai-list.app-sidebar--collapsed .app-sidebar-toggle-bar {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  #ai-list.app-sidebar--collapsed .app-sidebar-content {
    display: none;
  }

  #ai-list.app-sidebar--collapsed .app-sidebar-brand {
    display: none;
  }
}
