/*
=========================================================
   Parseh Business Plan Portal - Dashboard Styles
========================================================= 
*/
@font-face {
	font-family: 'B Nazanin';
	src: url('/assets/fonts/BNaz.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'B Titr';
	src: url('/assets/fonts/BTitr.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/*
=========================================================
   Global Reset
========================================================= 
*/
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html {
	min-height: 100%;
}
body {
	min-height: 100vh;
	background: #f0f2f5;
	color: #333333;
	font-family: 'B Nazanin','Times New Roman',sans-serif;
	direction: rtl;
	display: flex;
	flex-direction: column;
}

/*
=========================================================
   Dashboard Layout
========================================================= 
*/
.dashboard-layout {
	width: 100%;
	flex: 1 0 auto;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	direction: rtl;
	min-height: calc(100vh - 70px);
}

/*
=========================================================
   Right Navigation Sidebar
========================================================= 
*/
.navigation-sidebar {
	width: 280px;
	flex: 0 0 280px;
	background: #0f1c2e;
	color: #ffffff;
	padding: 15px 0;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	position: sticky;
	top: 70px;
	height: calc(100vh - 70px);
	box-shadow: -2px 0 10px rgba(0,0,0,0.12);
	z-index: 20;
}
.navigation-section {
	width: 100%;
	margin-bottom: 10px;
}
.navigation-section-title {
	font-family: 'B Titr',sans-serif;
	font-size: 15px;
	color: #a0b0c0;
	padding: 8px 20px;
	border-bottom: 1px solid #1e2d40;
	margin-bottom: 8px;
}
.navigation-menu,
.navigation-submenu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.navigation-item {
	margin: 0;
	padding: 0;
}
.navigation-link {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 20px;
	color: #e0e0e0;
	text-decoration: none;
	font-family: 'B Nazanin','Times New Roman',sans-serif;
	font-size: 15px;
	line-height: 1.5;
	border-right: 3px solid transparent;
	transition: background-color 0.2s ease,color 0.2s ease,border-color 0.2s ease;
}
.navigation-link:hover,
.navigation-link.active {
	background: #1e2d40;
	color: #ffffff;
	border-right-color: #b50e61;
}
.navigation-link .nav-icon {
	width: 22px;
	flex: 0 0 22px;
	text-align: center;
	font-size: 18px;
	color: #b50e61;
}
.navigation-phase {
	margin: 5px 0 0 0;
}
.navigation-phase-title {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 9px 20px;
	background: #1a2636;
	color: #ffd54f;
	font-family: 'B Titr',sans-serif;
	font-size: 15px;
	line-height: 1.5;
}
.navigation-submenu {
	background: #101e30;
}
.navigation-submenu .navigation-link {
	font-size: 14px;
	padding-right: 45px;
	color: #c0c0c0;
	position: relative;
}
.navigation-submenu .navigation-link::before {
	content: '•';
	position: absolute;
	right: 27px;
	color: #b50e61;
	font-size: 18px;
}

/*
=========================================================
   Logout
========================================================= 
*/
.logout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: auto 20px 20px 20px;
	padding: 10px;
	background: #b50e61;
	color: #ffffff;
	text-decoration: none;
	text-align: center;
	border-radius: 6px;
	font-family: 'B Titr',sans-serif;
	font-size: 14px;
	transition: background-color 0.2s ease;
}
.logout-btn:hover {
	background: #8e0b4a;
}

/*
=========================================================
   Main Content Area
========================================================= 
*/
.dashboard-content {
	flex: 1 1 auto;
	min-width: 0;
	min-height: calc(100vh - 70px);
	padding: 25px;
	background: #f4f6f9;
	overflow: visible;
	direction: rtl;
}

/*
=========================================================
   Dashboard Home
========================================================= 
*/
.welcome-banner {
	position: relative;
	width: 100%;
	min-height: 180px;
	margin-bottom: 25px;
	padding: 15px 25px;
	background: linear-gradient(135deg,#0f1c2e,#2a3b5c);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	overflow: hidden;
	box-shadow: 5px 5px 12px rgba(153,30,159,0.35);
}
.welcome-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/assets/images/city-skyline.jpg') center center / cover no-repeat;
	opacity: 1;
	z-index: 0;
}
.welcome-banner > * {
	position: relative;
	z-index: 1;
}
.welcome-image {
	display: flex;
	align-items: right;
	justify-content: right;
	width: 100%;
}
.welcome-image img {
	display: block;
	max-width: 100%;
	max-height: 150px;
	object-fit: contain;
	border-radius: 8px;
	filter: drop-shadow(0 5px 10px rgba(0,0,0,0.35));
}

/*
=========================================================
   Phase Cards
========================================================= 
*/
.phases-row {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(5,minmax(0,1fr));
	gap: 15px;
	margin-bottom: 25px;
	align-items: stretch;
}
.phase-card {
	position: relative;
	width: 100%;
	min-width: 0;
	min-height: 520px;
	background: #ffffff;
	border-radius: 12px;
	padding: 25px 15px 20px 15px;
	text-align: center;
	box-shadow: 5px 5px 12px rgba(0,0,0,0.08);
	border-top: 5px solid #168ee8;
	transition: transform 0.2s ease,box-shadow 0.2s ease;
	overflow: hidden;
}
.phase-card:hover {
	transform: translateY(-5px);
	box-shadow: 8px 10px 18px rgba(0,0,0,0.14);
}
.phase-card:nth-child(1) {
	border-top-color: #168ee8;
}
.phase-card:nth-child(2) {
	border-top-color: #19b88d;
}
.phase-card:nth-child(3) {
	border-top-color: #ff8a19;
}
.phase-card:nth-child(4) {
	border-top-color: #8848df;
}
.phase-card:nth-child(5) {
	border-top-color: #f33c5e;
}
.phase-icon {
	width: 90px;
	height: 90px;
	margin: 0 auto 20px auto;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	overflow: hidden;
}
.phase-icon img {
	display: block;
	width: 90px;
	height: 90px;
	object-fit: contain;
}
.phase-card:nth-child(1) .phase-icon {
	background: #168ee8;
}
.phase-card:nth-child(2) .phase-icon {
	background: #19b88d;
}
.phase-card:nth-child(3) .phase-icon {
	background: #ff8a19;
}
.phase-card:nth-child(4) .phase-icon {
	background: #8848df;
}
.phase-card:nth-child(5) .phase-icon {
	background: #f33c5e;
}
.phase-title {
	font-family: 'B Titr',sans-serif;
	font-size: 16px;
	line-height: 1.8;
	color: #333333;
	margin: 5px 0 10px 0;
}
.phase-description {
	font-family: 'B Nazanin','Times New Roman',sans-serif;
	font-size: 13px;
	line-height: 1.8;
	color: #777777;
	margin: 0;
}

/*
=========================================================
   Quick Access
========================================================= 
*/
.quick-access-row {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(9,minmax(0,1fr));
	gap: 10px;
	padding: 18px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.quick-access-item {
	min-width: 0;
	min-height: 95px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 6px;
	background: transparent;
	border-radius: 8px;
	color: #333333;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.2s ease,transform 0.2s ease;
}
.quick-access-item:hover {
	background: #f0f2f5;
	transform: translateY(-3px);
}
.quick-access-item .qa-icon {
	font-size: 28px;
	color: #b50e61;
}
.quick-access-item .qa-title {
	font-family: 'B Nazanin','Times New Roman',sans-serif;
	font-size: 12px;
	font-weight: bold;
	line-height: 1.6;
	color: #333333;
}

/*
=========================================================
   Phase / Portal Content
========================================================= 
*/
.phase-content {
	width: 100%;
	min-height: calc(100vh - 120px);
	background: #ffffff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.phase-content-header {
	margin-bottom: 15px;
	padding-bottom: 12px;
	border-bottom: 2px solid #f0f2f5;
}
.phase-content-title {
	font-family: 'B Titr',sans-serif;
	font-size: 20px;
	line-height: 1.8;
	color: #0f1c2e;
	margin: 0;
}
.phase-content-page-title {
	font-family: 'B Titr',sans-serif;
	font-size: 16px;
	line-height: 1.8;
	color: #b50e61;
	margin: 0;
}
.phase-pdf-container {
	width: 100%;
	height: calc(100vh - 220px);
	min-height: 500px;
	overflow: hidden;
}
.phase-pdf-frame {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 500px;
	border: none;
	border-radius: 8px;
	background: #ffffff;
}

/*
=========================================================
   Footer
========================================================= 
*/
/*.site-footer {
	flex: 0 0 auto;
	width: 100%;
	margin-top: 0;
	padding: 25px 20px;
	background: #0f1c2e;
	color: #ffffff;
	text-align: center;
	border-top: 4px solid #b50e61;
	box-shadow: 0 -3px 12px rgba(0,0,0,0.12);
}
.site-footer .container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}
.site-footer p {
	margin: 8px 0;
	font-family: 'B Nazanin','Times New Roman',sans-serif;
	font-size: 13px;
	line-height: 1.9;
	color: #d8dee6;
}
.site-footer a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.2s ease;
}
.site-footer a:hover {
	color: #ffd54f;
}
.site-footer .legal-text {
	max-width: 1000px;
	margin: 10px auto;
	font-size: 12px;
	color: #aeb9c7;
}
.site-footer .footer-divider {
	width: 70%;
	margin: 15px auto;
	border: 0;
	border-top: 1px solid rgba(255,255,255,0.18);
}
.site-footer .founder-title {
	margin-right: 5px;
} */

/*
=========================================================
   Responsive - Large Tablets
========================================================= 
*/
@media (max-width: 1200px) {
	.phases-row {
		grid-template-columns: repeat(3,minmax(0,1fr));
	}
	.quick-access-row {
		grid-template-columns: repeat(5,minmax(0,1fr));
	}
}

/*
=========================================================
   Responsive - Tablets
========================================================= 
*/
@media (max-width: 992px) {
	.dashboard-layout {
		flex-direction: column;
	}
	.navigation-sidebar {
		width: 100%;
		flex: 0 0 auto;
		position: relative;
		top: auto;
		height: auto;
		max-height: none;
		order: 1;
	}
	.dashboard-content {
		order: 2;
		min-height: auto;
		padding: 20px;
	}
	.phases-row {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}
	.quick-access-row {
		grid-template-columns: repeat(4,minmax(0,1fr));
	}
}

/*
=========================================================
   Responsive - Mobile
========================================================= 
*/
@media (max-width: 600px) {
	.dashboard-content {
		padding: 15px;
	}
	.welcome-banner {
		min-height: 140px;
		padding: 15px;
	}
	.welcome-image img {
		max-height: 110px;
	}
	.phases-row {
		grid-template-columns: 1fr;
	}
	.phase-card {
		min-height: 280px;
	}
	.quick-access-row {
		grid-template-columns: repeat(2,minmax(0,1fr));
		padding: 12px;
	}
	.site-footer {
		padding: 20px 15px;
	}
	.site-footer .footer-divider {
		width: 90%;
	}
}

/*
=========================================================
   Reduced Motion
========================================================= 
*/
@media (prefers-reduced-motion: reduce) {
	.navigation-link,
	.logout-btn,
	.phase-card,
	.quick-access-item,
	.site-footer a {
		transition: none;
	}

/* Phase Card Links */
a.phase-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}
.phase-card .phase-icon img {
	display: block;
	width: 58px;
	height: 58px;
	object-fit: contain;
}
.phase-card .phase-card-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
	color: #B50E61;
	font-size: 13px;
	font-weight: bold;
}
/* Phase Introduction */
.phase-intro-content {
	height: auto;
	min-height: 100%;
}
.phase-intro-kicker {
	margin-bottom: 8px;
	color: #B50E61;
	font-size: 14px;
	font-weight: bold;
}
.phase-intro-lead {
	margin-top: 12px;
	color: #555;
	font-size: 16px;
	line-height: 2;
}
.phase-intro-images {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
	margin: 20px 0;
}
.phase-intro-images img {
	display: block;
	width: 100%;
	max-height: 260px;
	object-fit: cover;
	border-radius: 10px;
	background: #f0f2f5;
}
.phase-intro-details,
.phase-intro-sections {
	margin-top: 24px;
}
.phase-intro-details h3,
.phase-intro-sections h3 {
	margin-bottom: 12px;
	color: #0f1c2e;
	font-family: 'B Titr', sans-serif;
	font-size: 17px;
}
.phase-intro-details ul {
	padding-right: 24px;
}
.phase-intro-details li {
	margin-bottom: 8px;
	line-height: 1.9;
}
.phase-intro-page-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.phase-intro-page-list .phase-intro-page-list {
	margin: 5px 22px 10px 0;
	padding-right: 12px;
	border-right: 2px solid #e5e8ed;
}
.phase-intro-page-list li {
	margin-bottom: 6px;
}
.phase-intro-page-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 7px;
	background: #f4f6f9;
	color: #24364b;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}
.phase-intro-page-list a:hover {
	background: #e8edf4;
	color: #B50E61;
}
.phase-intro-page-list a i {
	color: #B50E61;
}
.phase-intro-no-access {
	color: #777;
	line-height: 1.9;
}
.phase-content-actions {
	display: flex;
	justify-content: flex-start;
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid #e5e8ed;
}
.dashboard-back-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 7px;
	background: #0f1c2e;
	color: #fff;
	text-decoration: none;
	transition: background 0.2s;
}
.dashboard-back-button:hover {
	background: #B50E61;
	color: #fff;
}
@media (max-width: 700px) {
	.phase-intro-images {
		grid-template-columns: 1fr;
	}
	.phase-intro-images img {
		max-height: 220px;
	}
}

}