/* Shared launchpad styles. Kept outside the language stylesheets so EN and AR behave identically. */

/* .Dock {
	display: block;
	position: fixed;
	left: 50%;
	right: auto;
	bottom: 12px;
	width: max-content;
	max-width: calc(100vw - 48px);
	max-height: none;
	padding: 7px 9px 7px;
	border: 1px solid rgba(255, 255, 255, 0.58);
	border-radius: 18px;
	background: rgba(241, 244, 248, 0.78);
	box-shadow: 0 14px 38px rgba(18, 31, 53, 0.22);
	-webkit-backdrop-filter: blur(20px) saturate(1.25);
	backdrop-filter: blur(20px) saturate(1.25);
	overflow: visible;
	transform: translateX(-50%);
	z-index: 2147483646;
}

.DockElements {
	display: flex;
	align-items: center;
	gap: 4px;
	max-width: calc(100vw - 68px);
	min-height: 98px;
	margin-top: -30px;
	padding-block-start: 30px;
	padding-inline-start: 34px;
	padding-inline-end: 34px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}

.DockElements::-webkit-scrollbar {
	display: none;
}

.Dock .DockE {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	padding: 0;
	font-size: 42px;
	line-height: 54px;
	border-radius: 13px;
	transform-origin: center bottom;
	transition: transform 160ms ease, background-color 160ms ease;
}

.Dock .LP_DockMain {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.Dock a.DockE {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	text-decoration: none;
}

.Dock .LP_DockWrap {
	position: relative;
	overflow: visible;
}

.Dock a.DockE:hover,
.Dock .LP_DockWrap:hover {
	background: rgba(255, 255, 255, 0.56);
	transform: translateY(-6px) scale(1.08);
}

.Dock .LP_DockMain:hover img,
.Dock a.DockE:hover img {
	transform: translateY(-2px) scale(1.05);
}

.Dock .LP_DockMain:hover i,
.Dock a.DockE:hover i {
	color: #34495e;
	transform: translateY(-2px) scale(1.05);
}

.Dock img {
	width: 44px;
	height: 44px;
	margin: 0;
	border-radius: 11px;
	object-fit: contain;
	transition: transform 160ms ease;
}

.Dock i {
	transition: color 160ms ease, transform 160ms ease;
}

.Dock a.DockE:hover::after,
.Dock .LP_DockMain:hover::after,
.Dock .LP_DockAdd:hover::after {
	display: none;
}

.Dock .LP_DockAdd {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 30px;
	box-sizing: border-box;
	gap: 3px;
	padding: 0 5px;
	border-radius: 7px;
	background: #34495e;
	color: #fff;
	box-shadow: 0 7px 18px rgba(22, 39, 58, 0.22);
	font-size: 10px;
	font-weight: 600;
	line-height: 30px;
	text-decoration: none;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 6px);
	transition: opacity 140ms ease, transform 140ms ease, background-color 140ms ease;
	z-index: 2;
}

.Dock .LP_DockAdd::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	width: 8px;
	height: 8px;
	background: inherit;
	transform: translate(-50%, -4px) rotate(45deg);
}

.Dock .LP_DockWrap:hover .LP_DockAdd,
.Dock .LP_DockAdd:focus {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.Dock .LP_DockAdd:hover {
	background: #243444;
}

.Dock .LP_DockAdd i {
	flex: 0 0 auto;
	font-size: 10px;
}

.Dock .LP_DockAdd i,
.Dock .LP_DockAdd span {
	position: relative;
	z-index: 1;
} */

.Launchpad {
	position: fixed;
	inset: 0;
	display: block;
	padding: clamp(22px, 4vw, 56px);
	box-sizing: border-box;
	text-align: start;
	background: transparent;
	opacity: 0;
	visibility: hidden;
	transition: opacity 220ms ease, visibility 220ms ease;
	z-index: 2147483647;
}

.Launchpad.LP_IsOpen {
	opacity: 1;
	visibility: visible;
}

.LaunchpadBackground {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	filter: none;
	-webkit-filter: none;
	opacity: 1;
	z-index: 0;
}

.LP_Panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 70%;
	height: min(680px, calc(100vh - 12%));
	max-height: calc(100vh - 12%);
	min-height: 400px;
	margin: 6% auto 0;
	padding: 3%;
	box-sizing: border-box;
	overflow: hidden;
	border: 0;
	border-radius: 30px;
	background: #ffffff;
	box-shadow: 0 0 5px 1px rgba(216,216,216,.5);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	transform: translateY(18px) scale(0.98);
	transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
	z-index: 1;
}

.LP_IsOpen .LP_Panel {
	transform: translateY(0) scale(1);
}

