/* CursorAI refreshed theme matching teal logo */

:root {

	--brand-primary: #64a7a6;

	--brand-accent: #7adcc9;

	--brand-deep: #15363f;

	--brand-darker: #0b2228;

	--surface: rgba(22, 55, 63, 0.92);

	--surface-elevated: rgba(27, 67, 74, 0.94);

	--surface-border: rgba(122, 220, 201, 0.28);

	--surface-border-strong: rgba(122, 220, 201, 0.45);

	--text-main: #f2fbf8;

	--text-muted: #9ec9c1;

	--shadow-soft: 0 32px 60px rgba(3, 15, 21, 0.55);

	--radius-lg: 20px;

	--radius-md: 14px;

}



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

html { -webkit-text-size-adjust: 100%; }

body {

	margin: 0;

	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

	color: var(--text-main);

	background: #06161c;

	min-height: 100vh;

	line-height: 1.5;

	position: relative;

	overflow-x: hidden;

}



.bg {

	position: fixed;

	inset: 0;

	background:

		radial-gradient(620px 420px at 10% -10%, rgba(122, 220, 201, 0.35), transparent 60%),

		radial-gradient(680px 480px at 90% 0%, rgba(74, 158, 149, 0.28), transparent 60%),

		radial-gradient(800px 520px at 50% 120%, rgba(35, 92, 102, 0.35), transparent 65%),

		linear-gradient(170deg, #07181f 0%, #0e252b 45%, #143742 100%);

	filter: saturate(1.08) contrast(1.02);

	pointer-events: none;

	z-index: 0;

}



.container {

	position: relative;

	display: grid;

	place-items: center;

	min-height: 100vh;

	padding: 36px 20px;

	z-index: 1;

}



.card {

	position: relative;

	width: 100%;

	max-width: 480px;

	background: var(--surface);

	border: 1px solid var(--surface-border);

	border-radius: var(--radius-lg);

	box-shadow: var(--shadow-soft);

	padding: 34px 32px;

	overflow: hidden;

	backdrop-filter: blur(14px);

	animation: floatIn .55s ease both;

}

.card::before {

	content: '';

	position: absolute;

	top: -30%;

	right: -25%;

	width: 320px;

	height: 320px;

	background: radial-gradient(circle, rgba(122, 220, 201, 0.28) 0%, transparent 65%);

	z-index: -1;

	transform: rotate(-12deg);

}

.card::after {

	content: '';

	position: absolute;

	bottom: -35%;

	left: -30%;

	width: 260px;

	height: 260px;

	background: radial-gradient(circle, rgba(100, 167, 166, 0.22) 0%, transparent 65%);

	z-index: -1;

}



.card-header { margin-bottom: 24px; }

.brand { display: flex; align-items: center; gap: 16px; }

.header-center { text-align: center; }

.text-center { text-align: center; }

.hero-logo { width: 220px; margin: 0 auto 20px; }

.hero-logo img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35)); }

.logo {

	width: 62px;

	height: 62px;

	display: grid;

	place-items: center;

	border-radius: 20px;

	background: linear-gradient(135deg, rgba(122, 220, 201, 0.85) 0%, rgba(100, 167, 166, 0.95) 100%);

	color: var(--brand-deep);

	font-weight: 600;

	letter-spacing: 1px;

	box-shadow: 0 18px 28px rgba(3, 35, 40, 0.35);

}

