
.content-box2 {
	background: white;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	padding: 40px;
	position: relative;
	overflow: hidden;
	margin-bottom: 30px;
}

.content-box2::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 6px;
	background: linear-gradient(to left, #4A6FA5, #6C8DC3, #9BB5E0);
}

h2 {
	color: #2c3e50;
	font-size: 32px;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f0;
	position: relative;
}

h2::after {
	content: '';
	position: absolute;
	bottom: -2px;
	right: 0;
	width: 120px;
	height: 3px;
	background: #4A6FA5;
	border-radius: 3px;
}

h3 {
	color: #4A6FA5;
	font-size: 24px;
	margin: 35px 0 20px;
	padding-right: 15px;
	border-right: 4px solid #9BB5E0;
}

h4 {
	color: #2c3e50;
	font-size: 20px;
	margin: 15px 0 10px;
	display: flex;
	align-items: center;
}

h4 i {
	margin-left: 10px;
	color: #6C8DC3;
}

p {
	margin-bottom: 18px;
	text-align: justify;
	line-height: 1.8;
	color: #444;
	font-size: 18px;
}

.intro-box {
	background: linear-gradient(to left, #f0f7ff, #e8f1ff);
	border-right: 5px solid #6C8DC3;
	padding: 25px;
	border-radius: 10px;
	margin: 25px 0;
	box-shadow: 0 5px 15px rgba(108, 141, 195, 0.1);
}



code {
	background-color: #edf2f7;
	padding: 5px 10px;
	border-radius: 6px;
	font-family: 'Courier New', monospace;
	font-size: 16px;
	color: #2d3748;
	border: 1px solid #cbd5e0;
}

.formula-box {
	background-color: #f7fafc;
	border: 1px dashed #cbd5e0;
	padding: 15px;
	border-radius: 8px;
	margin: 10px 0;
	text-align: center;
	font-family: 'Courier New', monospace;
	font-weight: bold;
	font-size: 18px;
	color: #2d3748;
}

.table-container {
	overflow-x: auto;
	margin: 30px 0;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	border: 1px solid #e1e8f0;
}

.table2 {
	width: 100%;
	border-collapse: collapse;
	text-align: right;
	min-width: 700px;
}

.table2 thead {
	background: linear-gradient(to left, #4A6FA5, #5a7cb3);
}

.table2 th {
	color: green;
	padding: 18px 15px;
	font-weight: 600;
	border: none;
}

.table2 tbody tr {
	border-bottom: 1px solid #e1e8f0;
	transition: background-color 0.3s;
}

.table2 tbody tr:nth-child(even) {
	background-color: #f8fafc;
}

.table2 tbody tr:hover {
	background-color: #edf2f7;
}

.table2 td {
	padding: 15px;
	border: none;
	color: #2d3748;
}

.summary-box {
	background: linear-gradient(to left, #f0f7ff, #e8f1ff);
	border-radius: 12px;
	padding: 30px;
	margin-top: 30px;
	border: 1px solid #d0e1ff;
	box-shadow: 0 5px 15px rgba(108, 141, 195, 0.1);
}

.summary-box ul {
	list-style-type: none;
	margin-right: 0;
}

.summary-box li {
	background: transparent;
	border: none;
	padding: 15px 0;
	margin-bottom: 0;
	border-bottom: 1px dashed #cbd5e0;
}

.summary-box li:last-child {
	border-bottom: none;
}

.summary-box li:hover {
	transform: none;
	box-shadow: none;
}

.highlight {
	background-color: #fff9e6;
	padding: 3px 8px;
	border-radius: 4px;
	color: #b7791f;
	font-weight: 500;
}

.icon {
	color: #4A6FA5;
	margin-left: 10px;
}

@media (max-width: 768px) {
	body {
		padding: 10px;
	}
	
	.content-box {
		padding: 25px 20px;
	}
	
	h2 {
		font-size: 28px;
	}
	
	h3 {
		font-size: 22px;
	}
	
	h4 {
		font-size: 18px;
	}
	
	p, li, td {
		font-size: 16px;
	}
}
    
/* المان‌های عمومی فرم */
textarea,
input[type="file"],
button,
select {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* textarea با ارتفاع متناسب با صفحه */
textarea {
  min-height: 30vh;   /* حداقل 30٪ از ارتفاع صفحه */
  resize: vertical;   /* کاربر بتواند ارتفاع را تغییر دهد */
}

/* گروه دکمه‌ها */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* فاصله بین دکمه‌ها */
  margin-top: 15px;
}

.bttn {
  flex: 1; /* دکمه‌ها اندازه مساوی بگیرند */
  padding: 10px;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  background: #007BFF;
  color: white;
  cursor: pointer;
}

.bttn:hover {
  background: #0056b3;
}

/* نتیجه و بارگذاری */
.result {
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
}

.loading {
  text-align: center;
  font-size: 1.1em;
  color: #007BFF;
  margin-top: 10px;
}

/* جدول */
.table-container {
  overflow-x: auto;
  margin-top: 20px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 300px;
}

th,
td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}

th {
  background: #eee;
}

/* فرم ورودی فایل + ایست‌واژگان */
.form-container {
  display: flex;
  flex-direction: row; /* پیش‌فرض: کنار هم */
  gap: 10px; /* فاصله بین المان‌ها */
  align-items: center;
  flex-wrap: wrap; /* اجازه می‌دهد در صورت کمبود فضا، به خط بعد بروند */
}

/* فقط برای المان‌های داخل فرم-container */
.form-container input[type="file"],
.form-container select {
  width: auto; /* در حالت بزرگ اندازه طبیعی */
  flex: 1;     /* فضای موجود را تقسیم کنند */
}

.form-container label {
  flex: 0; /* لیبل فقط به اندازه متن خودش باشد */
}

/* برای صفحه‌های کوچک (مثلاً موبایل) */
@media (max-width: 600px) {
  .button-group {
    flex-direction: column; /* دکمه‌ها زیر هم قرار بگیرند */
  }

  .bttn {
    width: 100%; /* هر دکمه تمام عرض را بگیرد */
  }

  .form-container {
    flex-direction: column; /* در صفحه‌های کوچک زیر هم */
    align-items: flex-start;
  }

  .form-container input[type="file"],
  .form-container select {
    width: 100%; /* دوباره تمام عرض بگیرند */
    flex: none;
  }

  textarea {
    min-height: 20vh; /* در موبایل کمی کمتر */
  }
}
