@font-face {
  font-family: 'KalamehWeb Regular';
  src: url('./fonts/KalamehWeb_Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'KalamehWeb Regular';
  direction: rtl;
  padding: 1rem;
  background-color: #000000;
  margin: 0;
}

/* تیتر اصلی صفحه */
.main-title {
  text-align: center;
  font-size: 32px;
  color: #fff;
  margin-bottom: 2rem;
}

.container {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 2rem;
  max-width: 700px;
  margin: auto;
}

label {
  display: block;
  margin-top: 1rem;
  font-size: 18px;
  color: #333;
}

input {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

.row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.half {
  flex: 1;
  min-width: 45%;
}

.button-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.button-row button {
  flex: 1;
}

button {
  font-family: 'KalamehWeb Regular';
  font-weight: 600;
  padding: 0.7rem;
  background-color: #004f9d;
  color: white;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #004f9d;
}

.danger {
  background-color: #f44336;
}
.processing {
	background-color: #40a0ff;
}

.danger:hover {
  background-color: #d32f2f;
}

.full-width {
  width: 100%;
}

.output {
  margin-top: 2rem;
  background-color: #f0f0f0;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}
.output div {
  margin-bottom: 0.5rem;
}

/* جدول ریسپانسیو */
table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  overflow-x: auto;
}
th, td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: center;
  white-space: nowrap;
}
th {
  background-color: #e0e0e0;
}

/* پاپ‌آپ در مرکز صفحه */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-btn {
font-size: 24px;
}

.popup-content {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  position: relative;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.popup-content img.Installment {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}
.close-btn {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

/* موبایل ریسپانسیو */
@media (max-width: 600px) {
  .row {
    flex-direction: column;
  }
  .half {
    width: 100%;
  }
  .main-title {
    font-size: 24px;
  }
  .container {
    padding: 1rem;
  }
  .output {
    padding: 1rem;
    font-size: 14px;
  }
  th, td {
    font-size: 14px;
  }
}