.LP_Header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 0 0 16px;
}

.LP_Heading {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 14px;
}

.LP_Heading > img {
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	border-radius: 13px;
	box-shadow: 0 7px 18px rgba(20, 42, 73, 0.18);
}

.LP_Heading h2 {
	margin: 0;
	color: #13233a;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.LP_Heading p {
	margin: 4px 0 0;
	color: #66758a;
	font-size: 13px;
	line-height: 1.35;
}

.LP_Toolbar {
	position: static;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
	gap: 8px;
	pointer-events: auto;
}

.LP_Btn,
.LP_CloseBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	box-sizing: border-box;
	border: 1px solid #dce3ec;
	border-radius: 12px;
	background: #fff;
	color: #34445b;
	box-shadow: none;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	padding: 0 15px;
	transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.LP_Btn:hover,
.LP_CloseBtn:hover {
	border-color: #b9c5d4;
	background: #f7f9fc;
	transform: translateY(-1px);
	box-shadow: 0 5px 12px rgba(28, 50, 80, 0.09);
}

.LP_Btn:focus-visible,
.LP_CloseBtn:focus-visible,
.LP_SearchBox:focus-within,
.LP_DragHandle:focus-visible,
.LP_Pin:focus-visible,
.LP_AppLink:focus-visible {
	outline: 3px solid rgba(38, 112, 236, 0.28);
	outline-offset: 2px;
}

.LP_CloseBtn {
	width: 40px;
	padding: 0;
	border-radius: 50%;
}

.LaunchpadEditing .LP_EditBtn {
	border-color: #246ee9;
	background: #246ee9;
	color: #fff;
}

.LP_ResetBtn {
	display: none;
	color: #b44545;
}

.LaunchpadEditing .LP_ResetBtn {
	display: inline-flex;
}

.LP_ResetBtn.LP_ConfirmReset {
	border-color: #d86060;
	background: #d86060;
	color: #fff;
}

.LP_SearchRow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0 0 18px;
	border-bottom: 1px solid rgba(52, 73, 94, 0.12);
}

.LP_SearchBox {
	display: flex;
	align-items: center;
	width: min(430px, 62%);
	height: 42px;
	box-sizing: border-box;
	gap: 10px;
	padding: 0 14px;
	border: 1px solid #dce3ec;
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.88);
	color: #8190a3;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.LP_SearchBox input {
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: #21334d;
	font: inherit;
	font-size: 14px;
}

.LP_Meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 180px;
	gap: 12px;
	color: #7b899b;
	font-size: 12px;
}

#LP_SaveStatus {
	min-width: 52px;
	color: #278052;
	font-weight: 600;
	text-align: end;
}

#LP_SaveStatus.LP_Error {
	color: #c14444;
}

.LaunchpadElements {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	align-content: start;
	flex: 1 1 auto;
	gap: 12px;
	width: auto;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 22px 0 26px;
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-color: #c7d0dc transparent;
}

.Launchpad .SectionDIV {
	position: relative;
	min-width: 0;
	height: 132px;
	box-sizing: border-box;
	border: 1px solid transparent;
	border-radius: 5px;
	background: transparent;
	animation: none;
	transition: border-color 170ms ease, background-color 170ms ease, box-shadow 170ms ease, transform 170ms ease, opacity 170ms ease;
}

.Launchpad .SectionDIV:hover {
	border-color: transparent;
	background: transparent;
	box-shadow: none;
	transform: none;
}

.LaunchpadEditing .SectionDIV {
	border-color: #d8e0ea;
	background: rgba(255, 255, 255, 0.72);
	cursor: default;
}

.LaunchpadEditing .SectionDIV:hover {
	border-color: #b9c9dd;
	transform: translateY(-2px);
}

.Launchpad .LP_AppLink {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	gap: 11px;
	padding: 15px 8px 12px;
	border-radius: inherit;
	background: transparent;
	color: #263950;
	font-size: inherit;
	line-height: normal;
	margin: 0;
	text-align: center;
	text-decoration: none;
	transition: none;
}

.Launchpad .LP_AppLink:hover {
	transform: none;
}

.LP_AppIcon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
}

.Launchpad .LP_AppIcon > img {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	object-fit: contain;
	box-shadow: 0 7px 16px rgba(27, 47, 73, 0.16);
	transition: transform 200ms ease, box-shadow 200ms ease;
}

.Launchpad .LP_AppIcon > i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0;
	border-radius: 14px;
	background: #fff;
	color: #38516e;
	font-size: 34px;
	line-height: 56px;
	box-shadow: 0 7px 16px rgba(27, 47, 73, 0.14);
	transition: background-color 200ms ease, color 200ms ease, border-radius 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.Launchpad .SectionDIV:hover .LP_AppIcon > i {
	background: #34495e;
	color: #fff;
	border-radius: 50px;
	transform: translateY(-2px);
	box-shadow: 0 7px 16px rgba(52, 73, 94, 0.22);
}

