/* Custom SMM Panel UI Enhancements & Animations */
@layer utilities {
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  ::-webkit-scrollbar-track {
    background: #0f172a;
  }
  ::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 9999px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #475569;
  }
}

/* Mouse interactive spotlight background */
#mouse-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    650px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(59, 130, 246, 0.08),
    transparent 80%
  );
  transition: background 0.15s ease-out;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Smooth Tab Fade In Animation */
.view-container {
  animation: fadeInScale 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Tab button hover & active styling */
.nav-tab-btn {
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tab-btn:hover {
  transform: translateX(3px);
}

.nav-tab-btn.active-tab {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(30, 58, 138, 0.3));
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 20px -5px rgba(59, 130, 246, 0.25);
  color: #ffffff !important;
}

.nav-tab-btn.active-tab-admin {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(120, 53, 15, 0.3));
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 20px -5px rgba(245, 158, 11, 0.25);
  color: #fef3c7 !important;
}

/* Order filter tabs smooth pill */
.status-tab {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-tab:hover {
  transform: translateY(-1px);
}

/* Badges */
.status-badge {
  @apply px-2.5 py-1 rounded-full text-[11px] font-semibold inline-flex items-center gap-1.5 shadow-sm;
}

.status-pending {
  @apply bg-amber-500/10 text-amber-400 border border-amber-500/20;
}

.status-in-progress {
  @apply bg-blue-500/10 text-blue-400 border border-blue-500/20;
}

.status-completed {
  @apply bg-emerald-500/10 text-emerald-400 border border-emerald-500/20;
}

.status-refunded {
  @apply bg-rose-500/10 text-rose-400 border border-rose-500/20;
}

.status-canceled {
  @apply bg-slate-500/10 text-slate-400 border border-slate-500/20;
}
