@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* =====================================================
   ERROR PAGES - NEW DESIGN TEMPLATE
   ===================================================== */

* {
	box-sizing: border-box;
}

/* Error Page Container - styled like box-company-info */
.error-page {
	background-color: #ffffff !important;
	border-radius: 32px !important;
	box-shadow: 0px 2px 11.2px 0px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 50px 50px 50px;
	text-align: center;
	margin-top: 40px;
	margin-bottom: 40px;
}

@media(max-width: 599px) {
	.error-page {
		padding: 30px;
	}
}

/* Triangle Warning Icon */
.error-icon {
	margin-bottom: 40px;
}

.error-icon svg {
	width: 100px;
	height: 100px;
}

.error-icon-triangle {
	fill: #5051af;
	opacity: 0.15;
}

.error-icon-exclamation {
	fill: #5051af;
}

/* Error Title */
.error-title {
	font-size: clamp(28px, 5vw, 48px);
	font-weight: 800;
	color: #2d2d3d;
	margin: 0 0 20px 0;
	line-height: 1.2;
	max-width: 600px;
}

/* Error Description */
.error-description {
	font-size: 16px;
	font-weight: 400;
	color: #626071;
	line-height: 1.6;
	max-width: 550px;
	margin: 0 0 20px 0;
}

.error-description strong {
	font-weight: 600;
	color: #2d2d3d;
}

/* Info Box */
.error-info-box {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #f0f0f8;
	border-radius: 8px;
	padding: 12px 20px;
	margin-bottom: 30px;
	font-size: 14px;
	color: #626071;
}

.error-info-box i {
	color: #5051af;
}

.error-info-box a {
	color: #5051af;
	text-decoration: none;
	font-weight: 500;
}

.error-info-box a:hover {
	text-decoration: underline;
}

/* Primary Button */
.btn-error-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #5051af !important;
	color: #ffffff !important;
	border: none;
	border-radius: 8px;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
	margin-bottom: 16px;
}

.btn-error-primary:hover {
	background: #3d3e8a !important;
	color: #ffffff !important;
	text-decoration: none;
	transform: translateY(-1px);
}

.btn-error-primary:active {
	transform: translateY(0);
}

/* Secondary Link */
.btn-error-secondary {
	display: inline-block;
	color: #626071;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	padding: 8px 16px;
	transition: color 0.2s ease;
}

.btn-error-secondary:hover {
	color: #5051af;
	text-decoration: underline;
}

/* Legacy support classes for old pages */
#new-error-page {
	background: #f8f9fc;
	color: black;
	position: fixed !important;
	position: absolute;
	text-align: center;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
}

#error-page {
	background: #f8f9fc;
	position: fixed !important;
	position: absolute;
	text-align: center;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
}

#error-inner {
	margin: auto;
}

/* Headings */
h1 {
	font-size: clamp(28px, 5vw, 48px) !important;
	font-weight: 800 !important;
	color: #2d2d3d;
	margin: 0 0 20px 0;
}

h2 {
	font-size: clamp(22px, 4vw, 36px) !important;
	font-weight: 700 !important;
	color: #2d2d3d;
}

.title {
	text-align: center;
	padding: 20px 0;
}

.subtitle {
	font-size: 16px;
	font-weight: 400;
	color: #626071;
	text-align: center;
	padding: 0 0 20px 0;
}

p {
	font-size: 16px;
	font-weight: 400;
	color: #626071;
	line-height: 1.6;
}

/* Update Button */
.update {
	border-radius: 8px;
	color: white;
	padding: 14px 32px;
	border-color: #5051af;
	background-color: #5051af;
	border-width: 0px;
	margin-top: 20px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.update:hover {
	background-color: #3d3e8a;
}

.positionI {
	margin-left: 12px;
}

/* Back Button (legacy) */
.back-button {
	background: transparent;
	border: 0;
	color: #5051af;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	padding: 8px 16px;
}

.back-button:hover {
	color: #3d3e8a;
	text-decoration: underline;
}

a,
button {
	outline: none !important;
}

/* Responsive */
@media (max-width: 768px) {
	.error-page {
		padding: 30px 15px;
	}

	.error-title {
		font-size: 28px;
	}

	.error-description {
		font-size: 15px;
	}

	.error-icon svg {
		width: 80px;
		height: 80px;
	}

	.btn-error-primary {
		padding: 12px 24px;
		font-size: 15px;
	}
}