/**
 * @file animations.css
 * @description CSS animations for the S3 Storage Browser
 */

/* Spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fade in animation for new elements */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Subtle bounce for notifications */
@keyframes subtleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Pulse animation for loading states */
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Infinite scroll loader styles */
.infinite-scroll-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  margin: 15px auto;
  width: 90%;
  border-radius: 8px;
  background-color: rgba(240, 240, 240, 0.7);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.3s ease-in-out;
}

/* Loading indicator */
.loading-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
  z-index: 1000;
}

.loading-indicator p {
  margin: 0 0 0 12px;
  font-weight: 500;
  color: #444;
}

/* Spinner styles */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0, 120, 215, 0.2);
  border-top: 3px solid #0078d7;
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.small-spinner {
  width: 22px;
  height: 22px;
  margin-right: 12px;
  border-width: 2px;
  animation: spin 0.7s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

/* Notification styles */
.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 5px;
  z-index: 1001;
  animation: fadeIn 0.3s ease;
}

/* Empty folder message */
.empty-folder-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px auto;
  text-align: center;
  color: #666;
  animation: fadeIn 0.5s ease-out;
}

.empty-folder-message .icon {
  font-size: 48px;
  margin-bottom: 15px;
  color: #aaa;
}

.empty-folder-message .message {
  font-size: 16px;
  font-weight: 500;
}

.empty-folder-message .sub-message {
  font-size: 14px;
  margin-top: 5px;
  color: #999;
}
