/* Tailwind CSS خام */
/* Base */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

::before,
::after {
  --tw-content: '';
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-feature-settings: normal;
  font-variation-settings: normal;
}

/* Utilities */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0px; right: 0px; bottom: 0px; left: 0px; }
.z-50 { z-index: 50; }
.z-40 { z-index: 40; }

.m-4 { margin: 1rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

.flex { display: flex; }
.hidden { display: none; }
.inline-flex { display: inline-flex; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }

.rounded-lg { border-radius: 0.5rem; }
.rounded { border-radius: 0.25rem; }

.bg-black { background-color: rgb(0, 0, 0); }
.bg-white { background-color: rgb(255, 255, 255); }
.bg-gray-800 { background-color: rgb(31, 41, 55); }
.bg-red-500 { background-color: rgb(239, 68, 68); }
.bg-green-500 { background-color: rgb(34, 197, 94); }
.bg-blue-500 { background-color: rgb(59, 130, 246); }
.bg-yellow-500 { background-color: rgb(234, 179, 8); }

.bg-opacity-50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-opacity-75 { background-color: rgba(0, 0, 0, 0.75); }

.text-white { color: rgb(255, 255, 255); }
.text-gray-900 { color: rgb(17, 24, 39); }
.text-gray-600 { color: rgb(75, 85, 99); }
.text-red-600 { color: rgb(220, 38, 38); }
.text-green-600 { color: rgb(22, 163, 74); }

.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.border { border-width: 1px; }
.border-gray-300 { border-color: rgb(209, 213, 219); }

.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }

.hover\:bg-red-600:hover { background-color: rgb(220, 38, 38); }
.hover\:bg-green-600:hover { background-color: rgb(22, 163, 74); }
.hover\:bg-blue-600:hover { background-color: rgb(37, 99, 235); }
.hover\:bg-gray-600:hover { background-color: rgb(75, 85, 99); }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); }

.cursor-pointer { cursor: pointer; }

/* Custom Modal Styles */
.modal-enter {
  opacity: 0;
  transform: scale(0.9);
}

.modal-enter-active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.modal-exit {
  opacity: 1;
  transform: scale(1);
}

.modal-exit-active {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 300ms ease-in, transform 300ms ease-in;
}

/* Success Animation */
@keyframes checkmark {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.checkmark {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkmark 0.6s ease-in-out forwards;
}

/* Error Animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s ease-in-out;
}
