.container {
    max-width: 1200px;
    margin: 0 auto;
}
.w-full {
    width: 100%;
}
.flex {
    display: flex;
}
.grid {
    display: grid;
}
.flex-col {
    flex-direction: column;
}
.justify-start {
    justify-content: flex-start;
}
.items-center {
    align-items: center;
}

/* Spacing (کلاس‌های کمکی) */
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.ml-6 { margin-left: 1.5rem; }

/* Text helpers */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-bold { font-weight: 700; }
.font-mono { font-family: monospace; }
.underline { text-decoration: underline; }

/* Color helpers (برای مواردی که استایل مستقیم ندارید) */
.text-error { color: #ef4444; }
.text-secondary { color: #6b7280; }
.text-blue-600 { color: #2563eb; }
.bg-white { background-color: #ffffff; }
.bg-base-100 { background-color: #f9fafb; }
.bg-base-300 { background-color: #e5e7eb; }

/* Button variants (چون button اصلی شما استایل پایه دارد) */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}
.btn-primary {
    background-color: #3b82f6;
    color: white;
}
.btn-primary:hover {
    background-color: #2563eb;
}
.btn-error {
    background-color: #ef4444;
    color: white;
}
.btn-error:hover {
    background-color: #dc2626;
}
.btn-info {
    background-color: #06b6d4;
    color: white;
}
.btn-outline {
    background: transparent;
    border: 1px solid currentColor;
}
.btn-outline:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Form helpers (چون input شما border: none دارد) */
.input-bordered {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}
.input-error {
    border-color: #ef4444;
}
.checkbox, .radio {
    width: 1rem;
    height: 1rem;
}
.checkbox-sm, .radio-sm {
    width: 0.75rem;
    height: 0.75rem;
}

/* Gap helper */
.gap-2 {
    gap: 0.5rem;
}
.space-x-2 > * + * {
    margin-left: 0.5rem;
}
.space-y-3 > * + * {
    margin-top: 0.75rem;
}
.space-y-4 > * + * {
    margin-top: 1rem;
}

/* Card helpers */
.card {
    border-radius: 0.5rem;
    overflow: hidden;
}
.card-body {
    padding: 1.5rem;
}

/* Alert variants (چون alert پایه ندارید) */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
}
.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}
.alert-warning {
    background-color: #fed7aa;
    color: #92400e;
}
.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Other helpers */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.rounded {
    border-radius: 0.25rem;
}
.cursor-pointer {
    cursor: pointer;
}
.list-disc {
    list-style-type: disc;
}
.list-inside {
    list-style-position: inside;
}

/* RTL override for Livewire */
.rtl\:space-x-reverse > * + * {
    margin-right: 0.5rem;
    margin-left: 0;
}

/* Loading overlay (اگر نیاز دارید) */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Report container */
.report {
    background-color: #f8f9fa;
    border-right: 4px solid #3b82f6;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.875rem;
}

/* Print hide */
@media print {
    .no-print {
        display: none !important;
    }
}

/* ===== Pagination Styles ===== */

/* Flex and alignment */
.flex-1 { flex: 1 1 0%; }
.sm\:flex { display: flex; }
.sm\:flex-1 { flex: 1; }
.sm\:items-center { align-items: center; }
.sm\:justify-between { justify-content: space-between; }
.sm\:hidden { display: none; }
.rtl\:flex-row-reverse { flex-direction: row-reverse; }

/* Button and link styles */
.relative { position: relative; }
.inline-flex { display: inline-flex; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.rounded-md { border-radius: 0.375rem; }
.rounded-l-md { border-top-left-radius: 0.375rem; border-bottom-left-radius: 0.375rem; }
.rounded-r-md { border-top-right-radius: 0.375rem; border-bottom-right-radius: 0.375rem; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.-ml-px { margin-left: -1px; }

/* Text sizes */
.leading-5 { line-height: 1.25rem; }

/* Colors (light mode) */
.text-gray-500 { color: #6b7280; }
.text-gray-700 { color: #374151; }
.bg-white { background-color: #ffffff; }
.border-gray-300 { border-color: #d1d5db; }
.hover\:text-gray-500:hover { color: #6b7280; }
.hover\:text-gray-400:hover { color: #9ca3af; }
.active\:bg-gray-100:active { background-color: #f3f4f6; }
.active\:text-gray-700:active { color: #374151; }
.focus\:border-blue-300:focus { border-color: #93c5fd; }
.focus\:ring:focus { box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5); }
.ring-blue-300 { --tw-ring-color: #93c5fd; }
.cursor-default { cursor: default; }

/* SVG icons */
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }

/* Pagination text */
.font-medium { font-weight: 500; }

/* Disabled state (برای دکمه قبلی وقتی غیرفعال است) */
.cursor-default { cursor: default; }
