/* Custom styles beyond Tailwind */

/* Loading dots animation */
@keyframes blink {
  0% { opacity: 0.2; }
  20% { opacity: 1; }
  100% { opacity: 0.2; }
}

.loading-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  animation: blink 1.4s infinite both;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 9999px;
  background-color: #D1D5DB;
  transition: background-color 0.2s;
  position: relative;
}

.toggle-track.active {
  background-color: #000;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  transition: transform 0.2s;
}

.toggle-track.active .toggle-thumb {
  transform: translateX(20px);
}

/* Upload zone */
.upload-zone {
  border: 2px dashed #D1D5DB;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.upload-zone:hover {
  border-color: #9CA3AF;
  background-color: #F9FAFB;
}

.upload-zone.dragover {
  border-color: #3290EE;
  background-color: #EFF6FF;
}

/* Rings spinner */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinner-ring {
  width: 100px;
  height: 100px;
  border: 4px solid #E5E7EB;
  border-top-color: #000;
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
}
