:root {
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-6: 1.5rem;
	--space-8: 3rem;
	--space-12: 3rem;
	--font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
	--font-display: 'Outfit', var(--font-sans);
	--radius-sm: 6px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;
	--radius-full: 9999px;
	--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   BRAND PALETTE — sampled from assets/images/Empireone logo.png
     #7F3FFC  purple  : left of the E1 mark + the "CX" wordmark  (PRIMARY)
     #1C63F8  blue    : right of the E1 mark + the "One" wordmark (SECONDARY)
     #574EFA  indigo  : the midpoint the logo gradient passes through
     #09085F  navy    : the "Empire" wordmark
   Buttons and other primary surfaces use --brand-gradient, which is the
   logo's own purple -> blue sweep.
   ============================================================ */
:root {
	--brand-purple: #7F3FFC;
	--brand-blue: #1C63F8;
	--brand-indigo: #574EFA;
	--brand-navy: #09085F;

	--brand-purple-light: #9D6BFF;
	--brand-blue-light: #4C8DFF;
	--brand-purple-deep: #5B21D6;

	--brand-purple-rgb: 127, 63, 252;
	--brand-blue-rgb: 28, 99, 248;
	--brand-indigo-rgb: 87, 78, 250;

	--brand-gradient: linear-gradient(135deg, #7F3FFC 0%, #574EFA 50%, #1C63F8 100%);

	/* Legacy aliases: older rules still reference these names. */
	--brand-cyan: var(--brand-blue-light);
	--brand-violet: var(--brand-indigo);
	--brand-orange: var(--brand-purple);
	--brand-gold: var(--brand-blue);

	/* Status colours carry meaning, not brand — they stay independent. */
	--status-success: #22C55E;
	--status-warning: #F59E0B;
	--status-danger: #EF4444;
}

[data-theme="dark"] {

	/* Background — neutral dark, very slightly pulled toward the brand navy */
	--bg-base: #0A0B14;
	--bg-surface: #141625;
	--bg-card: rgb(26 27 44 / 44%);
	--bg-glass: rgba(20, 21, 38, 0.76);

	/* Header — deep navy glass, not the gradient: the logo mark is itself
	   purple->blue and would disappear against a matching wash. The brand
	   gradient shows as the accent line under the bar instead. */
	--header-glass: linear-gradient(180deg, rgba(26, 24, 52, 0.92) 0%, rgba(16, 16, 33, 0.88) 100%);

	/* Borders */
	--border-subtle: rgba(255,255,255,.08);
	--border-base: rgb(255 255 255 / 63%);
	--border-strong: rgba(255,255,255,.32);

	/* Text */
	--text-primary: #FFFFFF;
	--text-secondary: #F1F5F9;
	--text-muted: #CBD5E1;

	/* Shadows */
	--shadow-sm: 0 2px 8px rgba(0,0,0,.28);

	--shadow-glass:
		0 20px 60px rgba(0,0,0,.28);

	--shadow-glow:
		0 0 18px rgba(127, 63, 252,.20),
		0 0 35px rgba(87, 78, 250,.16),
		0 0 55px rgba(28, 99, 248,.12);

	--mesh-opacity: .08;
}

[data-theme="light"] {
	--bg-base: #FAFBFC;
	--bg-surface: #FAFBFC;
	--bg-card: #FFFFFF;
	--bg-glass: rgb(255 255 255 / 86%);
	--header-glass: rgb(255 255 255 / 86%);
	--border-subtle: rgba(0, 0, 0, 0.05);
	--border-base: rgba(0, 0, 0, 0.15);
	--border-strong: rgba(0, 0, 0, 0.25);
	--text-primary: #0F172A;
	--text-secondary: #020304;
	--text-muted: #3b4656;

	/* Deeper on light backgrounds so brand text/icons keep their contrast. */
	--brand-purple: #6D28D9;
	--brand-blue: #1D4ED8;
	--brand-purple-rgb: 109, 40, 217;
	--brand-blue-rgb: 29, 78, 216;

	--status-success: #059669;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
	--shadow-glow: 0 0 20px rgba(127, 63, 252, 0.10);
	--mesh-opacity: 0.15;
}

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-sans);
	background-color: var(--bg-base);
	background-image: none;
	color: var(--text-primary);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	overflow-x: hidden;
	position: relative;
	transition: background-color var(--transition-slow), color var(--transition-slow);
}