.brand-text h1 { margin: 0; font-size: 23px; color: #e8fbf6; text-transform: uppercase;}

.brand-text p { margin: 6px 0 0; color: var(--text-muted); font-size: 14px; }



.alert {

	padding: 14px 16px;

	border-radius: var(--radius-md);

	margin: 14px 0;

	font-size: 14px;

	border: 1px solid transparent;

	background: rgba(7, 22, 28, 0.4);

}

.alert-error {

	background: rgba(191, 70, 70, 0.14);

	color: #ffb0a9;

	border-color: rgba(255, 120, 120, 0.35);

}

.alert-success {

	background: rgba(76, 188, 160, 0.16);

	color: #b4f4e4;

	border-color: rgba(122, 220, 201, 0.35);

}



.form { display: grid; gap: 18px; }

.field label { display: block; color: #d5f3eb; font-size: 13px; margin-bottom: 6px; font-weight: 600; }

.input-wrap {

	position: relative;

	transition: transform .25s ease;

}



.input-wrap::before {

	content: '' '';

	position: absolute;

	inset: -2px;

	border-radius: 18px;

	background: radial-gradient(circle at 20% 20%, rgba(122, 220, 201, 0.25), transparent 55%),

		rgba(14, 37, 43, 0.35);

	opacity: 0;

	transform: scale(0.96);

	transition: opacity .25s ease, transform .25s ease;

	filter: blur(0.5px);

	pointer-events: none;

	z-index: 0;

}



.input-wrap:focus-within::before {

	opacity: 0.9;

	transform: scale(1);

}



.input-wrap:focus-within {

	transform: translateY(-1px);

}

.input-wrap input {

	width: 100%;

	background: rgba(11, 31, 34, 0.65);

	border: 1px solid rgba(122, 220, 201, 0.28);

	border-radius: 16px;

	color: var(--text-main);

	padding: 14px 48px 14px 46px;

	outline: none;

	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;

	box-shadow: inset 0 1px 2px rgba(3, 12, 16, 0.4);

}

.input-wrap input::placeholder { color: rgba(203, 240, 234, 0.4); }

.input-wrap input:-webkit-autofill,

.input-wrap input:-webkit-autofill:hover,

.input-wrap input:-webkit-autofill:focus,

.input-wrap input:-webkit-autofill:active {

	box-shadow: 0 0 0 1000px rgba(17, 46, 51, 0.85) inset;

	border-color: var(--surface-border-strong);

	-webkit-text-fill-color: #e8fbf6;

	caret-color: #abf0e1;

	transition: box-shadow .4s ease, border-color .3s ease;

}



.input-wrap input::selection {

	background: rgba(122, 220, 201, 0.28);

	color: #e8fbf6;

}

.input-wrap .icon {

	position: absolute;

	left: 18px;

	top: 50%;

	transform: translateY(-50%);

	display: flex;

	align-items: center;

	justify-content: center;

	width: 24px;

	height: 24px;

	color: rgba(203, 240, 234, 0.75);

	transition: color .25s ease, transform .25s ease;

	z-index: 1;

}



.input-wrap .icon svg {

	width: 20px;

	height: 20px;

	stroke: currentColor;

	stroke-width: 1.6;

	fill: none;

}



.input-wrap .icon svg path,

.input-wrap .icon svg circle {

	stroke-linecap: round;

	stroke-linejoin: round;

}.input-wrap input {

	position: relative;

	z-index: 1;

}



.input-wrap .toggle-pass {

	position: absolute;

	right: 12px;

	top: 50%;

	transform: translateY(-50%);

	background: transparent;

	border: 0;

	cursor: pointer;

	display: flex;

	align-items: center;

	justify-content: center;

	padding: 0;

	width: 40px;

	height: 40px;

	color: rgba(203, 240, 234, 0.65);

	transition: color .25s ease, transform .25s ease;

	z-index: 1;

}



.input-wrap .toggle-pass:hover,

.input-wrap .toggle-pass:focus-visible {

	color: #ffffff;

	outline: none;

}



.input-wrap .toggle-pass svg {

	width: 22px;

	height: 22px;

	stroke: currentColor;

	stroke-width: 1.5;

	fill: none;

	pointer-events: none;

	stroke-linecap: round;

	stroke-linejoin: round;

}






.input-wrap:focus-within .icon,

.input-wrap:hover .icon {

	color: #abf0e1;

	transform: translateY(-50%) scale(1.08);

}



.input-wrap:focus-within .toggle-pass,

.input-wrap:hover .toggle-pass {

	color: #abf0e1;

}



.input-wrap .toggle-pass:hover,

.input-wrap .toggle-pass:focus-visible {

	color: #ffffff;

	outline: none;

}



.input-wrap .toggle-pass svg {

	width: 22px;

	height: 22px;

	stroke: currentColor;

	stroke-width: 1.5;

	fill: none;

	pointer-events: none;

	stroke-linecap: round;

	stroke-linejoin: round;

}






.actions {

	display: flex;

	flex-direction: column;

	align-items: center;

	justify-content: center;

	gap: 14px;

	margin-top: 12px;

}


/* Ensure the forgotten link centers within actions on all viewports */
.actions .link { text-align: center; display: block; }






.btn {

	appearance: none;

	border: 0;

	border-radius: 18px;

	padding: 13px 24px;

	cursor: pointer;

	font-weight: 600;

	font-size: 15px;

	transition: transform .08s ease, box-shadow .25s ease, filter .2s ease;

	box-shadow: 0 20px 35px rgba(8, 24, 30, 0.4);

}

.btn-primary {

	background: linear-gradient(135deg, #64a7a6 0%, #7adcc9 48%, #5fb9ad 100%);

	color: #052729;

}

.btn-primary:hover {

	filter: brightness(1.05);

	transform: translateY(-1px);

	box-shadow: 0 24px 44px rgba(6, 20, 25, 0.55);

}

.btn-primary:active { transform: translateY(1px); filter: brightness(0.98); }



.link {

	color: #abf0e1;

	text-decoration: none;

	font-size: 14px;

	font-weight: 500;

	transition: color .2s ease;

}

.link:hover { color: #ffffff; }



.hint {

	color: var(--text-muted);

	font-size: 13px;

	margin-top: 14px;

	text-align: right;

}

.hint-left { text-align: left; }

.visually-hidden {

	position: absolute;

	width: 1px;

	height: 1px;

	padding: 0;

	margin: -1px;

	overflow: hidden;

	clip: rect(0, 0, 0, 0);

	white-space: nowrap;

	border: 0;

}



.dashboard-card { max-width: 992px; }

.dashboard-header {

	display: flex;

	flex-wrap: wrap;

	align-items: center;

	justify-content: space-between;

	gap: 18px;

	margin-bottom: 28px;

}

.dashboard-brand p { margin: 6px 0 0; }



.stats-grid {

	display: grid;

	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));

	gap: 20px;

}

.stat-card {

	background: linear-gradient(145deg, rgba(27, 67, 74, 0.92) 0%, rgba(17, 42, 49, 0.92) 100%);

	border: 1px solid rgba(122, 220, 201, 0.24);

	border-radius: var(--radius-md);

	padding: 20px 22px;

	box-shadow: 0 22px 38px rgba(3, 15, 21, 0.4);

	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;

}

.stat-card:hover {

	transform: translateY(-6px);

	box-shadow: 0 30px 48px rgba(3, 15, 21, 0.55);

	border-color: rgba(122, 220, 201, 0.4);

}

.stat-card p {

	color: rgba(210, 244, 238, 0.64);

	margin: 0;

	font-weight: 500;

	letter-spacing: 0.3px;

}

.stat-card h2 {

	color: #e8fbf6;

	margin: 12px 0 0;

	font-size: 30px;

	letter-spacing: 0.4px;

}



@keyframes floatIn {

	from { opacity: 0; transform: translateY(12px) scale(.98); }

	to { opacity: 1; transform: translateY(0) scale(1); }

}



@media (max-width: 600px) {

	.card { padding: 26px 22px; border-radius: 18px; }

	.brand-text h1 { font-size: 21px; }

	.logo { width: 54px; height: 54px; border-radius: 18px; }

	.hero-logo { width: 180px; }

	.actions { flex-direction: column; align-items: center; }

	.actions .btn { display: block; width: 100%; max-width: none; margin: 0; }

	.actions .link { width: 100%; margin: 0; text-align: center; }

	.hint { text-align: center; }

}














































































/* Dashboard layout */

.dashboard-body {

	margin: 0;

	background: linear-gradient(170deg, #07181f 0%, #0e252b 45%, #143742 100%);

	color: var(--text-main);

	font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

}



.dashboard-layout {

	display: flex;

	min-height: 100vh;

	background: transparent;

}



.dashboard-sidebar {

	width: 264px;

	background: rgba(11, 31, 34, 0.92);

	border-right: 1px solid rgba(122, 220, 201, 0.2);

	box-shadow: 0 24px 48px rgba(3, 15, 21, 0.5);

	overflow: visible;

	display: flex;

	flex-direction: column;

	padding: 20px 18px;

	gap: 4px;

}



.sidebar-brand {

	display: flex;

	align-items: center;

	gap: 12px;

	margin-bottom: 18px;

}



.brand-logo {

	width: 54px;

	height: 54px;

	border-radius: 18px;

	background: linear-gradient(135deg, rgba(122, 220, 201, 0.35), rgba(18, 52, 59, 0.9));

	display: grid;

	place-items: center;

	padding: 8px;

	box-shadow: inset 0 0 0 1px rgba(122, 220, 201, 0.25);

}



.brand-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35)); }



.brand-meta h2 { margin: 0; font-size: 20px; letter-spacing: .4px; color: #eafcf5; }

.brand-meta p { margin: 4px 0 0; font-size: 12px; color: rgba(232, 251, 246, 0.62); }



.nav-heading {

	font-size: 11px;

	text-transform: uppercase;

	letter-spacing: 1.6px;

	color: rgba(232, 251, 246, 0.45);

	margin: 16px 0 8px;

}



.sidebar-nav ul,

.sidebar-footer ul {

	list-style: none;

	padding: 0;

	display: grid;

	gap: 6px;

}



.sidebar-nav li,
.sidebar-footer li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 16px;
	cursor: pointer;
	font-size: 14px;
	color: rgba(232, 251, 246, 0.78);
	background: rgba(11, 31, 34, 0.48);
	border: 1px solid rgba(122, 220, 201, 0.16);
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}



.sidebar-nav li:hover,

.sidebar-footer li:hover {

	background: rgba(100, 167, 166, 0.16);

	border-color: rgba(122, 220, 201, 0.28);

	color: rgba(242, 251, 248, 0.92);

}

.sidebar-nav li.active,

.sidebar-footer li.active {

	background: linear-gradient(150deg, rgba(122, 220, 201, 0.32), rgba(84, 181, 173, 0.58));

	border-color: rgba(122, 220, 201, 0.45);

	color: #f2fbf8;

	box-shadow: 0 8px 22px rgba(7, 36, 41, 0.35);

}

.sidebar-nav li.has-submenu,
.sidebar-footer li.has-submenu {
	position: relative;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	background: transparent;
	border: none;
	cursor: default;
}



.sidebar-nav li.has-submenu:hover,
.sidebar-footer li.has-submenu:hover {
	background: transparent;
	border: none;
	color: inherit;
	box-shadow: none;
}

.sidebar-nav li.has-submenu.active,
.sidebar-footer li.has-submenu.active {
	background: transparent;
	border: none;
	color: inherit;
	box-shadow: none;
}



.sidebar-nav li.has-submenu .submenu-trigger,
.sidebar-footer li.has-submenu .submenu-trigger {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 16px;
	color: rgba(232, 251, 246, 0.78);
	background: rgba(11, 31, 34, 0.48);
	border: 1px solid rgba(122, 220, 201, 0.16);
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}



.sidebar-nav li.has-submenu .submenu-trigger:focus-visible,

.sidebar-footer li.has-submenu .submenu-trigger:focus-visible {

	outline: 2px solid rgba(122, 220, 201, 0.6);

	outline-offset: 2px;

}



.sidebar-nav li.has-submenu .nav-caret {

	margin-left: auto;

	display: inline-flex;

	align-items: center;

	justify-content: center;

	width: 18px;

	height: 18px;

	opacity: 0.58;

	transition: transform .25s ease, opacity .2s ease;

}