.Launchpad .SectionDIV:hover .LP_AppIcon > img {
	transform: translateY(-2px);
	box-shadow: 0 7px 16px rgba(52, 73, 94, 0.24);
}

.Launchpad .LaunchpadEText {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: #2c3d53;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.LP_Pin,
.LP_DragHandle {
	position: absolute;
	top: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	box-sizing: border-box;
	padding: 0;
	border: 1px solid #d8e0e9;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.96);
	color: #78879a;
	box-shadow: 0 4px 11px rgba(26, 45, 70, 0.1);
	cursor: pointer;
	font-size: 12px;
	line-height: 1;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-4px);
	transition: opacity 150ms ease, transform 150ms ease, color 150ms ease, background-color 150ms ease, border-color 150ms ease;
	z-index: 3;
}

.LP_DragHandle {
	inset-inline-start: 8px;
	cursor: grab;
	touch-action: none;
}

.LP_DragHandle:active {
	cursor: grabbing;
}

.LaunchpadDragging {
	opacity: 0.4;
}

.LP_Pin {
	inset-inline-end: 8px;
}

.LaunchpadEditing .LP_Pin,
.LaunchpadEditing .LP_DragHandle {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.Launchpad .SectionDIV.Pinned .LP_Pin {
	border-color: #f0a948;
	background: #fff4df;
	color: #ce7c12;
	transform: translateY(0) rotate(-18deg);
}

.LaunchpadEditing .LP_AppLink {
	pointer-events: none;
}

.LP_FilteredOut {
	display: none;
}

.LP_DragSource {
	opacity: 0.16;
}

.LP_DragGhost {
	position: fixed !important;
	width: 132px !important;
	height: 132px !important;
	margin: 0 !important;
	border-color: #8daede !important;
	background: rgba(255, 255, 255, 0.96) !important;
	box-shadow: 0 20px 42px rgba(17, 37, 64, 0.28) !important;
	opacity: 0.96;
	pointer-events: none;
	transform: scale(1.04) rotate(1deg);
	transition: none !important;
	z-index: 2147483647;
}

.LP_DragGhost .LP_Pin,
.LP_DragGhost .LP_DragHandle {
	display: none;
}

.LP_Footer {
	display: flex;
	align-items: center;
	min-height: 42px;
	box-sizing: border-box;
	padding: 10px 0 0;
	border-top: 1px solid rgba(52, 73, 94, 0.12);
	background: transparent;
	color: #77869a;
	font-size: 12px;
	line-height: 18px;
}

.LP_EditHint {
	display: none;
}

.LaunchpadEditing .LP_BrowseHint {
	display: none;
}

.LaunchpadEditing .LP_EditHint {
	display: inline;
}

body.LP_NoScroll {
	overflow: hidden !important;
}

@media (max-width: 760px) {
	.Launchpad {
		padding: 12px;
	}

	.LP_Panel {
		width: calc(100% - 24px);
		height: calc(100vh - 24px);
		min-height: 0;
		margin: 12px auto 0;
		padding: 16px;
		border-radius: 20px;
	}

	.LP_Header {
		align-items: flex-start;
		padding: 0 0 13px;
	}

	.LP_Heading > img,
	.LP_Heading p {
		display: none;
	}

	.LP_Toolbar {
		gap: 5px;
	}

	.LP_Btn {
		padding: 0 11px;
	}

	.LP_SearchRow {
		align-items: stretch;
		flex-direction: column;
		gap: 8px;
		padding: 0 0 13px;
	}

	.LP_SearchBox {
		width: 100%;
	}

	.LP_Meta {
		justify-content: space-between;
	}

    .LaunchpadCount {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    #LP_ResultCount {
        color: #7b899b;
    }

    #LP_SaveStatus {
        color: #278052;
        font-weight: 600;
    }

    #LP_SaveStatus.LP_Error {
        color: #c14444;
    }

    #LP_SaveStatus:empty,
    #LP_ResultCount:empty {
        display: none;
    }

	.LaunchpadElements {
		grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
		gap: 8px;
		padding: 16px 0;
	}

	.Launchpad .SectionDIV {
		height: 120px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.Launchpad,
	.LP_Panel,
	.Launchpad .SectionDIV,
	.LP_Btn,
	.LP_CloseBtn,
	.LP_Pin,
	.LP_DragHandle,
	.Dock a {
		animation: none !important;
		transition-duration: 1ms !important;
	}
}