.wrapper {
	position: relative;
	z-index: 1;
}

[data-theme="dark"] body {
	background-image:
		radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.02), transparent 26%),
		linear-gradient(180deg, #06070F 0%, #080914 52%, #06070F 100%);
}

[data-theme="dark"] body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -3;
	background:
		radial-gradient(circle at 50% 42%, rgba(127, 63, 252, 0.06), transparent 0 26%),
		radial-gradient(circle at 78% 30%, rgba(28, 99, 248, 0.04), transparent 0 18%);
	filter: blur(20px);
	opacity: 0.35;
}

[data-theme="dark"] body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -2;
	background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
	background-size: 28px 28px;
	opacity: 0.1;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 92%);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0); /* Black icon */
  cursor: pointer;
}

.dark input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1); /* White icon */
}

[data-theme="dark"] .form-container{
	position:relative;
	overflow:hidden;

	background:
		linear-gradient(
			145deg,
			rgba(28,26,52,.88) 0%,
			rgba(21,20,40,.90) 50%,
			rgba(14,14,30,.94) 100%
		);

	border:1px solid rgba(255,255,255,.12);
	border-radius:var(--radius-xl);

	backdrop-filter:blur(30px) saturate(180%);
	-webkit-backdrop-filter:blur(30px) saturate(180%);

	box-shadow:
		inset 0 1px 0 rgba(255,255,255,.18),
		0 0 12px rgba(76, 141, 255,.08),
		0 0 18px rgba(90, 75, 250,.08),
		0 15px 35px rgba(0,0,0,.25);
}

/* Neon Gradient Border */
[data-theme="dark"] .form-container::before{
	content:"";
	position:absolute;
	inset:0;
	padding:1.5px;
	border-radius:inherit;
	background:linear-gradient(
		135deg,
		#7F3FFC,
		#574EFA,
		#1C63F8
	);

	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite:xor;
	mask-composite:exclude;

	pointer-events:none;
}

/* Glossy Reflection */
[data-theme="dark"] .form-container::after{
	content:"";
	position:absolute;
	top:0;
	left:-20%;
	width:140%;
	height:220px;

	background:linear-gradient(
		180deg,
		rgba(255,255,255,.22) 0%,
		rgba(255,255,255,.08) 18%,
		rgba(255,255,255,.03) 35%,
		transparent 100%
	);

	border-radius:inherit;

	filter:blur(2px);
	pointer-events:none;
}

.form-container > * {
	position: relative;
	z-index: 1;
}

.dark select option,
[data-theme="dark"] select option {
	background: #1E1F35 !important;
	color: #F8FAFC !important;
}

::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: rgba(127, 63, 252, 0.3);
	border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(127, 63, 252, 0.6);
}

::view-transition-old(root), ::view-transition-new(root) {
	animation: none;
	mix-blend-mode: normal;
}

::view-transition-old(root) {
	z-index: 1;
}

::view-transition-new(root) {
	z-index: 2;
}

.ambient-mesh {
	position: fixed;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

.mesh-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(100px);
	opacity: var(--mesh-opacity);
	animation: meshFloat 20s infinite alternate ease-in-out;
}

.blob-1 {
	top: -10%;
	left: -10%;
	width: 50vw;
	height: 50vw;
	background: var(--brand-purple);
}