.sidebar-nav li.has-submenu .nav-caret svg {

	width: 14px;

	height: 14px;

	stroke: currentColor;

	stroke-width: 1.6;

	fill: none;

	stroke-linecap: round;

	stroke-linejoin: round;

}



.sidebar-nav li.has-submenu .submenu-trigger:hover,
.sidebar-footer li.has-submenu .submenu-trigger:hover {
	background: rgba(100, 167, 166, 0.16);
	border-color: rgba(122, 220, 201, 0.28);
	color: rgba(242, 251, 248, 0.92);
}




.sidebar-nav li.has-submenu.submenu-open .nav-caret {

	transform: rotate(180deg);

	opacity: 0.85;

}



.sidebar-nav li.has-submenu.active .submenu-trigger,
.sidebar-footer li.has-submenu.active .submenu-trigger {
	background: linear-gradient(150deg, rgba(122, 220, 201, 0.32), rgba(84, 181, 173, 0.58));
	border-color: rgba(122, 220, 201, 0.45);
	color: #f2fbf8;
	box-shadow: 0 8px 22px rgba(7, 36, 41, 0.35);
}



.sidebar-nav li.has-submenu .submenu {

	position: absolute;

	top: 0;

	left: 100%;
	margin-left: 26px;

	transform: translateY(-4px) scale(0.96);

	transform-origin: left top;

	list-style: none;

	padding: 12px 14px;

	display: grid;

	gap: 6px;

	justify-items: stretch;

	align-items: start;

	width: 220px;

	min-width: 220px;

	max-width: 220px;

	max-height: 0;

	overflow: hidden;

	opacity: 0;

	pointer-events: none;

	transition: max-height .25s ease, opacity .2s ease, transform .2s ease;

	background: rgba(8, 30, 35, 0.92);

	border: 1px solid rgba(122, 220, 201, 0.2);

	border-radius: 16px;

	box-shadow: 0 16px 32px rgba(3, 12, 18, 0.38);

	z-index: 12;

}

.sidebar-nav li.has-submenu.submenu-open .submenu {

	max-height: 1000px;

	opacity: 1;

	pointer-events: auto;

	transform: translateY(0) scale(1);

}



.submenu li {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	width: 100%;
	display: block;
}

.submenu li:hover {
	background: transparent;
	border: none;
}

.submenu-link {
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 12px;
	color: rgba(232, 251, 246, 0.85);
	text-decoration: none;
	background: rgba(11, 31, 34, 0.4);
	border: 1px solid rgba(122, 220, 201, 0.15);
	transition: all .2s ease;
	font-size: 13px;
	line-height: 1.3;
	letter-spacing: 0.1px;
	display: flex;
	text-align: left;
	position: relative;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	width: 100%;
	box-sizing: border-box;
}




.submenu-link:hover {
	background: linear-gradient(135deg, rgba(122, 220, 201, 0.15), rgba(100, 167, 166, 0.1));
	color: #f4fbf8;
	border: 1px solid rgba(122, 220, 201, 0.4);
	box-shadow: 0 4px 12px rgba(122, 220, 201, 0.2);
	transform: translateY(-1px);
}

.submenu-link:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(122, 220, 201, 0.15);
}

/* Submenu Icon Styling */
.submenu-icon {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	border: 1px solid rgba(122, 220, 201, 0.2);
	background: rgba(12, 38, 43, 0.6);
	color: rgba(122, 220, 201, 0.8);
	transition: all .2s ease;
	flex-shrink: 0;
}

.submenu-icon svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.submenu-link:hover .submenu-icon {
	border-color: rgba(122, 220, 201, 0.4);
	background: rgba(122, 220, 201, 0.1);
	color: rgba(122, 220, 201, 1);
	box-shadow: 0 2px 8px rgba(122, 220, 201, 0.2);
}

/* Keep active/selected style for submenu link when custom-selected */
.submenu-link.is-selected,
.submenu-link.is-selected:hover {
    background: linear-gradient(135deg, rgba(122, 220, 201, 0.15), rgba(100, 167, 166, 0.1));
    color: #f4fbf8;
    border: 1px solid rgba(122, 220, 201, 0.4);
    box-shadow: 0 4px 12px rgba(122, 220, 201, 0.2);
}

