@charset "UTF-8";
/* ═══ RESET ═══ */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	height: 100%;
	font-family: 'Source Sans 3', sans-serif;
	background: #0e1525;
	overflow: hidden;
}

/* ═══ PAGE SHELL ═══ */
.erp-page {
	display: flex;
	height: 100vh;
	width: 100%;
	overflow: hidden;
}

/* ═══════════════════════════════════════
   SIDEBAR — identical to index.jsp
═══════════════════════════════════════ */
.erp-sidebar {
	width: 280px;
	flex-shrink: 0;
	background: linear-gradient(175deg, #1A2340 0%, #1E2A4A 60%, #243055 100%);
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	z-index: 10;
	box-shadow: 4px 0 30px rgba(0, 0, 0, 0.45);
}

.erp-sidebar::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 2px;
	height: 100%;
	background: linear-gradient(180deg, transparent, rgba(201, 162, 39, 0.45),
		transparent);
}

/* ═══════════════════════════════════════
   MAIN — background image + overlay
═══════════════════════════════════════ */
.erp-main {
	flex: 1;
	min-width: 0;
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-image: url('../images/pdea1img.png');
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.bg-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(10, 18, 38, 0.62);
}

/* ═══════════════════════════════════════
   MAIN CONTENT — full height utilization
═══════════════════════════════════════ */
.dash-scroll {
	position: relative;
	z-index: 2;
	flex: 1;
	overflow: hidden;
	padding: 20px 25px;
	display: flex;
	flex-direction: column;
}

/* ═══════════════════════════════════════
   PORTALS WRAP — stretches to fill full height
═══════════════════════════════════════ */
.portals-wrap {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Section styling - each takes equal height */
.portal-section {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0; /* Prevents flex overflow */
}

.portal-section-label {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 12px;
	text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
	letter-spacing: 0.3px;
	position: relative;
	padding-left: 14px;
	text-transform: uppercase;
}

.portal-section-label::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 18px;
	background: linear-gradient(180deg, #FFD87A, #C99F27);
	border-radius: 4px;
	box-shadow: 0 0 10px rgba(255, 216, 122, 0.5);
}

/* ═══════════════════════════════════════
   FULL HEIGHT CARDS — each row takes equal space
═══════════════════════════════════════ */
.portal-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	flex: 1;
	min-height: 0;
}

/* Cards that stretch to fill available height */
.portal-tile {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px;
	border-radius: 16px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	text-decoration: none;
	transition: all 0.3s ease;
	border: none;
	outline: none;
	width: 100%;
	height: 100%;
	user-select: none;
	box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.5);
}

/* Full height gradient background */
.portal-tile::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.2)
		0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
	z-index: 1;
}

/* Shine effect */
.portal-tile::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2),
		transparent);
	transition: left 0.6s ease;
	pointer-events: none;
	z-index: 2;
}

.portal-tile:hover::before {
	opacity: 1;
}

.portal-tile:hover::after {
	left: 100%;
}

.portal-tile:hover {
	transform: translateY(-5px) scale(1.02);
	box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.7);
}

.portal-tile:active {
	transform: translateY(-2px) scale(0.99);
}

/* Icon - centered in full height card */
.tile-ico {
	width: 60px;
	height: 60px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(5px);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.3s ease;
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	margin-bottom: 15px;
	position: relative;
	z-index: 5;
	box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.4);
}

.portal-tile:hover .tile-ico {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.05) rotate(3deg);
	border-color: rgba(255, 255, 255, 0.6);
}

.tile-ico svg {
	width: 28px;
	height: 28px;
	stroke: #fff;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Content area - expands in full height card */
.tile-content {
	position: relative;
	z-index: 5;
	width: 100%;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.tile-lbl {
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
	margin-bottom: 6px;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.tile-sub {
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
	line-height: 1.4;
	margin-bottom: 15px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Launch button */
.tile-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 20px;
	background: rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 40px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	width: fit-content;
	margin-top: auto;
}

.portal-tile:hover .tile-chip {
	background: rgba(255, 255, 255, 0.3);
	gap: 12px;
	padding: 8px 24px;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.tile-chip svg {
	width: 12px;
	height: 12px;
	stroke: #fff;
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.3s ease;
}

.portal-tile:hover .tile-chip svg {
	transform: translateX(4px);
}

/* ═══════════════════════════════════════
   BOLD COLOUR VARIANTS — full saturation
═══════════════════════════════════════ */
.pc-blue {
	background: linear-gradient(145deg, #1E3A8A, #2563EB, #38BDF8);
}

.pc-teal {
	background: linear-gradient(145deg, #115E59, #0D9488, #2DD4BF);
}

.pc-indigo {
	background: linear-gradient(145deg, #312E81, #4F46E5, #818CF8);
}

.pc-amber {
	background: linear-gradient(145deg, #854D0E, #D97706, #FBBF24);
}

.pc-purple {
	background: linear-gradient(145deg, #581C87, #7E22CE, #C084FC);
}

.pc-cyan {
	background: linear-gradient(145deg, #155E75, #0891B2, #67E8F9);
}

/* ═══════════════════════════════════════
   RESPONSIVE — maintains full height on mobile
═══════════════════════════════════════ */
@media ( max-width : 960px) {
	html, body {
		overflow: auto;
	}
	.erp-page {
		flex-direction: column;
		height: auto;
		min-height: 100vh;
	}
	.erp-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: 280px;
		transform: translateX(-100%);
		transition: transform .32s ease;
		z-index: 100;
	}
	.erp-sidebar.open {
		transform: translateX(0);
	}
	.sb-overlay.open {
		display: block;
	}
	.sb-toggle {
		display: flex;
	}
	.erp-main {
		min-height: 100vh;
	}
	.dash-scroll {
		padding: 80px 20px 20px;
		overflow-y: auto;
	}
	.portals-wrap {
		height: auto;
		gap: 25px;
	}
	.portal-section {
		flex: none;
		height: auto;
	}
	.portal-row {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	.portal-tile {
		min-height: 180px;
	}
}