@tailwind base;
@tailwind components;
@tailwind utilities;

/* 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; }
}