/* Submenu Label Styling */
.submenu-label {
	font-weight: 500;
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Nested Submenu Styling */
.submenu li.has-submenu {
	position: relative;
}

.submenu li.has-submenu .submenu {
	position: absolute;
	left: 100%;
	top: 0;
	background: var(--surface-elevated);
	border: 1px solid var(--surface-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-soft);
	min-width: 180px;
	max-width: 220px;
	z-index: 1000;
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu li.has-submenu.submenu-open .submenu {
	max-height: 1000px;
	opacity: 1;
}

.submenu li.has-submenu .submenu-trigger {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 12px;
	background: transparent;
	border: 1px solid transparent;
	color: rgba(242, 251, 248, 0.85);
	text-decoration: none;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	width: 100%;
	justify-content: space-between;
}

.submenu li.has-submenu .submenu-trigger:hover {
	background: linear-gradient(135deg, rgba(122, 220, 201, 0.15), rgba(100, 167, 166, 0.1));
	color: #f4fbf8;
	border: 1px solid rgba(122, 220, 201, 0.4);
	box-shadow: 0 4px 12px rgba(122, 220, 201, 0.2);
	transform: translateY(-1px);
}

.submenu li.has-submenu .nav-caret {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* Closed state: point to the right (like top-level) */
    transform: rotate(-90deg);
}

.submenu li.has-submenu.submenu-open .nav-caret {
    /* Open state: point down */
    transform: rotate(0deg);
}

/* Declaration Submenu Styling */
.declaration-submenu {
	position: absolute;
	left: 100%;
	top: 0;
	margin-left: 20px;
	transform: translateY(-4px) scale(0.96);
	transform-origin: left top;
	background: rgba(11, 31, 34, 0.92);
	border: 1px solid rgba(122, 220, 201, 0.2);
	border-radius: var(--radius-md);
	box-shadow: 0 24px 48px rgba(3, 15, 21, 0.5);
	min-width: 180px;
	max-width: 220px;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

.declaration-submenu.show {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.declaration-submenu-content {
	padding: 12px 14px;
	display: grid;
	gap: 6px;
	list-style: none;
}

.declaration-submenu-item {
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 12px;
	color: rgba(232, 251, 246, 0.85);
	text-decoration: none;
	background: rgba(11, 31, 34, 0.4);
	border: 1px solid rgba(122, 220, 201, 0.15);
	transition: all .2s ease;
	font-size: 13px;
	line-height: 1.3;
	letter-spacing: 0.1px;
	display: flex;
	text-align: left;
	width: 100%;
}

.declaration-submenu-item:hover {
	background: linear-gradient(135deg, rgba(122, 220, 201, 0.15), rgba(100, 167, 166, 0.1));
	color: #f4fbf8;
	border: 1px solid rgba(122, 220, 201, 0.4);
	box-shadow: 0 4px 12px rgba(122, 220, 201, 0.2);
	transform: translateY(-1px);
}

.declaration-submenu-icon {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	border: 1px solid rgba(122, 220, 201, 0.2);
	background: rgba(12, 38, 43, 0.6);
	color: rgba(122, 220, 201, 0.8);
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	flex-shrink: 0;
}

.declaration-submenu-icon svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.6;
}

/* Responsive: match parent submenu rules on mobile/collapsed */
@media (max-width: 1200px) {
    /* Container spacing and sizing */
    .declaration-submenu { margin-left: 13px; }
	.declaration-submenu-content { padding: 8px 12px; gap: 2px; }
	/* Item sizing */
	.declaration-submenu-item {
		gap: 6px;
		padding: 6px 10px;
		font-size: 12px;
		line-height: 1.3;
		border-radius: 8px;
	}
}

@media (max-width: 768px) {
    .declaration-submenu { margin-left: 13px; }
	.declaration-submenu-content { padding: 8px 12px; gap: 1px; }
	.declaration-submenu-item {
		gap: 5px;
		padding: 5px 8px;
		font-size: 11px;
		line-height: 1.2;
		border-radius: 6px;
	}
}

@media (max-width: 480px) {
    .declaration-submenu { margin-left: 13px; }
	.declaration-submenu-content { padding: 6px 10px; gap: 1px; }
	.declaration-submenu-item {
		gap: 4px;
		padding: 4px 6px;
		font-size: 10px;
		line-height: 1.1;
		border-radius: 4px;
	}
}

.declaration-submenu-item:hover .declaration-submenu-icon {
	border-color: rgba(122, 220, 201, 0.4);
	background: rgba(122, 220, 201, 0.1);
	color: rgba(122, 220, 201, 1);
	box-shadow: 0 2px 8px rgba(122, 220, 201, 0.2);
}

.declaration-submenu-label {
	font-weight: 500;
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Ensure parent li has relative positioning for declaration submenu */
.declaration-parent {
	position: relative;
	/* Ensure it doesn't get clipped */
	overflow: visible;
}

/* Ensure submenu container doesn't clip the submenu */
.submenu {
	overflow: visible !important;
}

/* Ensure sidebar doesn't clip the submenu */
.dashboard-sidebar {
	overflow: visible !important;
}

/* Ensure the main submenu container allows overflow */
#submenu-management {
	overflow: visible !important;
}
.nav-icon {

	width: 30px;

	height: 30px;

	display: grid;

	place-items: center;

	border-radius: 12px;

	border: 1px solid rgba(122, 220, 201, 0.18);

	background: rgba(12, 38, 43, 0.55);

	color: rgba(122, 220, 201, 0.85);

	transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;

}



.sidebar-nav li .nav-icon svg,

.sidebar-footer li .nav-icon svg {

	width: 20px;

	height: 20px;

	stroke: currentColor;

	fill: none;

	stroke-width: 1.6;

	stroke-linecap: round;

	stroke-linejoin: round;

}



.sidebar-nav li:hover .nav-icon,

.sidebar-footer li:hover .nav-icon {

	border-color: rgba(122, 220, 201, 0.32);

	background: rgba(122, 220, 201, 0.16);

	color: rgba(122, 220, 201, 0.95);

}



.sidebar-nav li.active .nav-icon,

.sidebar-footer li.active .nav-icon {

	border-color: rgba(122, 220, 201, 0.52);

	background: linear-gradient(140deg, rgba(122, 220, 201, 0.5), rgba(84, 181, 173, 0.85));

	color: #f2fbf8;

	box-shadow: 0 6px 18px rgba(9, 36, 41, 0.32);

}










.sidebar-separator {
	margin: 4px 0;
	border-top: 1px solid rgba(122, 220, 201, 0.12);
}

.sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(122, 220, 201, 0.12); }

.sidebar-meta { margin-top: 18px; font-size: 11px; color: rgba(232, 251, 246, 0.45); text-align: left; }



.dashboard-main {

	flex: 1;

	display: flex;

	flex-direction: column;

	padding: 10px 10px 10px;

	gap: 26px;

}



.dashboard-topbar {

	display: flex;

	align-items: center;

	justify-content: space-between;

	gap: 18px;

	background: rgba(17, 46, 51, 0.9);
	
	position: relative;
	
	z-index: 100;

	border: 1px solid rgba(122, 220, 201, 0.22);

	border-radius: 20px;

	padding: 18px 24px;

	box-shadow: 0 22px 45px rgba(3, 15, 21, 0.45);

	backdrop-filter: blur(14px);

}



.topbar-menu {

	width: 48px;

	height: 48px;

	border-radius: 16px;

	border: 1px solid rgba(122, 220, 201, 0.18);

	background: rgba(6, 22, 28, 0.45);

	cursor: pointer;

	display: grid;

	place-items: center;

	gap: 6px;

	padding: 10px 10px;

}

.topbar-menu span { display: block; width: 22px; height: 2px; border-radius: 999px; background: rgba(232, 251, 246, 0.85); }



.topbar-user { display: flex; align-items: center; gap: 14px; margin-right: auto; margin-left: 12px; color: var(--text-main); }

.user-avatar {

	width: 48px;

	height: 48px;

	border-radius: 18px;

	background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));

	color: #052729;

	font-weight: 700;

	display: grid;

	place-items: center;

	font-size: 13px;

	box-shadow: 0 12px 26px rgba(6, 20, 25, 0.45);

}

.user-meta { display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-start; line-height: 1.2; }

.user-meta strong { display: inline-block; font-size: 15px; line-height: 1.2; }

.user-meta span { display: inline-block; font-size: 12px; color: rgba(168, 231, 214, 0.78); line-height: 1.2; margin-top: 2px; }



.metrics-grid {

	display: grid;

	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

	gap: 18px;

}



.metric-card {

	background: rgba(17, 46, 51, 0.86);

	border: 1px solid rgba(122, 220, 201, 0.22);

	border-radius: 18px;

	padding: 20px 22px;

	position: relative;

	overflow: hidden;

	box-shadow: 0 18px 42px rgba(3, 15, 21, 0.45);

	backdrop-filter: blur(18px);

}



.metric-card::after {

	content: '';

	position: absolute;

	right: -36px;

	top: -36px;

	width: 120px;

	height: 120px;

	background: radial-gradient(circle, rgba(122, 220, 201, 0.32) 0%, transparent 70%);

}



.metric-card h4 { margin: 0; font-size: 14px; color: rgba(232, 251, 246, 0.68); letter-spacing: .3px; }

.metric-value { margin: 12px 0 8px; font-size: 28px; font-weight: 700; color: #e8fbf6; }

.metric-trend { font-size: 12px; font-weight: 500; color: rgba(168, 231, 214, 0.82); }

.metric-trend.down { color: #f5a3ab; }



.panel-grid {

	display: grid;

	grid-template-columns: 2fr 1fr;

	gap: 20px;

}

.panel-grid.trio { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }



.panel {

	background: rgba(17, 46, 51, 0.9);

	border: 1px solid rgba(122, 220, 201, 0.2);

	border-radius: 20px;

	padding: 22px 24px;

	display: flex;

	flex-direction: column;

	gap: 18px;

	box-shadow: 0 24px 50px rgba(3, 15, 21, 0.48);

	backdrop-filter: blur(16px);

	color: var(--text-main);

}



.panel-header {

	display: flex;

	align-items: center;

	justify-content: space-between;

	gap: 12px;

}

.panel-header h3 { margin: 0; font-size: 18px; color: #e8fbf6; }



.panel-controls { display: flex; align-items: center; gap: 10px; }

.panel-control {

	border: 1px solid rgba(122, 220, 201, 0.22);

	background: rgba(6, 22, 28, 0.45);

	padding: 10px 14px;

	border-radius: 14px;

	font-size: 13px;

	color: rgba(232, 251, 246, 0.82);

	cursor: pointer;

}



.chart-placeholder {

	width: 100%;

	height: 260px;

	border-radius: 18px;

	background: linear-gradient(140deg, rgba(122, 220, 201, 0.28), rgba(52, 132, 158, 0.45));

	position: relative;

	overflow: hidden;

}

.chart-placeholder::before,

.chart-placeholder::after {

	content: '';

	position: absolute;

	inset: 12% 4%;

	background: linear-gradient(115deg, rgba(255, 255, 255, 0.35), transparent 70%);

	opacity: .4;

}

.chart-placeholder::after { inset: auto 6% -18% 6%; height: 42%; background: linear-gradient(180deg, rgba(6, 30, 38, 0.2), transparent 75%); }



.progress-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; color: rgba(232, 251, 246, 0.85); font-size: 13px; }

.progress-list li { display: grid; grid-template-columns: 1fr 1.1fr auto; align-items: center; gap: 12px; }

.progress-list .bar { position: relative; height: 6px; border-radius: 999px; background: rgba(6, 22, 28, 0.5); overflow: hidden; }

.progress-list .bar span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)); box-shadow: inset 0 0 6px rgba(3, 15, 21, 0.35); }

