.asnaf-panel {
  display: none;
  margin-top: 10px;
}

.asnaf-panel.asnaf-open {
  display: block;
}






/* =========================
   ریست و پایه
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Vazirmatn, sans-serif;
}

body {
  background: #f5f7fa;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================
   هدر
   ========================= */
.site-header {
  background: #0b3c60;
  color: #fff;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  background: #fff;
  color: #0b3c60;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
}

.logo-title {
  font-size: 20px;
  font-weight: bold;
}

.logo-subtitle {
  font-size: 12px;
  opacity: 0.8;
}

/* =========================
   منوی دسکتاپ
   ========================= */
.main-nav .nav-list {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-link {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  padding: 8px 12px;
  transition: 0.3s;
}

.nav-link:hover {
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
}

/* =========================
   منوی موبایل
   ========================= */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background: #0b3c60;
  padding: 10px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
}

.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: right;
  padding: 10px;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.mobile-nav-link:hover {
  background: rgba(255,255,255,0.15);
}

/* =========================
   سکشن‌ها
   ========================= */
.section {
  padding: 40px 20px;
  display: none;
  animation: fadeIn 0.4s ease;
}

.section-active {
  display: block;
}

.section-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: #0b3c60;
}

.section-subtitle {
  font-size: 18px;
  margin: 20px 0 10px;
  color: #0b3c60;
}

.section-desc {
  margin-bottom: 20px;
  color: #444;
}

/* =========================
   جدول‌ها
   ========================= */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.admin-table th {
  background: #0b3c60;
  color: #fff;
  padding: 12px;
  font-size: 14px;
}

.admin-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.admin-table tr:hover {
  background: #f0f6ff;
}

/* =========================
   دکمه‌ها
   ========================= */
button {
  cursor: pointer;
}

.btn-primary {
  background: #0b3c60;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #09405f;
}

.btn-secondary {
  background: #1e7f5c;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: #176648;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #ccc;
  padding: 8px 14px;
  border-radius: 6px;
}

.btn-ghost:hover {
  background: #eee;
}

.btn-link {
  background: transparent;
  color: #0b3c60;
  border: none;
  text-decoration: underline;
}

/* =========================
   آکاردئون جزئیات
   ========================= */
.details-row {
  background: #f9f9f9;
}

.details-box {
  padding: 15px;
  line-height: 1.8;
}

/* =========================
   صفحه‌بندی
   ========================= */
.pagination {
  margin-top: 15px;
  display: flex;
  gap: 8px;
}

.pagination button {
  padding: 6px 12px;
  border: 1px solid #0b3c60;
  background: #fff;
  border-radius: 4px;
}

.pagination button.active {
  background: #0b3c60;
  color: #fff;
}

/* =========================
   مودال‌ها
   ========================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.modal-open {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.modal-content {
  position: relative;
  background: #fff;
  padding: 25px;
  width: 90%;
  max-width: 420px;
  border-radius: 10px;
  z-index: 10;
  animation: fadeIn 0.3s ease;
}

.modal-field {
  margin-bottom: 15px;
}

.modal-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.modal-field input,
.modal-field select {
  width: 100%;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
}

.captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.captcha-code {
  background: #0b3c60;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
}

/* =========================
   فوتر
   ========================= */
.site-footer {
  margin-top: auto;
  background: #0b3c60;
  color: #fff;
  padding: 20px;
  text-align: center;
}

/* =========================
   Toast
   ========================= */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0b3c60;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  opacity: 0;
  transition: 0.4s;
}

.toast.show {
  opacity: 1;
}

.toast.error {
  background: #b30000;
}

/* =========================
   انیمیشن‌ها
   ========================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   ریسپانسیو
   ========================= */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
}
