.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* RTL support for Persian */
[dir="rtl"] .rtl-mirror {
  transform: scaleX(-1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.dark ::-webkit-scrollbar-track {
  background: #374151;
}

.dark ::-webkit-scrollbar-thumb {
  background: #6b7280;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

dialog {
  outline: none;
  border: none;
  border-radius: 15px;
  flex-wrap: wrap;
  margin-inline: auto;
  align-self: center;
  animation: slideIn 0.5s ease forwards;
}

dialog::backdrop {
  background-color: #1b1b1bb2;
}

.toast {
  padding: 0.75rem 1.25rem;
  margin-top: 0.5rem;
  border-radius: 8px;
  min-width: 100px;
  width: fit-content;
  max-width: 300px;
  height: fit-content;
  flex-wrap: wrap;
  animation: slideIn 0.3s ease forwards;
}

.w {
  background-color: rgb(255, 255, 31);
}

.e {
  background-color: rgb(255, 63, 63);
}

.i {
  background-color: rgb(25, 126, 159);
}

.s {
  background-color: rgb(19, 251, 19);
}

.modal-closing {
  animation: slideOut 0.5s forwards;
}

#toast-container {
  display: flex;
  flex-direction: column-reverse;
  position: fixed;
  z-index: 50;
  top: 5px;
  right: 5px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-100px);
  }
}