.progress-list strong { font-weight: 600; color: #dff7f1; }

.progress-list.compact li { grid-template-columns: 1fr 1.2fr auto; }



.device-usage ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 13px; color: rgba(232, 251, 246, 0.78); }

.device-usage li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.device-usage .dot { width: 12px; height: 12px; border-radius: 999px; margin-right: auto; box-shadow: 0 0 0 1px rgba(6, 22, 28, 0.45); }

.device-usage .dot.ios { background: #7adcc9; }

.device-usage .dot.android { background: #64a7a6; }

.device-usage .dot.web { background: #4a90e2; }

.device-usage .dot.other { background: #9ec9c1; }



.quick-settings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13px; color: rgba(232, 251, 246, 0.82); }

.quick-settings li { padding: 10px 12px; border-radius: 12px; background: rgba(6, 22, 28, 0.45); border: 1px solid rgba(122, 220, 201, 0.14); }



.gauge-placeholder { display: grid; place-items: center; gap: 6px; margin-top: 8px; color: rgba(232, 251, 246, 0.75); }

.gauge { width: 120px; height: 60px; border-radius: 120px 120px 0 0; background: conic-gradient(from 180deg, var(--brand-primary) 0 68%, rgba(122, 220, 201, 0.18) 68% 100%); position: relative; box-shadow: 0 10px 22px rgba(3, 15, 21, 0.45); }

.gauge::after { content: ''; position: absolute; inset: 16px; background: rgba(17, 46, 51, 0.9); border-radius: 80px 80px 0 0; border: 1px solid rgba(122, 220, 201, 0.25); }



/* Toggleable sidebar */

.dashboard-sidebar {

    transition: width .35s ease, padding .35s ease;

}



.topbar-menu span {

    transition: transform .3s ease, opacity .3s ease;

}



.dashboard-body:is(.menu-collapsed, .menu-visible) .dashboard-sidebar {

    width: 88px;

    min-width: 88px;

    padding: 18px 12px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 14px;

}



.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-brand {

    flex-direction: column;

    align-items: center;

    text-align: center;

    gap: 6px;

    margin-bottom: 0;

}



.dashboard-body:is(.menu-collapsed, .menu-visible) .brand-logo {

    width: 56px;

    height: 56px;

    border-radius: 18px;

    padding: 8px;

}

/* Alternative selector for collapsed menu logo */
.dashboard-body.menu-collapsed .brand-logo,
.dashboard-body.menu-visible .brand-logo {

    width: 56px !important;

    height: 56px !important;

    border-radius: 18px !important;

    padding: 8px !important;

}



.dashboard-body:is(.menu-collapsed, .menu-visible) .brand-meta,

.dashboard-body:is(.menu-collapsed, .menu-visible) .nav-heading,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-meta {

    display: none;

}

/* Separator for collapsed menu */
.dashboard-body.menu-collapsed .sidebar-separator,
.dashboard-body.menu-visible .sidebar-separator {
    margin: 8px 0 !important;
    border-top: 1px solid rgba(122, 220, 201, 0.12) !important;
    display: block !important;
    width: 100% !important;
    height: 1px !important;
}

/* More specific selector for collapsed menu separator */
.dashboard-sidebar .sidebar-separator {
    margin: 4px 0;
    border-top: 1px solid rgba(122, 220, 201, 0.12);
    display: block;
}

.dashboard-body.menu-collapsed .dashboard-sidebar .sidebar-separator,
.dashboard-body.menu-visible .dashboard-sidebar .sidebar-separator {
    margin: 8px 0 !important;
    border-top: 1px solid rgba(122, 220, 201, 0.12) !important;
    display: block !important;
    width: 100% !important;
    height: 1px !important;
}



.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav ul,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer ul {

    width: 100%;

    gap: 8px;

}



.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav .nav-label,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer .nav-label {

    display: block;

    font-size: 11px;

    line-height: 1.4;

    text-align: center;

    color: rgba(232, 251, 246, 0.82);

    white-space: normal;

}



.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer li {

    display: grid;

    place-items: center;

    text-align: center;

    border-radius: 22px;

    width: 100%;

    background: transparent;

    border: none;

    box-shadow: none;

    transition: color .2s ease, background .2s ease;

    row-gap: 8px;

}



.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li .nav-icon,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer li .nav-icon {

    width: 30px;

    height: 30px;

    display: grid;

    place-items: center;

    border-radius: 12px;

    border: 1px solid rgba(122, 220, 201, 0.25);

    background: rgba(13, 42, 48, 0.55);

    color: rgba(122, 220, 201, 0.82);

    transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;

}



.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li .nav-icon svg,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer li .nav-icon svg {

    width: 17px;

    height: 17px;

    stroke: currentColor;

    fill: none;

    stroke-width: 1.6;

    stroke-linecap: round;

    stroke-linejoin: round;

}



.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li:hover,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer li:hover {

    background: rgba(8, 30, 35, 0.58);

    color: #f2fbf8;

}



.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li:hover .nav-icon,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer li:hover .nav-icon {

    border-color: rgba(122, 220, 201, 0.4);

    background: rgba(122, 220, 201, 0.12);

    color: rgba(232, 251, 246, 0.92);

}



.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.active,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer li.active {

    background: rgba(8, 30, 35, 0.72);

    color: #f2fbf8;

}



.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu {
	position: relative;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	background: transparent;
	border: none;
	cursor: default;
}



.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu-trigger {
	display: grid;
	place-items: center;
	gap: 6px;
	padding: 16px 10px 12px;
	border-radius: 22px;
	border: none;
	background: transparent;
	color: rgba(232, 251, 246, 0.78);
	transition: background .2s ease, color .2s ease;
	width: 100%;
	text-align: center;
	row-gap: 8px;
}



/* In collapsed/mobile view, hide carets for top-level menu items only */
.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav > ul > li.has-submenu .nav-caret {
    display: none;
}
/* Keep carets visible for nested submenu items (like Declaration) */
.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu .nav-caret {
    display: inline-flex;
}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu-trigger:hover {
	background: rgba(8, 30, 35, 0.58);
	color: #f2fbf8;
}



.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu.active .submenu-trigger {
	background: rgba(8, 30, 35, 0.72);
	color: #f2fbf8;
}



.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu {

	position: absolute;

	top: 0;

	left: 100%;
	margin-left: 3px;

	transform: translateY(-4px) scale(0.96);

	transform-origin: left top;

	list-style: none;

	padding: 12px 14px;

	display: grid;

	gap: 2px;

	justify-items: start;

	align-items: start;

	min-width: 220px;

	max-width: 280px;

	max-height: 0;

	overflow: hidden;

	opacity: 0;

	pointer-events: none;

	transition: max-height .25s ease, opacity .2s ease, transform .2s ease;

	background: rgba(8, 30, 35, 0.92);

	border: 1px solid rgba(122, 220, 201, 0.2);

	border-radius: 16px;

	box-shadow: 0 16px 32px rgba(3, 12, 18, 0.38);

	z-index: 12;

}



.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu.submenu-open .submenu {

	max-height: 1000px;

	opacity: 1;

	pointer-events: auto;

	transform: translateY(0) scale(1);

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu li {
	place-items: start !important;
	text-align: left !important;
}



.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.active .nav-icon,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer li.active .nav-icon {

    border-color: rgba(122, 220, 201, 0.68);

    background: linear-gradient(140deg, rgba(122, 220, 201, 0.48), rgba(100, 167, 166, 0.85));

    color: #f2fbf8;

    box-shadow: 0 8px 18px rgba(9, 36, 41, 0.32);

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .topbar-user {

	margin-left: 0;

}



.dashboard-body:is(.menu-collapsed, .menu-visible) .topbar-menu span:nth-child(1) {

	transform: translateY(8px) rotate(45deg);

}



.dashboard-body:is(.menu-collapsed, .menu-visible) .topbar-menu span:nth-child(2) {

	opacity: 0;

}



.dashboard-body:is(.menu-collapsed, .menu-visible) .topbar-menu span:nth-child(3) {

	transform: translateY(-8px) rotate(-45deg);

}

@media (max-width: 1200px) {

	.dashboard-sidebar { display: none; }

	.dashboard-body.menu-visible .dashboard-sidebar { display: flex; }

	.dashboard-main { padding: 5px 10px 10px; }

}



@media (max-width: 900px) { .panel-grid { grid-template-columns: 1fr; } }



@media (max-width: 620px) {

	.dashboard-topbar { 
		flex-wrap: nowrap; 
		gap: 8px; 
		padding: 12px 16px;
		justify-content: space-between;
	}

	.dashboard-topbar form { 
		width: auto; 
		display: flex; 
		justify-content: flex-end; 
	}

	.topbar-user {
		margin-left: 8px;
		margin-right: auto;
		gap: 8px;
	}

	.topbar-user .user-meta {
		display: block; /* Show user name and role */
	}
	
	.topbar-user .user-meta strong {
		font-size: 13px;
	}
	
	.topbar-user .user-role {
		font-size: 10px;
		padding: 1px 4px;
	}

	.metrics-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

	.panel-grid.trio { grid-template-columns: 1fr; }

}



.sidebar-nav .nav-label,

.sidebar-footer .nav-label {

	flex: 1;

}





.panel-control {

	display: inline-flex;

	align-items: center;

	gap: 10px;

}



.panel-icon svg {

	width: 18px;

	height: 18px;

	stroke: currentColor;

	stroke-width: 1.6;

	fill: none;

	stroke-linecap: round;

	stroke-linejoin: round;

}





.language-switch {

	margin-top: 26px;

	display: flex;

	flex-direction: column;

	align-items: center;

	gap: 10px;

	text-align: center;

}

.language-switch label {

	font-size: 12px;

	letter-spacing: 0.6px;

	font-weight: 600;

	color: var(--text-muted);

}

.language-select {

	position: relative;

	display: inline-flex;

	align-items: center;

	gap: 12px;

	padding: 5px 50px 5px 22px;

	margin: 0 auto;

	background: rgba(11, 31, 34, 0.72);

	border: 1px solid var(--surface-border);

	border-radius: 24px;

	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 32px rgba(0, 0, 0, 0.32);

	transition: border-color .2s ease, box-shadow .2s ease;

}

.language-select::after {

	display: none;

}

.language-flag {

	display: inline-flex;

	align-items: center;

	justify-content: center;

	width: 32px;

	height: 22px;

	border-radius: 8px;

	overflow: hidden;

	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);

	background: rgba(10, 30, 34, 0.6);

}

.language-flag img {

	width: 90%;

	height: 90%;

	/*object-fit: cover;*/

	display: block;

}

.language-select__input {

	appearance: none;

	background: transparent;

	border: none;

	color: var(--text-main);

	font-weight: 600;

	font-size: 12px;

	letter-spacing: 0.2px;

	cursor: pointer;

	padding: 0;

	width: 100%;

	text-align: center;

}

.language-select__input:focus {

	outline: none;

}

.language-select__input option {

	color: #0b1f22;

}

.language-select__toggle {

	position: absolute;

	right: 14px;

	top: 50%;

	transform: translateY(-50%);

	width: 24px;

	height: 24px;

	display: inline-flex;

	align-items: center;

	justify-content: center;

	border: none;

	border-radius: 50%;

	background: rgba(12, 34, 38, 0.85);

	color: rgba(203, 240, 234, 0.8);

	cursor: pointer;

	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 16px rgba(0, 0, 0, 0.25);

	transition: color .2s ease, background .2s ease;

}

.language-select__toggle:hover {

	background: rgba(17, 46, 51, 0.9);

	color: rgba(203, 240, 234, 0.95);

}

.language-select__toggle:focus-visible {

	outline: 2px solid rgba(122, 220, 201, 0.6);

	outline-offset: 2px;

}

.language-select__toggle svg {

	display: block;

}

@media (max-width: 560px) {

	.language-select {

		width: 100%;

		padding: 10px 52px 10px 18px;

	}

}















































@media (max-width: 1200px) {
	.sidebar-nav li.has-submenu .submenu {
		gap: 2px !important;
		padding: 8px 12px !important;
		min-width: 200px !important;
		max-width: 260px !important;
		justify-items: start !important;
		align-items: start !important;
	}
	.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu {
		justify-items: start !important;
		align-items: start !important;
	}
	.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu li {
		place-items: start !important;
		text-align: left !important;
	}
	.sidebar-nav li.has-submenu .submenu .submenu-link {
		justify-content: flex-start !important;
		text-align: left !important;
		gap: 6px !important;
		padding: 6px 10px !important;
		font-size: 12px !important;
		line-height: 1.3 !important;
		border-radius: 8px !important;
		display: flex !important;
		align-items: center !important;
	}
}

@media (max-width: 768px) {
	.sidebar-nav li.has-submenu .submenu {
		gap: 1px !important;
		padding: 8px 12px !important;
		min-width: 180px !important;
		max-width: 240px !important;
		justify-items: start !important;
		align-items: start !important;
	}
	.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu {
		justify-items: start !important;
		align-items: start !important;
	}
	.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu li {
		place-items: start !important;
		text-align: left !important;
	}
	.sidebar-nav li.has-submenu .submenu .submenu-link {
		justify-content: flex-start !important;
		text-align: left !important;
		gap: 5px !important;
		padding: 5px 8px !important;
		font-size: 11px !important;
		line-height: 1.2 !important;
		border-radius: 6px !important;
		display: flex !important;
		align-items: center !important;
	}
}

@media (max-width: 480px) {
	.sidebar-nav li.has-submenu .submenu {
		gap: 1px !important;
		padding: 6px 10px !important;
		min-width: 160px !important;
		max-width: 220px !important;
		justify-items: start !important;
		align-items: start !important;
	}
	.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu {
		justify-items: start !important;
		align-items: start !important;
	}
	.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu li {
		place-items: start !important;
		text-align: left !important;
	}
	.sidebar-nav li.has-submenu .submenu .submenu-link {
		justify-content: flex-start !important;
		text-align: left !important;
		gap: 4px !important;
		padding: 4px 6px !important;
		font-size: 10px !important;
		line-height: 1.1 !important;
		border-radius: 4px !important;
		display: flex !important;
		align-items: center !important;
	}
}

/* Toggle password icon visibility - Fixed */
.input-wrap .toggle-pass .icon-eye-closed {
	display: none;
}

.input-wrap .toggle-pass[data-state="visible"] .icon-eye-open {
	display: none;
}

.input-wrap .toggle-pass[data-state="visible"] .icon-eye-closed {
	display: block;
}

/* Permission Level Effects - Complete Set (0-5) */
.user-role {
    position: relative;
    display: inline-flex; /* allow content-based sizing */
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 0; /* remove fixed min-width to avoid misalignment for short names */
    width: auto;
}

/* Employee - ID 0 (Thấp nhất) */
.user-role.permission-0 {
	color: #9ca3af;
	text-shadow: 0 0 3px rgba(156, 163, 175, 0.1);
	background: rgba(156, 163, 175, 0.03);
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid rgba(156, 163, 175, 0.08);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Department Head (HOD) - ID 1 */
.user-role.permission-1 {
	color: #d1d5db;
	text-shadow: 0 0 8px rgba(156, 163, 175, 0.4), 0 0 15px rgba(156, 163, 175, 0.2);
	background: linear-gradient(135deg, 
		rgba(156, 163, 175, 0.12) 0%,
		rgba(107, 114, 128, 0.08) 50%,
		rgba(156, 163, 175, 0.15) 100%);
	padding: 3px 8px;
	border-radius: 6px;
	border: 1px solid rgba(156, 163, 175, 0.25);
	animation: hod-glow 3s ease-in-out infinite;
	position: relative;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(156, 163, 175, 0.15);
}

@keyframes hod-glow {
	0%, 100% { 
		text-shadow: 0 0 8px rgba(156, 163, 175, 0.4), 0 0 15px rgba(156, 163, 175, 0.2);
		box-shadow: 0 2px 8px rgba(156, 163, 175, 0.15);
		transform: scale(1);
	}
	50% { 
		text-shadow: 0 0 12px rgba(156, 163, 175, 0.6), 0 0 20px rgba(156, 163, 175, 0.3);
		box-shadow: 0 3px 12px rgba(156, 163, 175, 0.25);
		transform: scale(1.01);
	}
}

/* HR Officer - ID 2 */
.user-role.permission-2 {
	color: #e5f3f0;
	text-shadow: 0 0 10px rgba(100, 167, 166, 0.5), 0 0 18px rgba(100, 167, 166, 0.3);
	background: linear-gradient(135deg, 
		rgba(100, 167, 166, 0.18) 0%,
		rgba(122, 220, 201, 0.12) 50%,
		rgba(100, 167, 166, 0.22) 100%);
	padding: 4px 9px;
	border-radius: 8px;
	border: 1px solid rgba(100, 167, 166, 0.35);
	animation: hr-officer-glow 2.8s ease-in-out infinite;
	position: relative;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(100, 167, 166, 0.2);
}

@keyframes hr-officer-glow {
	0%, 100% { 
		text-shadow: 0 0 10px rgba(100, 167, 166, 0.5), 0 0 18px rgba(100, 167, 166, 0.3);
		box-shadow: 0 3px 10px rgba(100, 167, 166, 0.2);
		transform: scale(1);
	}
	50% { 
		text-shadow: 0 0 15px rgba(100, 167, 166, 0.7), 0 0 25px rgba(100, 167, 166, 0.4);
		box-shadow: 0 4px 14px rgba(100, 167, 166, 0.3);
		transform: scale(1.01);
	}
}

/* HR Manager - ID 3 */
.user-role.permission-3 {
	color: #f0fdfa;
	text-shadow: 
		0 0 8px rgba(122, 220, 201, 0.4),
		0 0 16px rgba(122, 220, 201, 0.3),
		0 0 24px rgba(122, 220, 201, 0.15);
	background: linear-gradient(135deg, 
		rgba(122, 220, 201, 0.15) 0%,
		rgba(100, 167, 166, 0.12) 50%,
		rgba(122, 220, 201, 0.18) 100%);
	padding: 4px 10px;
	border-radius: 10px;
	border: 1px solid rgba(122, 220, 201, 0.4);
	animation: hr-manager-glow 2.5s ease-in-out infinite;
	position: relative;
	overflow: hidden;
	box-shadow: 
		0 2px 8px rgba(122, 220, 201, 0.12),
		0 4px 16px rgba(122, 220, 201, 0.08);
	backdrop-filter: blur(2px);
}

.user-role.permission-3::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, 
		transparent,
		rgba(255, 255, 255, 0.08),
		rgba(255, 255, 255, 0.15),
		rgba(255, 255, 255, 0.08),
		transparent);
	animation: shimmer 3.5s ease-in-out infinite;
}

@keyframes hr-manager-glow {
	0%, 100% { 
		text-shadow: 
			0 0 8px rgba(122, 220, 201, 0.4),
			0 0 16px rgba(122, 220, 201, 0.3),
			0 0 24px rgba(122, 220, 201, 0.15);
		transform: scale(1);
	}
	50% { 
		text-shadow: 
			0 0 12px rgba(122, 220, 201, 0.6),
			0 0 20px rgba(122, 220, 201, 0.4),
			0 0 28px rgba(122, 220, 201, 0.2);
		transform: scale(1.01);
	}
}

@keyframes shimmer {
	0% { left: -100%; }
	100% { left: 100%; }
}

/* General Manager - ID 4 */
.user-role.permission-4 {
	color: #f8fafc;
	text-shadow: 
		0 0 12px rgba(122, 220, 201, 0.6),
		0 0 20px rgba(122, 220, 201, 0.4),
		0 0 30px rgba(122, 220, 201, 0.2);
	background: linear-gradient(135deg, 
		rgba(122, 220, 201, 0.2) 0%,
		rgba(100, 167, 166, 0.15) 50%,
		rgba(122, 220, 201, 0.25) 100%);
	padding: 5px 12px;
	border-radius: 12px;
	border: 2px solid rgba(122, 220, 201, 0.5);
	animation: manager-glow 2.2s ease-in-out infinite, manager-border-pulse 3s ease-in-out infinite;
	position: relative;
	overflow: hidden;
	box-shadow: 
		0 3px 12px rgba(122, 220, 201, 0.2),
		0 6px 24px rgba(122, 220, 201, 0.15),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(4px);
}

.user-role.permission-4::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(45deg, 
		transparent 30%, 
		rgba(255, 255, 255, 0.12) 50%, 
		transparent 70%);
	animation: manager-shine 3s infinite;
}

.user-role.permission-4::after {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: linear-gradient(45deg, 
		rgba(122, 220, 201, 0.1),
		transparent,
		rgba(122, 220, 201, 0.1));
	border-radius: 14px;
	z-index: -1;
	animation: manager-border-glow 3s ease-in-out infinite;
}

@keyframes manager-glow {
	0%, 100% { 
		text-shadow: 
			0 0 12px rgba(122, 220, 201, 0.6),
			0 0 20px rgba(122, 220, 201, 0.4),
			0 0 30px rgba(122, 220, 201, 0.2);
		transform: scale(1);
	}
	50% { 
		text-shadow: 
			0 0 16px rgba(122, 220, 201, 0.8),
			0 0 24px rgba(122, 220, 201, 0.6),
			0 0 35px rgba(122, 220, 201, 0.3);
		transform: scale(1.02);
	}
}

@keyframes manager-shine {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

@keyframes manager-border-glow {
	0%, 100% { 
		opacity: 0.1;
		transform: scale(1);
	}
	50% { 
		opacity: 0.3;
		transform: scale(1.01);
	}
}

@keyframes manager-border-pulse {
	0%, 100% { 
		border-color: rgba(122, 220, 201, 0.5);
		box-shadow: 
			0 3px 12px rgba(122, 220, 201, 0.2),
			0 6px 24px rgba(122, 220, 201, 0.15),
			inset 0 1px 0 rgba(255, 255, 255, 0.1);
	}
	50% { 
		border-color: rgba(122, 220, 201, 0.7);
		box-shadow: 
			0 4px 16px rgba(122, 220, 201, 0.3),
			0 8px 32px rgba(122, 220, 201, 0.2),
			inset 0 1px 0 rgba(255, 255, 255, 0.15);
	}
}

/* Administrator - ID 5 (Cao nhất) */
.user-role.permission-5 {
	color: #ffffff;
	text-shadow: 
		0 0 10px rgba(122, 220, 201, 0.8),
		0 0 20px rgba(122, 220, 201, 0.6),
		0 0 30px rgba(122, 220, 201, 0.4),
		0 0 40px rgba(122, 220, 201, 0.2);
	background: linear-gradient(135deg, 
		rgba(122, 220, 201, 0.25) 0%,
		rgba(100, 167, 166, 0.2) 50%,
		rgba(122, 220, 201, 0.3) 100%);
	padding: 6px 14px;
	border-radius: 16px;
	border: 2px solid rgba(122, 220, 201, 0.8);
	animation: admin-color-pulse 2s ease-in-out infinite;
	position: relative;
	overflow: hidden;
	box-shadow: 
		0 4px 16px rgba(122, 220, 201, 0.25),
		0 8px 32px rgba(122, 220, 201, 0.15),
		0 16px 64px rgba(122, 220, 201, 0.1),
		inset 0 2px 0 rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
}

@keyframes admin-color-pulse {
	0% { 
		border-color: rgba(122, 220, 201, 0.8);
		background: linear-gradient(135deg, 
			rgba(122, 220, 201, 0.25) 0%,
			rgba(100, 167, 166, 0.2) 50%,
			rgba(122, 220, 201, 0.3) 100%);
		box-shadow: 
			0 4px 16px rgba(122, 220, 201, 0.25),
			0 8px 32px rgba(122, 220, 201, 0.15),
			0 16px 64px rgba(122, 220, 201, 0.1),
			inset 0 2px 0 rgba(255, 255, 255, 0.15);
	}
	50% { 
		border-color: rgba(100, 167, 166, 1);
		background: linear-gradient(135deg, 
			rgba(100, 167, 166, 0.35) 0%,
			rgba(122, 220, 201, 0.3) 50%,
			rgba(100, 167, 166, 0.4) 100%);
		box-shadow: 
			0 4px 16px rgba(100, 167, 166, 0.4),
			0 8px 32px rgba(100, 167, 166, 0.3),
			0 16px 64px rgba(100, 167, 166, 0.2),
			inset 0 2px 0 rgba(255, 255, 255, 0.2);
	}
	100% { 
		border-color: rgba(122, 220, 201, 0.8);
		background: linear-gradient(135deg, 
			rgba(122, 220, 201, 0.25) 0%,
			rgba(100, 167, 166, 0.2) 50%,
			rgba(122, 220, 201, 0.3) 100%);
		box-shadow: 
			0 4px 16px rgba(122, 220, 201, 0.25),
			0 8px 32px rgba(122, 220, 201, 0.15),
			0 16px 64px rgba(122, 220, 201, 0.1),
			inset 0 2px 0 rgba(255, 255, 255, 0.15);
	}
}

/* ===== NEW HEADER BUTTONS STYLES ===== */

/* Notifications Button */
.topbar-notifications {
	position: relative;
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding: 8px;
	color: #ffffff;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-right: 12px;
}

.topbar-notifications:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.4);
	transform: translateY(-1px);
}

.topbar-notifications:active {
	transform: translateY(0);
}

.notification-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	background: #ff4757;
	color: white;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	font-size: 10px;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: notification-pulse 2s infinite;
}

