/* ui-offline.css — سبک، آفلاین، RTL-ready */

/* پایه */
*{box-sizing:border-box}
html{line-height:1.5}
body{margin:0;background:#f7f7f8;color:#1f2937;font-family:'Vazirmatn',sans-serif}

/* Utilities شبیه Tailwind که استفاده کرده‌ای */
.flex{display:flex}
.items-center{align-items:center}
.justify-end{justify-content:flex-end}
.gap-1{gap:.25rem}
.gap-2{gap:.5rem}
.gap-3{gap:.75rem}

.w-5{width:1.25rem}.h-5{height:1.25rem}
.w-6{width:1.5rem}.h-6{height:1.5rem}
.w-7{width:1.75rem}.h-7{height:1.75rem}
.w-9{width:2.25rem}.h-9{height:2.25rem}

.rounded{border-radius:.5rem}
.rounded-xl{border-radius:.75rem}
.rounded-full{border-radius:9999px}

.text-right{text-align:right}
.text-center{text-align:center}
.text-blue-600{color:#2563eb}
.text-slate-600{color:#475569}
.text-slate-700{color:#334155}
.no-print{} /* placeholder */

.hover\:underline:hover{text-decoration:underline}
.hover\:opacity-80:hover{opacity:.8}
.transition{transition:all .2s ease}

/* رنگ‌های پس‌زمینهٔ سبک (برای دکمه‌های آیکونی) */
.bg-blue-100{background:#dbeafe}
.bg-blue-200{background:#bfdbfe}
.bg-amber-100{background:#fef3c7}
.bg-amber-200{background:#fde68a}
.bg-red-100{background:#fee2e2}
.bg-red-200{background:#fecaca}
.bg-green-100{background:#dcfce7}
.bg-green-200{background:#bbf7d0}

/* فاصله‌ها (به‌میزان نیاز) */
.px-3{padding-left:.75rem;padding-right:.75rem}
.py-2{padding-top:.5rem;padding-bottom:.5rem}
.p-2{padding:.5rem}
.p-3{padding:.75rem}
.mt-2{margin-top:.5rem}
.mb-2{margin-bottom:.5rem}
.mb-3{margin-bottom:.75rem}

/* کارت ساده */
.card{background:#fff;border:1px solid #e5e7eb;border-radius:1rem;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.card .card-body{padding:1rem}

/* جدول زیبا */
.table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #e5e7eb;border-radius:1rem;overflow:hidden}
.table thead{background:#f3f4f6;color:#374151}
.table th,.table td{padding:.65rem .75rem;vertical-align:middle}
.table tbody tr{border-top:1px solid #e5e7eb}
.table tbody tr:hover{background:#f9fafb}

/* فرم‌ها */
input[type="text"],input[type="number"],input[type="date"],input[type="email"],
select,textarea{
  width:100%;padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:.75rem;
  background:#fff;outline:none;transition:border-color .2s,box-shadow .2s;
}
input:focus,select:focus,textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(96,165,250,.25)}
label{display:inline-block;margin-bottom:.35rem;color:#374151}
.form-row{display:flex;gap:.75rem;align-items:flex-start}
.form-col{flex:1}
.btn {
  font-family: 'Vazirmatn', sans-serif;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.5rem .9rem;
  border-radius:.75rem;
  border:1px solid transparent;
  font-weight:600;
  cursor:pointer;
  transition:all .2s ease;
}

/* دکمه‌ها */
.btn{display:inline-flex;align-items:center;gap:.5rem;border-radius:.75rem;border:1px solid transparent;
     padding:.5rem .9rem;font-weight:600;cursor:pointer;transition:all .2s ease}
.btn:disabled{opacity:.6;cursor:not-allowed}
.btn-primary{background:#2563eb;color:#fff}.btn-primary:hover{background:#1d4ed8}
.btn-warning{background:#f59e0b;color:#fff}.btn-warning:hover{background:#d97706}
.btn-danger{background:#dc2626;color:#fff}.btn-danger:hover{background:#b91c1c}
.btn-outline{background:#fff;border-color:#e5e7eb;color:#374151}.btn-outline:hover{background:#f9fafb}

/* هدر/نوبار نمونه */
.site-header{background:linear-gradient(90deg,#0ea5e9,#1f2937);color:#fff}
.site-header .inner{display:flex;align-items:center;justify-content:space-between;padding:.6rem .9rem}
.header-title{font-weight:800}

/* پرینت */
@media print{
  .no-print{display:none !important}
  body{background:#fff}
}

/* RTL کمک‌حال (اگر بدنه RTL است) */
[dir="rtl"] .text-right{text-align:right}
[dir="rtl"] .form-row{flex-direction:row-reverse}

/* افزونه‌ی سریع برای کلاس‌های رایج دیگر */
.min-w-full{min-width:100%}
.text-sm{font-size:.875rem}
.bg-white{background:#fff}
.bg-gray-300{background:#d1d5db}
.text-gray-700{color:#374151}
.hover\:bg-gray-50:hover{background:#f9fafb}
.rounded-2xl{border-radius:1rem}
.shadow{box-shadow:0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06)}
.divide-y tbody tr{border-top:1px solid #e5e7eb}

/* ===== Buttons (base) ===== */
button, .btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.5rem .9rem; border-radius:.75rem; border:1px solid transparent;
  font-weight:600; cursor:pointer; transition:all .2s ease;
}
.btn-sm{ padding:.35rem .65rem; font-size:.9rem; border-radius:.6rem }
.btn-lg{ padding:.7rem 1.1rem; font-size:1.05rem }

/* ===== Common utilities you used in templates ===== */
.px-3{padding-left:.75rem;padding-right:.75rem} .py-2{padding-top:.5rem;padding-bottom:.5rem}
.rounded-xl{border-radius:.75rem} .rounded{border-radius:.5rem}
.text-white{color:#fff} .text-slate-700{color:#334155} .text-slate-600{color:#475569}
.border{border:1px solid #e5e7eb} .hover\:underline:hover{text-decoration:underline}

/* ===== Color aliases (Tailwind-like) ===== */
/* Amber (ثبت/افزودن) */
.bg-amber-500{ background:#f59e0b !important; color:#fff }
.hover\:bg-amber-600:hover{ background:#d97706 !important }
.bg-amber-600{ background:#d97706 !important; color:#fff }

/* Blue (اولویت اصلی) */
.bg-blue-600{ background:#2563eb !important; color:#fff }
.hover\:bg-blue-700:hover{ background:#1d4ed8 !important }

/* Green (تأیید) */
.bg-green-600{ background:#16a34a !important; color:#fff }
.hover\:bg-green-700:hover{ background:#15803d !important }

/* Red (حذف) */
.bg-red-600{ background:#dc2626 !important; color:#fff }
.hover\:bg-red-700:hover{ background:#b91c1c !important }

/* Gray / Outline (انصراف) */
.bg-gray-100{ background:#f3f4f6 !important }
.bg-gray-200{ background:#e5e7eb !important }
.bg-gray-300{ background:#d1d5db !important }
.text-gray-700{ color:#374151 !important }
.hover\:bg-gray-50:hover{ background:#f9fafb !important }

/* حالت outline شبیه Tailwind */
.btn-outline, .border, .outline-gray{
  background:#fff; border:1px solid #e5e7eb; color:#374151;
}
.btn-outline:hover{ background:#f9fafb }

/* آیکن‌دکمه‌ی دایره‌ای ثابت (برای اکشن‌های کوچک) */
.icon-btn{
  width:2.25rem;height:2.25rem;border-radius:9999px;background:#f3f4f6;
  display:inline-flex;align-items:center;justify-content:center;transition:all .2s ease;
}
.icon-btn:hover{ background:#e5e7eb }
.icon-20{ width:20px;height:20px } .icon-24{ width:24px;height:24px }