.blob-2 {
	bottom: -10%;
	right: -10%;
	width: 60vw;
	height: 60vw;
	background: var(--brand-orange);
	animation-delay: -10s;
}

@keyframes meshFloat {
	0% {
		transform: translate(0, 0) scale(1);
	}

	100% {
		transform: translate(5%, 5%) scale(1.1);
	}
}

#particleCanvas {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	mix-blend-mode: screen;
	opacity: 1;
	filter: saturate(1.25) brightness(1.1);
}

.page-loader {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 26px;
	background: var(--bg-base);
	overflow: hidden;
}

/* Logo Container */
.loader-logo {
	position: relative;
	width: 160px;
	height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	animation: loaderPulse 2s ease-in-out infinite;
}

/* Rotating Border */
.loader-logo::before {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	background: var(--brand-gradient);
	animation: loaderRotate 2.5s linear infinite;
}

/* Inner Background */
.loader-logo::after {
	content: "";
	position: absolute;
	inset: 6px;
	border-radius: 50%;
	background: var(--bg-base);
}

/* LOGO */
.loader-logo img {
	position: relative;
	z-index: 2;
	width: 120px;
	height: 120px;
	object-fit: contain;
	border-radius: 50%;
	display: block;
}

/* Progress */
.loader-progress-container {
	width: 280px;
	height: 7px;
	background: var(--border-subtle);
	border-radius: 999px;
	overflow: hidden;
}

.loader-progress-bar {
	width: 0%;
	height: 100%;
	border-radius: 999px;
	background: var(--brand-gradient);
	box-shadow: 0 0 15px rgba(127, 63, 252,.45),
        0 0 30px rgba(28, 99, 248,.35);
}

#loaderPercentage {
	font-family: var(--font-display);
	font-size: 24px !important;
	font-weight: 700;
	color: var(--brand-purple);
}

/* Animation */

@keyframes loaderRotate {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

@keyframes loaderPulse {
	0%,100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.05);
	}
}

.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 100;
	margin: 0px 12px;
	padding: var(--space-4) var(--space-6);
	background: var(--header-glass);
	isolation: isolate;
	backdrop-filter: blur(24px) saturate(180%);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	border-bottom: 1px solid var(--border-subtle);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	box-shadow: var(--shadow-sm);
	opacity: 0;
 /* GSAP */;
}

/* Brand gradient accent line along the bottom of the header. */
.header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--brand-gradient);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	pointer-events: none;
}

.brand-icon {
	display: flex;
	align-items: center;
	gap: var(--space-4);
}

.brand-logo {
	display: block;
	height: 55px;
	width: auto;
	object-fit: contain;
	flex-shrink: 0;
}

.workgrid-logo {
	border-radius: 8px;
}

.brand-divider {
	width: 1px;
	height: 28px;
	background: var(--border-base);
	opacity: 0.8;
	flex-shrink: 0;
}

.icon-btn {
	background: transparent;
	border: 1px solid var(--border-base);
	color: var(--text-secondary);
	width: 40px;
	height: 40px;
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all var(--transition-fast);
}

.icon-btn:hover {
	color: var(--text-primary);
	border-color: var(--border-strong);
	background: rgba(255, 255, 255, 0.05);
 /* Softer hover match */;
}

.layout {
	max-width: 1000px;
	margin: 0 auto;
	padding: var(--space-8) var(--space-6);
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
}

.page-hero { text-align: center; display: flex; flex-direction: column; align-items: center; opacity: 0; }
.hero-logo-wrapper {margin-bottom: var(--space-6); display: flex; justify-content: center; }
.hero-logo-wrapper img { width: 18%;border-radius: 10px; height: 100%; object-fit: contain; }

.hero-title { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; margin-bottom: var(--space-2); color: var(--text-primary); }
.hero-subtitle { color: var(--text-secondary); font-size: 1rem; } 

