﻿


@font-face {
	font-family: 'IRANSans';
	src: url('fonts/IRANSans.woff') format('woff'), url('fonts/IRANSans.woff2') format('woff2'), url('fonts/IRANSansWeb.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
button:disabled{
	background-color: #ccc !important;
	cursor:not-allowed;
	color:#666;
}

@font-face {
	font-family: 'BBardiya';
	src: url('fonts/BBardiya.ttf') format('truetype');
}

body {
	margin: 0;
	font-family: 'IRANSans', Tahoma, sans-serif;
	background-color: #f1f1f1;
	direction: rtl;
	font-size: 16px;
}

#mainContent {
	margin-top:80px;
}


.form-check-input {
	border-radius: 5px;
	border: 1px solid #aaa;
	width: 1.2rem;
	height: 1.2rem;
}

.login-body, .dashboard-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100vh;
	padding:2rem 1rem;
	box-sizing:border-box;
}

.login-container, .main-content {
	background: white;
	padding: 2rem;
	border-radius: 10px;
	width: 80%;
	max-width: 300px;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
	
}

.login-container h4 {
	text-align:center;
}

.main-content  h4 {
	text-align: center;
	position : fixed;
}

h4 {
	font-family: IRANSans;
	align-content: center;
	align-items: center;
}

h2 {
	font-family: IRANSans;
	align-content:center;
	align-items:center;
}

input {
	width: 100%;
	padding: 0.7rem;
	margin: 0.5rem 0;
	border-radius: 5px;
	border: 1px solid #ccc;
	font-family: IRANSans;
	font-size: 16px;
}

select {
	width: 100%;
	padding: 0.7rem;
	margin: 0.5rem 0;
	border-radius: 5px;
	border: 1px solid #ccc;
	font-family: IRANSans;
	font-size: 16px;
}








.side-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

	.side-menu ul li {
		padding: 14px 20px;
		border-bottom: 1px solid #eee;
		cursor: pointer;
		position: relative;
		background-color: white;
	}

		.side-menu ul li:hover {
			background-color: #f0f0f0;
		}

/* زیرمنو مخفی پیش‌فرض */
.submenu {
	display: none;
	padding-right: 15px;
	background-color: #f9f9f9;
}

	.submenu li {
		padding: 10px 0 10px 10px;
		border: none;
		font-size: 14px;
	}








button {
	width: 100%;
	background-color: #003366;
	color: #FFD700;
	padding: 0.7rem;
	border: none;
	border-radius: 5px;
	font-weight: normal;
	font-family: IRANSans;
	cursor: pointer;
}

	button:hover {
		background-color: #002244;
	}

.logo, .sidebar-logo {
	width: 280px;
	margin-bottom: 1rem;
}

.top-bar {
	background-color: #003366;
	color: white;
	padding: 12px 16px;
	font-size: 17px;
	position: fixed;
	width: 100%;
	top: 0;
	right: 0;
	left:0;
	z-index: 2000;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
}
.top-bar-logo {
	width: 100px;
	height: 40px;
	flex: 1;
	object-fit : contain;
	flex-shrink:0;
	padding: 0 90px;
}
.top-bar-title {
	flex: 1;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0 40px;
}
.top-bar-text {
	font-size: 10px;
	font-family: 'IRANSans';
	text-align:right;
}

.side-menu {
	position: fixed;
	top: 0;
	right: -250px;
	width: 250px;
	height: 100%;
	background-color: #fff;
	box-shadow: -2px 0 5px rgba(0,0,0,0.1);
	transition: right 0.3s ease;
	padding-top: 60px;
	z-index: 1000;
	font-size: 16px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	font-family: 'IRANSans';
}

	.side-menu.open {
		right: 0;
		font-family: 'IRANSans';
	}

	.side-menu .close-btn {
		position: absolute;
		top: 10px;
		left: 15px;
		font-size: 22px;
		cursor: pointer;
	}

	.side-menu ul {
		list-style: none;
		padding: 0;
		margin: 0;
	}

		.side-menu ul li {
			padding: 14px 20px;
			border-bottom: 1px solid #eee;
			cursor: pointer;
			position: relative;
		}

			.side-menu ul li:hover {
				background-color: #f0f0f0;
			}

.menu-button {
	cursor: pointer;
}

.menu-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	z-index: 999;
	display: none;
}

.result-box {
	margin-top: 1rem;
	padding: 1rem;
	background-color: #fff9c4;
	border-left: 5px solid #ffc107;
	color: #333;
}

.container {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 80px
}




/* استایل همبرگر */
.hamburger {
	display: none;
	position: fixed;
	top: 20px;
	right: 20px;
	font-size: 48px;
	background: none;
	border: none;
	color: #ffc107; /* زرد سازمانی */
	z-index: 1001;
}


.sidebar {
	width: 250px;
	background-color: #003366; /* سرمه‌ای */
	height: 100vh;
	padding: 20px;
	color: white;
	position: fixed;
	top: 0;
	right: 0;
	transition: transform 0.3s ease-in-out;
}

	/* حالت مخفی */
	.sidebar.hidden {
		transform: translateX(100%);
	}

/* حالت موبایل */
@media (max-width: 768px) {
	.hamburger {
		display: block;
	}

	.sidebar {
		transform: translateX(100%);
	}

		.sidebar.open {
			transform: translateX(0%);
		}

	.main-content h4 {
		text-align: center;
		position: fixed;
		top:0;
		right :0;
		left : 0;
		z-index : 1000;
		padding : 10px;
	}
	.container {
		flex-direction: column;
		margin-top: 80px
	}

	mySelect {
		width: 100%;
		padding: 0.7rem;
		margin: 0.5rem 0;
		border-radius: 5px;
		border: 1px solid #ccc;
		font-family: IRANSans;
		font-size: 10px;
	}
}

.toast {
	position: fixed;
	bottom: 30px;
	right: 20px;
	background-color: #1e88e5;
	color: white;
	padding: 12px 24px;
	border-radius: 8px;
	font-family:'IRANSans',sans-serif;
	font-size: 15px;
	box-shadow: 0 0 15px rgba(0,0,0,0.2);
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
	z-index: 9999;
}

	.toast.show {
		opacity: 3;
	}

.data-table {
	width: 99%;
	border-collapse: collapse;
	margin-top: 1rem;
	font-family: 'IRANSans', Tahoma, sans-serif;
	font-size:10px;
}

	.data-table th, .data-table td {
		border: 1px solid #ccc;
		padding: 8px;
		text-align: center;
	}

	.data-table th {
		background-color: navy;
		color: yellow;
	}


input, select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box; /* بسیار مهم */
}
@media screen and (max-height: 600px) {
	.login-body {
		justify-content: flex-start;
		padding-top: 50px;
	}
}














.chart-box {
	background: #fff;
	padding: 30px;
	border-radius: 15px;
	box-shadow: 0 0 15px rgba(0,0,0,0.05);
	margin: 0 auto;
	width: 100%;
	max-width: 1200px;
	height: 500px; /* ارتفاع دلخواه */
}

canvas {
	width: 100% !important;
	height: 100% !important;
}





h5 {
	color: #343a40;
	text-align: center;
	margin-bottom: 40px;
	font-family: IRANSans;
	align-content: center;
	align-items: center;
	font-size: 8px;
}


