/* Loading and skeleton styles */
.global-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  z-index: 9999;
  transition: opacity 0.3s ease;
}
.global-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.global-loader .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top-color: #3a3a3a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skeleton placeholder */
.skeleton {
  position: relative;
  background-color: #f0f0f0;
  overflow: hidden;
  color: transparent;
}
.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(90deg, rgba(240,240,240,0) 0%, rgba(224,224,224,0.8) 50%, rgba(240,240,240,0) 100%);
  animation: loading-skeleton 1.2s infinite;
}
@keyframes loading-skeleton {
  0% { left: -150%; }
  100% { left: 100%; }
}