@keyframes notification-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

/* User Actions Dropdown */
.topbar-user-actions {
	position: relative;
	display: inline-block;
	z-index: 1000;
}

.user-actions-toggle {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding: 8px;
	color: #ffffff;
	cursor: pointer;
	transition: all 0.3s ease;
}

.user-actions-toggle:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.4);
	transform: translateY(-1px);
}

.user-actions-toggle:active {
	transform: translateY(0);
}

.user-actions-dropdown {
	position: fixed;
	top: auto;
	right: 20px;
	background: rgba(17, 46, 51, 0.95);
	border: 1px solid rgba(122, 220, 201, 0.3);
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	min-width: 200px;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	margin-top: 8px;
	backdrop-filter: blur(10px);
	padding: 4px;
	box-sizing: border-box;
}

.user-actions-dropdown.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown-item {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	color: #e8fbf6;
	text-decoration: none;
	transition: all 0.2s ease;
	border: none;
	background: none;
	width: 100%;
	text-align: left;
	cursor: pointer;
	border-radius: 8px;
	margin: 0;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

.dropdown-item:hover {
	background-color: rgba(122, 220, 201, 0.15);
	color: #ffffff;
	box-shadow: inset 0 0 0 1px rgba(122, 220, 201, 0.3);
}

.dropdown-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(122, 220, 201, 0.1), transparent);
	transition: left 0.3s ease;
}

