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

html {
	font-size: 14px;
}

body,
body *:not(pre):not(code):not(kbd):not(samp):not(.ace_editor):not(.ace_scroller):not([class*="ace_"]):not(.monaco-editor):not(.cm-editor) {
	font-family: "Inter", sans-serif;
}

:root,
[data-theme="light"],
[data-theme="ivory"] {
	--primary: #b26d2f;
	--primary-color: #b26d2f;
	--bg-color: #f6f2eb;
	--fg-color: #efeadf;
	--card-bg: #efeadf;
	--modal-bg: #f6f2eb;
	--toast-bg: #f6f2eb;
	--popover-bg: #efeadf;
	--text-color: #231f1a;
	--text-muted: #6d6257;
	--text-light: #6d6257;
	--border-color: #d8cec0;
	--dark-border-color: #c9bcac;
	--table-border-color: #d8cec0;
	--control-bg: #e8e2d6;
	--control-bg-on-gray: #ddd5c9;
	--disabled-control-bg: #e2dbcf;
	--subtle-accent: #e8e2d6;
	--subtle-fg: #ddd5c9;
	--navbar-bg: #f6f2eb;
	--sidebar-select-color: #e8e2d6;
	--btn-primary: #b26d2f;
	--btn-default-bg: #e8e2d6;
	--btn-default-hover-bg: #ddd5c9;
	--btn-ghost-hover-bg: #ddd5c9;
	--scrollbar-thumb-color: #c9bcac;
	--scrollbar-track-color: #e8e2d6;
	--focus-default: 0 0 0 2px rgba(178, 109, 47, 0.35);
}

[data-theme="dark"] {
	--primary: #b9874a;
	--primary-color: #b9874a;
	--bg-color: #0b0c0e;
	--fg-color: #0b0c0e;
	--card-bg: #0b0c0e;
	--modal-bg: #0b0c0e;
	--toast-bg: #0b0c0e;
	--popover-bg: #0b0c0e;
	--text-color: #ebedf0;
	--text-muted: #a4abb5;
	--text-light: #a4abb5;
	--border-color: #1b1f26;
	--dark-border-color: #1b1f26;
	--table-border-color: #1b1f26;
	--control-bg: #12161d;
	--control-bg-on-gray: #12161d;
	--disabled-control-bg: #12161d;
	--subtle-accent: #0b0c0e;
	--subtle-fg: #12161d;
	--navbar-bg: #0b0c0e;
	--sidebar-select-color: #12161d;
	--btn-primary: #b9874a;
	--btn-default-bg: #12161d;
	--btn-default-hover-bg: #1b1f26;
	--btn-ghost-hover-bg: #1b1f26;
	--scrollbar-thumb-color: #2a303b;
	--scrollbar-track-color: #12161d;
	--focus-default: 0 0 0 2px rgba(185, 135, 74, 0.45);
}


.body-sidebar .standard-sidebar-item {
	border-left: 2px solid transparent;
}

[data-theme="ivory"] .body-sidebar,
[data-theme="ivory"] .desk-sidebar,
[data-theme="ivory"] .layout-side-section {
	background: linear-gradient(180deg, #f6f2eb 0%, #efe8dd 100%) !important;
	border-right: 1px solid #d8cec0 !important;
}

[data-theme="dark"] .body-sidebar,
[data-theme="dark"] .desk-sidebar,
[data-theme="dark"] .layout-side-section {
	background: linear-gradient(180deg, #0b0c0e 0%, #101216 100%) !important;
	border-right: 1px solid #1b1f26 !important;
}

[data-theme="ivory"] .body-sidebar .sidebar-item-label,
[data-theme="ivory"] .desk-sidebar .sidebar-item-label,
[data-theme="ivory"] .layout-side-section .sidebar-item-label {
	color: #2a2219 !important;
}

[data-theme="dark"] .body-sidebar .sidebar-item-label,
[data-theme="dark"] .desk-sidebar .sidebar-item-label,
[data-theme="dark"] .layout-side-section .sidebar-item-label {
	color: #ebedf0 !important;
}

.body-sidebar .standard-sidebar-item:hover {
	border-left-color: rgba(178, 109, 47, 0.35);
	background: color-mix(in srgb, var(--sidebar-select-color) 65%, transparent) !important;
}

.body-sidebar .standard-sidebar-item.active-sidebar {
	border-left-color: #b26d2f !important;
	background: color-mix(in srgb, var(--sidebar-select-color) 80%, transparent) !important;
}


.workspace-icon,
.icon-container {
	background: transparent !important;
}

.title-input-wrapper {
	background: transparent;
	border: none;
}

.settings-section-card,
.desk-settings-module {
	background: transparent !important;
}

.splash,
#splash {
	background: var(--bg-color) !important;
	display: flex;
	align-items: center;
	justify-content: center;
}

.splash img,
#splash img {
	opacity: 0 !important;
}

.splash::before,
#splash::before {
	content: "";
	display: block;
	width: 220px;
	height: 48px;
	background: url("/assets/ys_theme/img/4ys-suite-logo.svg") center/contain no-repeat;
	filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.16));
}

[class*="powered-by"] {
	display: none !important;
}

a[href*="frappe.io"],
a[href*="frappecloud.com"] {
	display: none !important;
}

a[href*="frappeframework.com/support"],
a[href*="support.frappe.io"],
a[href*="github.com/frappe"],
a[href*="x.com/frappetech"],
a[href*="linkedin.com/company/frappe-tech"],
a[href*="youtube.com/@frappetech"],
a[href*="instagram.com/frappetech"] {
	display: none !important;
}


.navbar-home .navbar-4ys-logo {
	filter: none;
}

[data-theme="dark"] .navbar-home .navbar-4ys-logo {
	filter: brightness(0) invert(1);
}