.form-container {
	position: relative;
	overflow: hidden;
	background: var(--bg-glass);
	backdrop-filter: blur(24px) saturate(150%);
	-webkit-backdrop-filter: blur(24px) saturate(150%);
	border: 1px solid var(--border-base);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-glass);
	padding: var(--space-8);
	opacity: 0;
}

.section-title {
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
	color: var(--text-muted);
	margin-bottom: var(--space-6);
	display: flex;
	align-items: center;
	gap: var(--space-4);
}

.section-title::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--border-base);
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-6) var(--space-4);
}

@media (min-width: 768px) {
	.form-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.col-span-2 {
		grid-column: span 2;
	}
}

@media (max-width: 768px) {
	.hero-logo-wrapper img {
		width: 20%;
	}
}

@media (max-width: 425px) {
	.hero-logo-wrapper img {
		width: 31%;
	}

	.brand-logo {
		height: 50px;
	}

	.icon-btn {
		width: 35px;
    	height: 35px;
	}

	.section-title {
		font-size: 12px;
	}

	.form-actions{
		flex-direction: column !important;
	}
}

@media (max-width: 490px){
	.btn{
		padding: 10px 10px !important;
		font-size: 12px !important;
	}
}

.input-group {
	position: relative;
	display: flex;
	flex-direction: column;
	margin-top: 0.5rem;
}

.input-field {
	width: 100%;
	background: var(--bg-card);
	border: 1px solid var(--border-base);
	border-radius: var(--radius-md);
	padding: 0.875rem 3rem 0.875rem 1rem;
	height: 3.25rem;
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	color: var(--text-primary);
	transition: all var(--transition-fast);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover, 
.input-field:-webkit-autofill:focus, 
.input-field:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 30px var(--bg-card) inset !important;
	-webkit-text-fill-color: var(--text-primary) !important;
	transition: background-color 5000s ease-in-out 0s;
}

.input-field:hover:not(:disabled) {
	border-color: #7F3FFC;
} 

.input-field:focus {
	outline: none;
	border-color: var(--brand-purple);
	box-shadow: 0 0 0 2px rgba(127, 63, 252, 0.18), 0 0 20px rgba(28, 99, 248, 0.06);
}

.input-field[readonly] {
	opacity: 0.8;
	cursor: not-allowed;
	border-style: dashed;
}

/* Floating Labels */
.input-label {
	position: absolute;
	left: 0.85rem;
	top: 0.95rem;
	font-size: 0.9375rem;
	color: var(--text-muted);
	pointer-events: none;
	transition: all var(--transition-fast);
	transform-origin: left top;
	padding: 0 0.4rem;
}

.input-field:focus ~ .input-label,
.input-field:not(:placeholder-shown) ~ .input-label,
.input-field:-webkit-autofill ~ .input-label,
select.input-field:valid ~ .input-label,
input[type="date"].input-field:valid ~ .input-label {
	transform: translateY(-1.55rem) scale(0.85);
	color: var(--text-primary) !important;
	background: var(--bg-surface);
	border-radius: 4px;
	z-index: 10;
}

.input-field:not(:focus):not(:placeholder-shown) ~ .input-label {
	color: var(--text-secondary);
}

.input-icon {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	pointer-events: none;
}

select.input-field {
	appearance: none;
	cursor: pointer;
}
/* Style dropdown options to match premium look */
select.input-field option {
	background-color: var(--bg-card);
	color: var(--text-primary);
}
/* Date field fixes */
input[type="date"] {
	color: var(--text-secondary) !important;
	color-scheme: light;
}

input[type="date"]:focus,
input[type="date"]:valid {
	color: var(--text-primary) !important;
}

input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
	color: inherit;
}

/* Calendar Icon */
[data-theme="dark"] input[type="date"]{
	color-scheme: dark;
}

[data-theme="light"] input[type="date"]{
	color-scheme: light;
}

