@font-face {
	font-family: "Almarai";
	src: url("/assets/universal_standard/fonts/Almarai-Regular.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

:root,
[data-theme="light"] {
	--font-stack: "Almarai", "Noto Sans Arabic", "Segoe UI", sans-serif;
	--font-family-sans-serif: "Almarai", "Noto Sans Arabic", "Segoe UI", sans-serif;
	--us-accent: #15803d;
	--us-accent-soft: #dcfce7;
	--us-border-soft: #d9f3df;
	--us-surface-tint: #f6fcf7;
	--us-glow: rgba(21, 128, 61, 0.18);
}

body,
button,
input,
select,
textarea,
.modal,
.form-control,
.widget,
.page-title,
.ellipsis,
.indicator-pill,
.comment-box,
.form-message,
.grid-heading-row,
.sidebar-item-label,
.awesomplete > ul > li {
	font-family: var(--font-family-sans-serif) !important;
}

/* Unified language switch (single element only) */
.us-language-slot {
	display: inline-flex;
	align-items: center;
}

.us-language-switch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	font-weight: 700;
	letter-spacing: 0.2px;
	user-select: none;
}

.us-language-switch.us-in-navbar {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--us-accent);
	color: #fff !important;
	font-size: 12px;
	box-shadow: 0 4px 10px var(--us-glow);
}

.us-language-switch.us-in-navbar:hover {
	background: #166534;
	transform: translateY(-1px);
}

.us-language-switch.us-floating {
	position: fixed;
	top: 86px;
	right: 14px;
	z-index: 9999;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: var(--us-accent);
	color: #fff !important;
	font-size: 13px;
	box-shadow: 0 8px 20px rgba(21, 128, 61, 0.28);
}

.us-language-switch.us-floating:hover {
	background: #166534;
}

[dir="rtl"] .us-language-switch.us-floating {
	left: 14px;
	right: auto;
}

/* Creative but lightweight green highlight */
.navbar,
.page-head {
	border-bottom: 1px solid var(--us-border-soft) !important;
	background: linear-gradient(180deg, #ffffff 0%, #fbfefb 100%);
}

.navbar::after {
	content: "";
	display: block;
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, #22c55e 50%, transparent 100%);
	opacity: 0.45;
}

.layout-side-section,
.desk-sidebar {
	background: linear-gradient(180deg, #ffffff 0%, var(--us-surface-tint) 100%);
}

.desk-sidebar .standard-sidebar-item.selected,
.layout-side-section .standard-sidebar-item.selected,
.workspace-sidebar .standard-sidebar-item.selected {
	background: var(--us-accent-soft);
	color: var(--us-accent);
	border-radius: 10px;
	box-shadow: inset 0 0 0 1px #c6efd3;
}

.standard-sidebar-item:hover {
	background: #eefaf0;
	border-radius: 10px;
}

.page-title .title-text {
	color: #14532d;
}

.workspace-page .widget,
.frappe-card,
.layout-main-section {
	transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.workspace-page .widget:hover,
.frappe-card:hover {
	box-shadow: 0 10px 24px rgba(21, 128, 61, 0.08);
	border-color: #caeecf;
}

.btn-primary {
	background-color: var(--us-accent) !important;
	border-color: var(--us-accent) !important;
}

.btn-primary:hover,
.btn-primary:focus {
	background-color: #166534 !important;
	border-color: #166534 !important;
}
