@import "tailwindcss";
@config "../../tailwind.config.js";

/* Custom scrollbar style */
.scrollbar-custom {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #0a0aa8 transparent; /* Firefox */
  }
  
  /* Chrome, Edge, Safari */
  .scrollbar-custom::-webkit-scrollbar {
    height: 2px; /* for horizontal scroll */
    width: 2px; /* for vertical scroll (optional) */
  }

.scrollbar-custom::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-custom::-webkit-scrollbar-thumb {
  background-color: #0a0aa8;
  border-radius: 100%;
}

html {
  scroll-behavior: smooth;
}

/* #workTime {
  position: absolute;
  white-space: nowrap;
  right: -100%;
  animation: scroll-left 15s linear infinite;
  max-width: fit-content;
}

@keyframes scroll-left {
  0% {
    right: 100%;
  }
  100% {
    right: -100%;
  }
} */
/* تمام صفحه */
#preloader {
  position: fixed;
  inset: 0;
  background: #ffffff; /* اینجا رنگ برندت را بگذار */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

/* انیمیشن لوگو */
.preloader-logo {
  width: 80px;
  height: 80px;
  animation: pulse 1.3s ease-in-out infinite;
}

/* اگر لوگو نباشد یک دایره می‌سازد */
.loader::before {
  content: '';
  width: 50px;
  height: 50px;
  border: 4px solid #0a0aa8; /* رنگ برند */
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 1s linear infinite;
}

.loader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  direction: ltr;
  gap: 25px;
}

/* انیمیشن‌ها */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: .8; }
  50%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: .8; }
}

/* Supplemental utilities for the dynamic category manager.
   These mirror the Tailwind utilities used by the new runtime templates. */
.bg-amber-500 { background-color: #f59e0b; }
.hover\:bg-amber-600:hover { background-color: #d97706; }
.text-amber-500 { color: #f59e0b; }
.border-slate-300 { border-color: #cbd5e1; }
.bg-emerald-100 { background-color: #d1fae5; }
.text-emerald-700 { color: #047857; }
.gap-x-4 { column-gap: 1rem; }
.max-w-5xl { max-width: 64rem; }
.min-w-0 { min-width: 0; }
.ml-3 { margin-left: 0.75rem; }
.p-5 { padding: 1.25rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.shrink-0 { flex-shrink: 0; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-\[11px\] { font-size: 11px; }

@media (min-width: 640px) {
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
}

@media (min-width: 1024px) {
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
}

/* Melifluo Circle - loyalty rank badge + stepper (fantasy/game vibe) */
@keyframes melifluo-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(255, 253, 116, 0.3), 0 0 12px 2px rgba(255, 253, 116, 0.55);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 253, 116, 0.14), 0 0 22px 6px rgba(255, 253, 116, 0.9);
  }
}

@keyframes melifluo-shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

@keyframes melifluo-sparkle-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

.melifluo-profile-rank {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.01em;
}

.melifluo-stepper-dot--current {
  animation: melifluo-glow-pulse 1.8s ease-in-out infinite;
  background: linear-gradient(135deg, #fffd74, #ffcf5c) !important;
}

.melifluo-stepper-dot--done {
  background: linear-gradient(135deg, #ffe98a, #ffcf5c) !important;
}

.melifluo-stepper-fill {
  background: linear-gradient(
    90deg,
    #ffcf5c 0%,
    #fffd74 35%,
    #fffbe0 50%,
    #fffd74 65%,
    #ffcf5c 100%
  );
  background-size: 220% 100%;
  animation: melifluo-shimmer 2.4s linear infinite;
}

.melifluo-stepper-sparkle {
  display: inline-block;
  animation: melifluo-sparkle-spin 2.6s ease-in-out infinite;
}

