/*
 * This is a manifest file that'll be compiled into application.css
 * Contains only shared/common styles used across the entire application
 * Portal-specific styles moved to portal.css
 * Public page styles moved to public.css
 */

/* Progress bar styles */
.progress-bar {
  z-index: 9999;
  transition: width 300ms ease-out, opacity 150ms ease-out;
}

.progress-bar.hidden {
  opacity: 0;
}

/* Loading states */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3B82F6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animation utilities */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

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

/* Fix for Font Awesome spinner drift only */
.fa-spin {
  display: inline-block;
}

/* Custom spinner that doesn't drift */
.spinner-no-drift {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(156, 163, 175, 0.5);
  border-radius: 50%;
  border-top-color: #3b82f6;
  animation: spin-no-drift 1s linear infinite;
}

.spinner-no-drift-sm {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(156, 163, 175, 0.5);
  border-radius: 50%;
  border-top-color: #3b82f6;
  animation: spin-no-drift 1s linear infinite;
}

.spinner-no-drift-lg {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border: 4px solid rgba(156, 163, 175, 0.5);
  border-radius: 50%;
  border-top-color: #3b82f6;
  animation: spin-no-drift 1s linear infinite;
}

@keyframes spin-no-drift {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Utility classes that complement Tailwind */
.truncate-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.truncate-3-lines {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