.dropdown-item:hover::before {
	left: 100%;
}

.dropdown-item svg {
	margin-right: 12px;
	flex-shrink: 0;
}

.dropdown-item span {
	font-size: 14px;
	font-weight: 500;
}

.dropdown-divider {
	height: 1px;
	background-color: rgba(122, 220, 201, 0.2);
	margin: 4px 0;
}

.dropdown-form {
	width: 100%;
}

.logout-item {
	color: #ff6b6b !important;
}

.logout-item:hover {
	background-color: rgba(255, 107, 107, 0.15) !important;
	color: #ff8a8a !important;
	box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.3);
}

.logout-item::before {
	background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
	.dashboard-topbar {
		gap: 12px;
		padding: 14px 20px;
	}
	
	.user-avatar {
		width: 42px;
		height: 42px;
		font-size: 11px;
		font-weight: bold;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		line-height: 1;
		padding: 3px;
		box-sizing: border-box;
		letter-spacing: -0.2px;
	}
	
	.topbar-user .user-meta strong {
		font-size: 14px;
	}
	
	.topbar-user .user-role {
		font-size: 11px;
		padding: 2px 6px;
	}
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.user-avatar {
		width: 36px;
		height: 36px;
		font-size: 10px;
		font-weight: bold;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		line-height: 1;
		padding: 3px;
		box-sizing: border-box;
		letter-spacing: -0.3px;
	}
	
	.topbar-user .user-meta {
		display: block;
	}
	
	.topbar-user .user-meta strong {
		font-size: 14px;
		line-height: 1.3;
	}
	
	.topbar-user .user-role {
		font-size: 10px;
		padding: 2px 5px;
		margin-top: 2px;
	}
	
	.topbar-notifications {
		margin-right: 6px;
		padding: 6px;
		order: 1;
	}
	
	.user-actions-toggle {
		padding: 6px;
		order: 2;
	}
	
	.user-actions-dropdown {
		min-width: 180px;
		right: 10px !important;
		left: auto !important;
		background: rgba(17, 46, 51, 0.95);
		border: 1px solid rgba(122, 220, 201, 0.3);
		backdrop-filter: blur(10px);
		padding: 4px;
		box-sizing: border-box;
	}
	
	.dropdown-item {
		padding: 10px 14px;
	}
	
	.dropdown-item svg {
		margin-right: 10px;
		width: 14px;
		height: 14px;
	}
	
	.dropdown-item span {
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.dashboard-topbar {
		padding: 8px 12px;
		gap: 6px;
	}
	
	.topbar-menu {
		width: 40px;
		height: 40px;
	}
	
	.topbar-user {
		margin-left: 6px;
		margin-right: auto;
		gap: 6px;
	}
	
	.user-avatar {
		width: 32px;
		height: 32px;
		font-size: 9px;
		font-weight: bold;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		line-height: 1;
		padding: 3px;
		box-sizing: border-box;
		letter-spacing: -0.5px;
	}
	
	.topbar-user .user-meta {
		display: block;
	}
	
	.topbar-user .user-meta strong {
		font-size: 12px;
		line-height: 1.2;
	}
	
	.topbar-user .user-role {
		font-size: 9px;
		padding: 1px 3px;
		margin-top: 1px;
	}
	
	.topbar-notifications {
		margin-right: 4px;
		padding: 4px;
		order: 1;
	}
	
	.topbar-notifications svg {
		width: 16px;
		height: 16px;
	}
	
	.user-actions-toggle {
		padding: 4px;
		order: 2;
	}
	
	.user-actions-toggle svg {
		width: 14px;
		height: 14px;
	}
	
	.user-actions-dropdown {
		min-width: 160px;
		right: 5px !important;
		left: auto !important;
		background: rgba(17, 46, 51, 0.95);
		border: 1px solid rgba(122, 220, 201, 0.3);
		backdrop-filter: blur(10px);
		padding: 4px;
		box-sizing: border-box;
	}
	
	.dropdown-item {
		padding: 8px 12px;
	}
	
	.dropdown-item svg {
		margin-right: 8px;
		width: 12px;
		height: 12px;
	}
	
	.dropdown-item span {
		font-size: 12px;
	}
}

