@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
}

body {
  font-family: 'Vazirmatn', sans-serif;
}


body {
  background: #efefef;
  font-family: 'Vazirmatn', sans-serif;
  padding: 20px 0;
  margin: 0;
}

/* کارت فرم آپلود */
.upload-card {
  max-width: 500px;
  margin: 40px auto 60px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  background: #fff;
  padding: 30px 30px 40px;
  text-align: center;
}

.upload-card h4 {
  font-weight: bold;
  margin-bottom: 25px;
  font-size: 1.6rem;
  color: #222;
}

.btn-custom {
  border-radius: 30px;
  padding: 10px 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn-custom:hover,
.btn-custom:focus {
  background-color: #0047ab;
  color: #fff;
  outline: none;
  box-shadow: 0 0 8px rgba(0, 71, 171, 0.6);
}

/* کارت جدول */
.table-card {
  max-width: 720px;
  margin: 0 auto 60px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  padding: 25px 30px;
  overflow-x: auto; /* فعال کردن اسکرول افقی در تبلت و موبایل */
}

/* جدول سفارشی */
.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  min-width: 600px; /* برای جلوگیری از خرد شدن جدول */
}

.custom-table thead th {
  background-color: #bed6ee;
  font-weight: 600;
  font-size: 15px;
  color: #444;
  text-align: center;
  padding: 12px 15px;
  border-bottom: none;
  white-space: nowrap;
}

.custom-table tbody tr {
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.custom-table tbody tr td {
  padding: 14px 15px;
  text-align: center;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #dee2e6;
  white-space: nowrap;
}

/* فقط خطوط افقی */
.custom-table tbody tr:last-child td {
  border-bottom: none;
}

/* پهنای ستون‌ها */
.custom-table th:nth-child(1),
.custom-table td:nth-child(1) {
  width: 15%;
}

.custom-table th:nth-child(2),
.custom-table td:nth-child(2) {
  width: 15%;
}

.custom-table th:nth-child(3),
.custom-table td:nth-child(3) {
  width: 70%;
  text-align: right;
  padding-right: 20px;
  white-space: normal;
  word-break: break-word;
}

/* ریسپانسیو برای تبلت و موبایل */
@media (max-width: 991.98px) {
  /* فعال کردن اسکرول افقی برای جدول */
  .table-card {
    padding: 20px 15px;
  }
  .custom-table {
    min-width: 100%;
  }
  .custom-table thead th {
    white-space: normal;
  }
  .custom-table tbody tr td {
    white-space: normal;
  }
}

/* موبایل: نمایش جدول به صورت کارت */
@media (max-width: 576px) {
  .upload-card,
  .table-card {
    padding: 20px 15px;
    margin: 20px 15px 40px;
  }

  .custom-table {
    border: 0;
    min-width: auto;
    border-spacing: 0;
  }

  .custom-table thead {
    display: none;
  }

  .custom-table tbody tr {
    display: block;
    margin-bottom: 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    padding: 15px;
  }

  .custom-table tbody tr td {
    display: flex;
    justify-content: space-between;
    padding: 10px 8px;
    border: none;
    border-bottom: 1px solid #eee;
    text-align: left;
    white-space: normal;
    font-size: 14px;
  }

  .custom-table tbody tr td:last-child {
    border-bottom: none;
  }

  .custom-table tbody tr td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
    flex-shrink: 0;
  }
}

/* ریسپانسیو فرم آپلود */
@media (max-width: 400px) {
  .upload-card {
    max-width: 90%;
    padding: 20px 15px 30px;
  }

  .btn-custom {
    width: 100%;
    padding: 12px 0;
    font-size: 1.1rem;
  }
}

