@charset "UTF-8";

/* =========================
   فونت
========================= */
@import url("fontiran.css");

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: 'IRANSans', Verdana, sans-serif;
	font-size: 14px;
	background: #f4f8f4;
	direction: rtl;
}

/* =========================
   هدر و لوگو
========================= */
.top-banner {
	height: 85px;

	/*background: linear-gradient(to right, #476f83, #0e3c5c);*/
	/*background: linear-gradient(to right, #dff1d7, #def3d0);*/
	background: linear-gradient(to right, #174908, #033c03);
	color: #ffffff;
	display: flex;
	align-items: center;
	padding: 0 20px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.banner-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.top-banner img {
	max-height: 70px;
}

/* ==================================
ماشین متحرک
 ================================== */
/*.top-banner {
	position: relative;
	overflow: hidden; !* جلوگیری از اسکرول افقی *!
}
.moving-car img {
	max-height: 70px;
}

!* ماشین *!
.moving-car {
	position: absolute;
	!*width: 140px; !* 70% از 200px *!*!
	top:40px;    !* اگر لازم شد کمی تنظیم کن *!
	right: 10px;  !* 👈 نقطه‌ای که ماشین در بنر ثابت دیده می‌شود *!
	transform: translateY(-50%);
	animation: car-move 60s linear infinite;
	pointer-events: none; !* روی کلیک‌ها اثر نگذارد *!
}

@keyframes car-move {
	0% {
		right: 20px;   !* دقیقاً روی ماشین داخل بنر *!
		opacity: 1;
	}
	10% {
		right: 20px;   !* کمی مکث برای طبیعی شدن *!
	}
	100% {
		right: 100%;
		opacity: 1;
	}
}*/


.top-banner {
	position: relative;
	overflow: hidden; /* جلوگیری از اسکرول افقی */
}

/* ماشین */
.moving-car {
	position: absolute;
	/*width: 140px; !* 70٪ از تصویر 200px *!*/
	top: 40px;
	right: 10px; /* نقطه شروع دقیق */
	transform: translateY(-50%);
	animation: car-move 18s cubic-bezier(0.4, 0.0, 0.2, 1);
	opacity: 0;
	pointer-events: none;
}
.leave {
	position: absolute;
	/*width: 140px; !* 70٪ از تصویر 200px *!*/
	top: 35px;
	right: 450px; /* نقطه شروع دقیق */
	/*opacity: 0;*/
	pointer-events: none;
	height: 40px;
}
/*.moving-car img {*/
/*	max-height: 70px;*/
/*}*/
/* وقتی فعال شد */
.moving-car.run {
	animation: car-move 18s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* انیمیشن */
@keyframes car-move {
	0% {
		right: 20px;
		opacity: 1;
	}
	15% {
		right: 20px; /* مکث کوتاه */
	}
	85% {
		right: 100%;
		opacity: 1;
	}
	100% {
		right: 110%;
		opacity: 0; /* محو شدن */
	}
}

/* =========================
   page header
*/
.page-header {
	display: flex;
	align-items: center;
	/*display: block;*/
	width: 100%;
	font-size: 16px;
	color: #fbfff9;
	font-weight: bold;
	/*background-color: #ebede9;*/
	background: linear-gradient(to right, #ffffff, #828f82);
	height: 35px;
	margin-bottom: 10px;
	/*margin-left: 20px;*/

	padding-right: 10px;
}

/* =========================
   منو بالا
========================= */
.top-menu {
	position: relative;
	background: #37bf04;
	height: 40px;
	display: flex;
	align-items: center;
	padding: 0 40px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

ul.navigation {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 20px;
}

ul.navigation > li {
	position: relative;
}

ul.navigation li a {
	display: block;
	padding: 0 12px;
	font-size: 14px;
	line-height: 42px;
	color: #ffffff;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s, background 0.3s;
}

ul.navigation li a:hover {
	color: #ffeab3;
	background: #37bf04;
	border-radius: 4px;
}

ul.navigation li:hover > ul {
	visibility: visible;
	opacity: 1;
}

ul.navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 100%;
	right: 0;
	background: #37bf04;
	min-width: 180px;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s;
	border-radius: 4px;
	z-index: 1000;
}

ul.navigation ul li a {
	/*padding: 8px 5px;*/
	color: #ffffff;
}

ul.navigation ul li a:hover {
	background-color: #38404a;
	color: #f1ffee;

}

/* کانتینر خروج – منتهی‌الیه چپ */
.logout-container {
	position: absolute;
	left: 12px;
	top: 20px;
	transform: translateY(-50%);
	z-index: 10;
}

/* لینک آیکن خروج */
.logout-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

/* خود SVG */
.logout-icon svg {
	width: 32px;
	height: 32px;
	fill: #ffffff;              /* رنگ پیش‌فرض */
	transition: fill 0.2s ease;
}

/* hover */
.logout-icon:hover svg {
	fill: #f8db92;           /* قرمز */
}

/* افکت ظریف پس‌زمینه */
.logout-icon:hover {
	background-color: rgba(211, 47, 47, 0.08);
	border-radius: 50%;
}


/*----------------------------------*/
.top-menu-icon {
	display: inline-flex;       /* مهم: flex برای وسط‌چین عمودی */
	align-items: center;        /* وسط عمودی */
	gap: 6px;                   /* فاصله بین آیکن و متن */
	text-decoration: none;      /* حذف خط زیر متن */
	/*color: #4caf50;             !* رنگ آیکن و متن *!*/
}

.top-menu-icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
	flex-shrink: 0;             /* جلوگیری از کوچک شدن SVG */
	vertical-align: middle;     /* اطمینان از وسط بودن */
	transition: fill 0.2s ease;
}

/* hover */
/*.top-menu-icon:hover {*/
/*	color: #1976d2;             !* رنگ هنگام hover *!*/
/*}*/


/* =========================
   کانتینر و محتوا
========================= */
.main,
.main-wrapper {
	min-height: 100%;
}

.container,
.content {
	width: 85%;
	margin: 12px auto;
	border: none;
	border-radius: 8px;
	background: #ffffff;
	padding: 15px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* =========================
   کارت‌ها (Tiles)
========================= */
.tileWrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	/*flex-direction: row-reverse; !* کارت‌ها از راست به چپ *!*/
	justify-content: flex-start;  /* کارت‌ها سمت راست جمع شوند */
}

.tileRow1 {
	display: flex;
	flex-direction: column;
	/*align-items: flex-end;  !* محتوا راست‌چین *!*/
	width: 200px;
	max-width: 220px;
	margin: 5px;
	padding: 15px 10px;
	border: 3px solid #fff;
	border-radius: 4px;
	box-shadow: 2px 2px 5px #969696;
	background-color: #f7f7f7;
	color: #504f50;
	text-decoration: none;
	font-size: 14px;
	font-weight: bold;
	font-family: 'IRANSans', Verdana, sans-serif;
	direction: rtl;        /* متن راست‌چین شود */
	text-align: right;     /* متن داخل <a> هم راست‌چین شود */
	unicode-bidi: isolate;
}

.tileRow1:hover {
	background-color: #eeeeee;
}

.tileRow1 * {
	direction: rtl;
	text-align: right;
	unicode-bidi: isolate;
}

.baseTable,
.baseRow,
.baseCell {
	direction: rtl;
	text-align: right;
}

.baseTable {
	width: 100%;
	text-align: right;
	direction: rtl;
}

.baseRow {
	display: table-row;
	line-height: 30px;
	font-weight: normal;
}

.baseCell {
	display: table-cell;
}

.baseCell:first-child {
	padding-right: 5px;
}

.baseCell:nth-child(2) {
	padding-left: 5px;
}

.base {
	display: block;
	margin: 10px 0;
}

.formatNumber {
	font-size: 18px;
	font-weight: bold;
	color: #e67e22;
}




/* =========================
   فرم‌ها
========================= */
select,
input[type="text"],
input[type="number"],
input[type="password"],
textarea {
	width: 70%;
	font-family: 'IRANSans', Verdana, sans-serif;
	font-size: 13px;
	padding: 6px;
	border: 1px solid #bdc3c7;
	border-radius: 4px;
	box-sizing: border-box;
}

textarea {
	height: 6em;
	resize: vertical;
}

input[type="submit"] {
	background: #37bf04;
	color: #fff;
	border: none;
	height: 32px;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.3s;
}

input[type="submit"]:hover {
	background: #3ed804;
}

/* =========================
   جدول‌ها
========================= */
table {
	width: 100%;
	border-collapse: collapse;
}

table.res th {
	background: #ecf1ec;
	border-bottom: double #bdc7c0;
	padding: 6px;
	text-align: center;
}

table.res td {
	padding: 6px;
	text-align: center;
}


.userInput {
	width: 100%;           /* جدول کل عرض رو می‌گیره */
	table-layout: fixed;   /* ستون‌ها بر اساس عرض تعریف‌شده کنترل می‌شن */
}

.userInput th {
	width: 150px;          /* پهنای ستون عنوان */
}

.userInput td {
	width: auto;           /* بقیه ستون‌ها */
}

/* =========================
   Tooltip
========================= */
a.tooltip {
	position: relative;
	text-decoration: none;
	font-size: 12px;;
	font-weight: normal;
}

/*

a.tooltip:hover span {
	display: block;
	position: absolute;
	z-index: 1000;
	width: 250px;
	background: #dff0fc;
	border: 1px solid #1abc9c;
	padding: 8px;
	font-family: 'IRANSans', Verdana, sans-serif;

}*/

/* span پیش‌فرض مخفی باشد */
a.tooltip span {
	display: none;
	position: absolute; /* همیشه position برای tooltip باید مشخص باشد */
	z-index: 1000;
	width: 250px;
	background: #dff0fc;
	border: 1px solid #1abc9c;
	padding: 8px;
	font-family: 'IRANSans', Verdana, sans-serif;
	top: 100%; /* زیر لینک */
	left: 50%;
	transform: translateX(-50%);
}

/* نمایش tooltip هنگام هاور */
a.tooltip:hover span,
a.tooltip:active span { /* فعال هنگام هاور یا لمس */
	display: block;
}
/*============================================*/

.login-page {
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #f5f7fa;
}

.login-box {
	display: flex;
	flex-direction: row;   /* چون rtl است، ستون اول سمت راست می‌افتد */
	width: 800px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	overflow: hidden;
}

/* ستون هدر (سمت راست) */
.login-header {
	width: 40%;
	background: linear-gradient(135deg, #0d6efd, #0a58ca);
	color: #fff;
	padding: 40px 30px;
	text-align: center;
}

.login-logo {
	width: 120px;
	margin-bottom: 20px;
}

/* ستون فرم (سمت چپ) */
.login-content {
	width: 60%;
	padding: 40px 30px;
}

/* فرم */
.login-form {
	display: flex;
	flex-direction: column;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.form-group input {
	width: 100%;
	padding: 10px;
	border-radius: 6px;
	border: 1px solid #ccc;
}

.login-btn {
	margin-top: 10px;
	padding: 12px;
	background: #0d6efd;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	cursor: pointer;
}

.login-btn:hover {
	background: #0a58ca;
}

/* پیام خطا */
.login-error {
	background: #fdecea;
	color: #b42318;
	border: 1px solid #f5c2c7;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 20px;
	text-align: right;
	font-size: 14px;
}

/*
.login-page {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background: linear-gradient(135deg, #edf6f1, #ebf4f1);
	font-family: 'IRANSans', Verdana, sans-serif;
}

.login-box {
	background: #fff;
	padding: 30px 40px;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.2);
	width: 100%;
	max-width: 400px;
	text-align: center;
}

.login-logo {
	max-height: 60px;
	margin-bottom: 15px;
}

.login-header h2 {
	margin: 0 0 20px;
	color: #333;
}

.login-error {
	background: #f8d7da;
	color: #721c24;
	padding: 10px;
	margin-bottom: 15px;
	border-radius: 4px;
	font-size: 14px;
}

.login-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.form-group {
	display: flex;
	flex-direction: column;
	text-align: right;
}

.form-group label {
	margin-bottom: 5px;
	font-weight: bold;
	color: #555;
}

.form-group input {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.login-btn {
	background: #e4ba61;
	color: #ffffff;
	border: none;
	padding: 10px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	transition: background 0.3s;
}

.login-btn:hover {
	background: #e8c885;
}*/
/*-------------------------------------------*/
button, input[type="submit"], input[type="button"] {
	font-family: 'IRANSans', Verdana, sans-serif;
	font-size: 14px; /* یا اندازه دلخواه */
	font-weight: bold; /* اگر میخوای بولد باشه */
	cursor: pointer;
}

/* ریسپانسیو موبایل */
@media (max-width: 480px) {
	.login-box {
		padding: 20px;
		width: 90%;
	}
}


.site-footer {
	width: 100%;
	background-color: #0f172a;
	color: #ffffff;
	font-family: IRANSans, Arial, sans-serif;
	text-align: center;
	padding: 14px 0;
	box-sizing: border-box;
	direction: rtl;
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	font-size: 13px;
}

.site-footer a {
	color: #38bdf8;
	text-decoration: none;
	margin: 0 5px;
}

.site-footer a:hover {
	text-decoration: underline;
}