/* ===== RevuQ — Custom Styles ===== */

/* Smooth transitions */
* {
  transition-property: color, background-color, border-color, box-shadow, opacity, transform;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

/* Remove default link underline */
a {
  text-decoration: none;
}

/* Smooth page transitions */
main {
  animation: fadeIn 0.3s ease-out;
}

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

/* Input focus enhancement */
input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Button press effect */
button:active:not(:disabled) {
  transform: scale(0.98);
}

/* Template card hover */
.template-card:hover .w-6 {
  transform: scale(1.1);
}

/* Upload drop zone active */
#drop-zone.dragover {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.05);
}

/* Admin toggle switch */
.admin-toggle {
  cursor: pointer;
}
.admin-toggle span {
  transition: left 0.2s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Custom font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Admin table row hover */
table tbody tr {
  transition: background-color 0.1s ease;
}

/* Responsive utilities */
@media (max-width: 640px) {
  .template-card {
    padding: 0.5rem;
  }
}
