/* Skeleton Loading Animation */
.skeleton-loader {
  position: relative;
  background-color: #2a2d31;
  overflow: hidden;
}

.skeleton-loader::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.08), 
    transparent);
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Skeleton shapes */
.skeleton-text {
  height: 1.2rem;
  margin-bottom: 0.7rem;
  border-radius: 4px;
}

.skeleton-text.sm {
  width: 30%;
}

.skeleton-text.md {
  width: 60%;
}

.skeleton-text.lg {
  width: 80%;
}

.skeleton-text.xl {
  width: 100%;
}

.skeleton-input {
  height: 2.5rem;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.skeleton-button {
  height: 2.2rem;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.skeleton-card {
  height: 150px;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.skeleton-image {
  height: 120px;
  width: 100%;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.skeleton-file-item {
  display: flex;
  height: 3rem;
  width: 100%;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.skeleton-icon {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
}

/* Fade-in animation for content */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Skeleton templates */
.skeleton-form-container {
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.skeleton-upload-area {
  height: 200px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.skeleton-preview-container {
  padding: 20px;
  border-radius: 8px;
}

/* Pulse animation variant */
.skeleton-pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.6;
  }
}
