/* assets/css/app.css — استایل سفارشی روی Tailwind */

:root { --brand: 13 148 136; }

* { font-family: 'Vazirmatn', system-ui, sans-serif; }

body { -webkit-font-smoothing: antialiased; }

.nav-link {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  color: #475569;
  transition: all 0.18s ease;
}
.nav-link:hover { background: #f1f5f9; color: #0f172a; }

.card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.08);
}

.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.1rem; border-radius: 0.9rem;
  font-size: 0.88rem; font-weight: 500; cursor: pointer;
  transition: all 0.18s ease; border: none;
}
.btn-primary { background: linear-gradient(135deg, #14b8a6, #0891b2); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost { background: #f1f5f9; color: #334155; }
.btn-ghost:hover { background: #e2e8f0; }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.input {
  width: 100%; padding: 0.6rem 0.85rem; border: 1px solid #e2e8f0;
  border-radius: 0.85rem; font-size: 0.9rem; background: #fff;
  transition: border 0.15s, box-shadow 0.15s;
}
.input:focus { outline: none; border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,0.12); }
label.lbl { display:block; font-size: 0.82rem; color:#475569; margin-bottom: 0.35rem; }

table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th { text-align: right; font-size: 0.78rem; color: #64748b; font-weight: 600; padding: 0.7rem 0.8rem; border-bottom: 1px solid #f1f5f9; }
table.tbl td { padding: 0.7rem 0.8rem; font-size: 0.86rem; border-bottom: 1px solid #f8fafc; }
table.tbl tr:hover td { background: #f8fafc; }

.toast {
  background: #0f172a; color: #fff; padding: 0.75rem 1.1rem; border-radius: 0.9rem;
  font-size: 0.85rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
  animation: slideUp 0.25s ease;
}
.toast.ok { background: #065f46; }
.toast.err { background: #991b1b; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,0.45);
  display: flex; align-items: center; justify-content: center; z-index: 60;
  animation: fadeIn 0.18s ease; padding: 1rem;
}
.modal-box {
  background: #fff; border-radius: 1.5rem; padding: 1.6rem; max-width: 32rem; width: 100%;
  animation: slideUp 0.25s ease; max-height: 90vh; overflow-y: auto;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.badge { display:inline-block; padding: 0.2rem 0.6rem; border-radius: 0.6rem; font-size: 0.72rem; font-weight: 600; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-red { background: #fee2e2; color: #991b1b; }

/* اسلایدرهای تنظیمات: جهت ثابت LTR تا در RTL موقع تعامل برعکس نشوند */
input[type="range"] { direction: ltr; }

/* انیمیشن کشوی موبایل از سمت راست */
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
