/* Custom styles for AssignAI JS */

/* Glassmorphism background - subtle gradient with floating orbs */
body {
  background:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body.dark {
  background:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  background-attachment: fixed;
}

/* Enhanced button interactions */
button, a[class*="bg-indigo"], a[class*="bg-gradient"] {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active, a[class*="bg-indigo"]:active, a[class*="bg-gradient"]:active {
  transform: scale(0.98);
}

/* Floating action button effect */
.floating-action {
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-action:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

/* Enhanced card shadows */
.card-enhanced {
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-enhanced:hover {
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

/* Smooth card hover effects */
[class*="hover:shadow"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced focus states */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  border-color: rgb(99, 102, 241);
  transition: all 0.2s ease;
}

/* Smooth page transitions */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

main {
  animation: fadeIn 0.4s ease-out;
}

/* Gradient badges */
.badge-gradient {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Pulse animation for important elements */
@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.pulse-subtle {
  animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Modal backdrop blur */
.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.5);
}

/* Modal scale animation */
@keyframes modalScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content {
  animation: modalScale 0.2s ease-out;
}

/* Skeleton loader */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(226, 232, 240, 0.4) 0%,
    rgba(226, 232, 240, 0.8) 50%,
    rgba(226, 232, 240, 0.4) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

.dark .skeleton {
  background: linear-gradient(
    90deg,
    rgba(51, 65, 85, 0.4) 0%,
    rgba(51, 65, 85, 0.8) 50%,
    rgba(51, 65, 85, 0.4) 100%
  );
  background-size: 1000px 100%;
}

/* Empty state animations */
@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.empty-state-icon {
  animation: float-gentle 3s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Print */
@media print {
  nav, footer, .no-print { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* Whitespace preserve */
.whitespace-pre-wrap { white-space: pre-wrap; word-wrap: break-word; }

