/* Base Styles */
#ContentContainer {
	margin-top: 80px;
}

.main_menu_container {
	width: 100%;
	height: auto;
	color: #FFF;
	font-size: 14px;
	text-decoration: none;
	font-weight: bold;
	align-items: center;
	display: inline-block;
	margin-top: 50px;
	vertical-align: top;
}

.main_body_container {
	width: calc(100% - 30px);
	padding: 20px;
	font-size: 14px;
	text-decoration: none;
	font-weight: bold;
	direction: rtl;
}

.body_container {
	background: #FFF;
	padding: 20px;
	border: 1px solid #DDD;
}

.top_container {
	color: #CCC;
	font-size: 12px;
	background: #303030;
	height: 48px;
	border-bottom: 1px solid #202020;
	padding: 5px;
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 100;
}

.top_container_login_info {
	position: relative;
	top: -10px !important;
	width: 100%;
}

.message_container {
	text-align: center;
	color: #FFF;
	padding: 10px;
	background: #1DC237;
	margin: 10px 0px;
	font-size: 16px !important;
}

/* Main Container - Responsive */
.menu_container {
	width: 100%;
	max-width: 600px;
	height: auto;
	padding: 20px;
	border-radius: 0px;
	border: 1px solid #DDD;
	color: #777;
	font-size: 14px;
	text-decoration: none;
	font-weight: bold;
	background: #FFF;
	box-sizing: border-box;
}

.responsive-container {
	margin: 0 auto;
}

.menu_container input {
	box-sizing: border-box;
}

/* Logo Styles */
.logo-container {
	text-align: center;
	margin-bottom: 30px;
	padding: 20px 0;
}

.main-logo {
	max-width: 100%;
	height: auto;
	width: auto;
	max-height: 150px;
	display: inline-block;
}

/* Page Title */
.page-title {
	color: #2c5f2d;
	font-size: 28px;
	font-weight: bold;
	margin-bottom: 20px;
	text-align: center;
}

.footer {
	align-content: center;
	position: relative;
	bottom: 0;
	left: 0;
	width: 100%;
	padding-top: 10px;
	color: #444;
	font-size: 12px;
}

.FooterContainer {
	position: sticky;
}

.clear {
	padding: 10px;
}

.link {
	color: #444;
	text-decoration: underline;
}

.menu_title {
	color: #FFF;
	font-size: 25px;
	position: relative;
	bottom: 2px;
}

.editview_form {
	margin: 0 !important;
}

.dt-button.buttons-excel {
	display: inline-block !important;
	margin-top: 17px;
}

.Field_Container {
	width: calc(50% - 32px);
}

.more_button_div {
	position: absolute;
	left: 3vw;
	top: 15px;
	display: flex;
	align-items: center;
	gap: 5px;
}

.panel_container table tbody td,
.panel_container table tbody td a {
	font-size: 20px !important;
}

/* Font Faces */
@font-face {
	font-family: 'IRANSansWeb';
	src: url('../font/IRANSansWeb.ttf') format('truetype'),
		url('../font/IRANSansWeb.eot') format('eot');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'IRANSansWeb_FaNum';
	src: url('../font/IRANSansWeb_FaNum.ttf') format('truetype'),
		url('../font/IRANSansWeb_FaNum.eot') format('eot');
	font-weight: normal;
	font-style: normal;
}

*,
body {
	font-family: "IRANSansWeb_FaNum", "IRANSansWeb" !important;
}

/* Form Styles */
.form-section {
	margin-bottom: 25px;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
}

.form-group {
	margin-bottom: 18px;
	position: relative;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: bold;
	color: #333;
	font-size: 14px;
}

.form-control {
	width: 100%;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 15px;
	direction: rtl;
	text-align: right;
	box-sizing: border-box;
	transition: border-color 0.3s;
}

.form-control:focus {
	outline: none;
	border-color: #2c5f2d;
	box-shadow: 0 0 5px rgba(44, 95, 45, 0.3);
}

.form-control:disabled {
	background: #f5f5f5;
	cursor: not-allowed;
}

.form-control:readonly {
	background: #f5f5f5;
	cursor: not-allowed;
}

.status-icon {
	position: absolute;
	left: 10px;
	top: 38px;
	font-size: 20px;
}

.message {
	display: block;
	margin-top: 5px;
	font-size: 13px;
	line-height: 1.4;
}

.message.error {
	color: #d32f2f;
}

.message.success {
	color: #388e3c;
}

/* Button Styles */
.btn {
	padding: 14px 35px;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s;
	font-weight: bold;
	display: inline-block;
}