[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator{
	filter: brightness(0) invert(1);
	cursor: pointer;
	opacity: .9;
	transition: .3s ease;
}

[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator{
	filter: brightness(0);
	cursor: pointer;
	opacity: .85;
	transition: .3s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover{
	opacity: 1;
	transform: scale(1.08);
}

.form-actions {
	margin-top: var(--space-8);
	padding-top: var(--space-6);
	border-top: 1px solid var(--border-base);
	display: flex;
	justify-content: flex-end;
	gap: var(--space-4);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: 0.75rem 1.5rem;
	font-size: 0.9375rem;
	font-weight: 500;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: all var(--transition-fast);
	border: none;
	font-family: var(--font-sans);
}

.btn-ghost {
	background: var(--bg-glass);
	color: var(--text-primary);
	border: 1px solid var(--border-base);
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.08);
}

.btn-primary {
	background: var(--brand-gradient);
	color: white;
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 0 0 1px rgb(255 255 255 / 0%) inset, -1px 7px 20px 3px rgba(127, 63, 252, 0.22), 0 0 28px rgba(28, 99, 248, 0.18);
}

/* SweetAlert2 theme polish */
.swal2-container {
	z-index: 100000 !important;
}

.swal2-container.swal2-backdrop-show {
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .swal2-popup,
.carbon .swal2-popup,
html.carbon .swal2-popup,
body.carbon .swal2-popup {
	background:
		linear-gradient(145deg, rgba(28, 26, 52, 0.96) 0%, rgba(15, 15, 32, 0.98) 100%);
	color: var(--text-primary);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.12),
		0 25px 80px rgba(0, 0, 0, 0.45),
		0 0 28px rgba(76, 141, 255, 0.12);
	border-radius: 22px !important;
	padding: 1.5rem 1.5rem 1.35rem !important;
	backdrop-filter: blur(28px) saturate(160%);
	-webkit-backdrop-filter: blur(28px) saturate(160%);
}

[data-theme="light"] .swal2-popup {
	background: rgba(255, 255, 255, 0.94);
	color: var(--text-primary);
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow:
		0 18px 45px rgba(15, 23, 42, 0.12),
		0 0 0 1px rgba(255, 255, 255, 0.7) inset;
	border-radius: 22px !important;
	padding: 1.5rem 1.5rem 1.35rem !important;
	backdrop-filter: blur(24px) saturate(160%);
	-webkit-backdrop-filter: blur(24px) saturate(160%);
}

.swal2-popup {
	animation: workgridSwalIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.swal2-title {
	font-family: var(--font-display) !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
	color: inherit !important;
}

.swal2-html-container {
	margin: 0.5rem 0 0 !important;
	color: inherit !important;
	font-family: var(--font-sans) !important;
	font-size: 0.98rem !important;
	line-height: 1.65 !important;
}

.swal2-actions {
	gap: 0.75rem !important;
	margin-top: 1.35rem !important;
}

.swal2-styled {
	border-radius: var(--radius-md) !important;
	padding: 0.78rem 1.25rem !important;
	font-family: var(--font-sans) !important;
	font-weight: 600 !important;
	box-shadow: none !important;
	transition: all var(--transition-fast) !important;
}

.swal2-confirm {
	background: var(--brand-gradient) !important;
	color: #ffffff !important;
	border: 0 !important;
}

.swal2-confirm:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(28, 99, 248, 0.22);
}

.swal2-cancel {
	background: transparent !important;
	color: var(--text-primary) !important;
	border: 1px solid var(--border-base) !important;
}

.swal2-cancel:hover {
	background: rgba(255, 255, 255, 0.06) !important;
	border-color: var(--border-strong) !important;
}

.swal2-close {
	color: var(--text-muted) !important;
	box-shadow: none !important;
}

.swal2-close:hover {
	color: var(--text-primary) !important;
}

.swal2-icon {
	margin: 0.5rem auto 1rem !important;
}

.swal2-icon.swal2-success {
	color: #22c55e !important;
	border-color: rgba(34, 197, 94, 0.28) !important;
	background: transparent !important;
	box-shadow: 0 0 0 0.18rem rgba(34, 197, 94, 0.08) inset;
}

.swal2-icon.swal2-success .swal2-success-ring {
	border-color: currentColor !important;
}

.swal2-icon.swal2-success .swal2-success-line-tip,
.swal2-icon.swal2-success .swal2-success-line-long {
	background-color: currentColor !important;
	box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.swal2-icon.swal2-error {
	color: #ef4444 !important;
}

.swal2-icon.swal2-error .swal2-x-mark-line-left,
.swal2-icon.swal2-error .swal2-x-mark-line-right {
	background-color: currentColor !important;
	box-shadow: 0 0 12px rgba(239, 68, 68, 0.18);
}

.swal2-icon.swal2-warning,
.swal2-icon.swal2-info {
	background: transparent !important;
}

.swal2-icon.swal2-warning {
	color: #f59e0b !important;
	border-color: rgba(245, 158, 11, 0.28) !important;
}

.swal2-icon.swal2-warning .swal2-icon-content {
	color: currentColor !important;
	text-shadow: 0 0 12px rgba(245, 158, 11, 0.18);
}

.swal2-icon.swal2-info {
	color: #1C63F8 !important;
	border-color: rgba(28, 99, 248, 0.28) !important;
}

.swal2-icon.swal2-info .swal2-icon-content {
	color: currentColor !important;
	text-shadow: 0 0 12px rgba(28, 99, 248, 0.18);
}

.swal2-timer-progress-bar {
	background: var(--brand-gradient) !important;
}

@keyframes workgridSwalIn {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}
/* ============================================================
   HEADER NAVIGATION
   The dashboard has its own sidebar; every page built on
   inc/header.php uses this instead. Agents never see the
   dashboard, so this is their only way around.
   ============================================================ */
.wg-nav {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	flex: 1;
	justify-content: center;
	min-width: 0;
}

.wg-nav-mobile {
	display: none;
}

.wg-nav-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 0.8rem;
	border-radius: var(--radius-md);
	border: 1px solid transparent;
	color: var(--text-secondary);
	font-family: var(--font-sans);
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	transition: all var(--transition-fast);
}

.wg-nav-link i {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.wg-nav-link:hover {
	color: var(--text-primary);
	border-color: var(--border-base);
	background: rgba(var(--brand-purple-rgb), 0.08);
}

.wg-nav-link.is-active {
	color: #fff;
	background: var(--brand-gradient);
	border-color: transparent;
	box-shadow: 0 4px 14px -6px rgba(var(--brand-purple-rgb), 0.9);
}

.wg-nav-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: rgba(245, 158, 11, 0.18);
	border: 1px solid rgba(245, 158, 11, 0.4);
	color: var(--status-warning);
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1;
}

/* On the active pill the amber-on-purple badge loses contrast. */
.wg-nav-link.is-active .wg-nav-badge {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.45);
	color: #fff;
}

.wg-header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.wg-logout {
	text-decoration: none;
}

.wg-logout:hover {
	color: var(--status-danger);
	border-color: rgba(239, 68, 68, 0.5);
	background: rgba(239, 68, 68, 0.08);
}

/* Below this the links stop fitting beside the logo, so they move to their own
   scrolling strip under the header rather than wrapping it to two rows. */
@media (max-width: 1100px) {
	.wg-nav {
		display: none;
	}

	.wg-nav-mobile {
		display: flex;
		align-items: center;
		gap: 0.35rem;
		margin: 0.6rem 12px 0;
		padding: 0.5rem 0.6rem;
		border-radius: var(--radius-lg);
		border: 1px solid var(--border-subtle);
		background: var(--header-glass);
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.wg-nav-mobile::-webkit-scrollbar {
		display: none;
	}
}
