/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700;900&display=swap');

body {
  font-family: 'Vazirmatn', sans-serif;
}

/* Custom font classes to match the original TSX */
.font-yekan-bold { font-family: 'Vazirmatn', sans-serif; font-weight: 900; }
.font-vazir-bold { font-family: 'Vazirmatn', sans-serif; font-weight: 700; }
.font-vazir-medium { font-family: 'Vazirmatn', sans-serif; font-weight: 500; }
.font-vazir-regular { font-family: 'Vazirmatn', sans-serif; font-weight: 400; }

/* Custom animations to replicate framer-motion effects */
@keyframes pulse {
  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}
.animate-bounce {
    animation: bounce 1s infinite;
}


@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Simple transition for tab content */
.tab-content {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Toast styles */
.toast {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  color: white;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success { background-color: #22c55e; }
.toast-error { background-color: #ef4444; }
.toast-info { background-color: #3b82f6; }

.toast .description {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Progress bar style */
.progress-bar-container {
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 0.5rem;
    overflow: hidden;
}
.progress-bar-fill {
    background-color: #06b55d;
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Scrollbar styles to match shadcn/ui */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}