.btn:hover {
	opacity: 0.9;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.btn-primary {
	background: #2c5f2d;
	color: white;
}

.btn-primary:hover:not(:disabled) {
	background: #1e4620;
}

.btn-success {
	background: #ff9800;
	color: white;
}

.btn-success:hover {
	background: #f57c00;
}

/* Activation Code Box */
.activation-code-box {
	text-align: center;
	margin-top: 30px;
}

.activation-code-display {
	font-size: 32px;
	font-weight: bold;
	color: #2c5f2d;
	padding: 25px;
	background: #e8f5e9;
	border: 3px solid #4caf50;
	border-radius: 10px;
	margin: 20px 0;
	letter-spacing: 3px;
	word-break: break-all;
}

.activation-note {
	color: #666;
	font-size: 14px;
	margin-top: 15px;
	line-height: 1.6;
}

.warranty-result {
	background: #f5f5f5;
	padding: 20px;
	border-radius: 8px;
}

/* Section Headers */
h3 {
	color: #2c5f2d;
	border-bottom: 2px solid #2c5f2d;
	padding-bottom: 10px;
	margin-bottom: 20px;
	font-size: 18px;
}

/* Alert Styles */
.alert-success {
	display: block;
	padding: 15px 20px;
	border: 1px solid #c3e6cb;
	border-radius: 6px;
	background-color: #d4edda;
	color: #155724;
	font-size: 14px;
	line-height: 1.6;
	margin: 15px 0;
	transition: all 0.3s ease;
	text-align: center;
}

.alert-success.message.success {
	opacity: 0;
	transform: translateY(-10px);
	animation: fadeInAlert 0.4s ease forwards;
}

@keyframes fadeInAlert {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========== RESPONSIVE STYLES ========== */

/* Tablet Styles */
@media screen and (max-width: 768px) {
	#ContentContainer {
		margin-top: 60px;
	}

	.main_menu_container {
		margin-top: 30px;
	}

	.menu_container {
		padding: 15px;
		border-radius: 0;
	}

	.logo-container {
		padding: 15px 0;
		margin-bottom: 20px;
	}

	.main-logo {
		max-height: 120px;
	}

	.page-title {
		font-size: 24px;
		margin-bottom: 15px;
	}

	.form-section {
		padding: 15px;
		margin-bottom: 20px;
	}

	.form-section h3 {
		font-size: 16px;
	}

	.form-control {
		padding: 10px;
		font-size: 14px;
	}

	.btn {
		padding: 12px 25px;
		font-size: 15px;
		width: 100%;
	}

	.activation-code-display {
		font-size: 24px;
		padding: 20px;
		letter-spacing: 2px;
	}

	.Field_Container {
		width: 100%;
	}
}

/* Mobile Styles */
@media screen and (max-width: 480px) {
	#ContentContainer {
		margin-top: 50px;
	}

	.main_menu_container {
		margin-top: 20px;
		padding: 0;
	}

	.menu_container {
		padding: 10px;
		border-left: none;
		border-right: none;
	}

	.logo-container {
		padding: 10px 0;
		margin-bottom: 15px;
	}

	.main-logo {
		max-height: 100px;
		max-width: 90%;
	}

	.page-title {
		font-size: 20px;
		margin-bottom: 10px;
	}

	.form-section {
		padding: 12px;
		margin-bottom: 15px;
		border-radius: 6px;
	}

	.form-section h3 {
		font-size: 15px;
		margin-bottom: 15px;
		padding-bottom: 8px;
	}

	.form-group {
		margin-bottom: 15px;
	}

	.form-group label {
		font-size: 13px;
		margin-bottom: 6px;
	}

	.form-control {
		padding: 10px;
		font-size: 14px;
	}

	.status-icon {
		top: 35px;
		font-size: 18px;
	}

	.message {
		font-size: 12px;
	}

	.btn {
		padding: 12px 20px;
		font-size: 14px;
		width: 100%;
	}

	.activation-code-display {
		font-size: 20px;
		padding: 15px;
		letter-spacing: 1px;
	}

	.activation-note {
		font-size: 13px;
	}

	.warranty-result {
		padding: 15px;
	}

	.top_container {
		height: auto;
		min-height: 48px;
		padding: 10px 5px;
	}

	.clear {
		padding: 5px;
	}
}

/* Extra Small Mobile */
@media screen and (max-width: 360px) {
	.menu_container {
		padding: 8px;
	}

	.main-logo {
		max-height: 80px;
	}

	.page-title {
		font-size: 18px;
	}

	.form-section {
		padding: 10px;
	}

	.form-section h3 {
		font-size: 14px;
	}

	.form-control {
		padding: 8px;
		font-size: 13px;
	}

	.btn {
		padding: 10px 15px;
		font-size: 13px;
	}

	.activation-code-display {
		font-size: 18px;
		padding: 12px;
	}
}

/* Landscape Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
	.logo-container {
		padding: 5px 0;
		margin-bottom: 10px;
	}

	.main-logo {
		max-height: 60px;
	}

	.page-title {
		font-size: 18px;
		margin-bottom: 10px;
	}

	.form-section {
		padding: 10px;
		margin-bottom: 10px;
	}
}

.form-control select,
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 20px;
    padding-left: 35px;
    cursor: pointer;
}

select.form-control:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}