@import url('/assets/styles/shared/buttons.css?v=20261008-buttons');
@import url('/assets/styles/shared/icons.css?v=20261007-external-css');
@import url('/assets/styles/shared/theme-icons.css?v=20261010-svg-icons');
@import url('/assets/styles/shared/record-list.css?v=20261007-external-css');
@import url('/assets/styles/shared/contact-fields.css?v=20261007-external-css');
@import url('/assets/styles/shared/box-sizing.css?v=20261007-external-css');
@font-face {
    font-family: "Muli";
    font-style: normal;
    font-weight: 300;
    src: local("Muli Light"), local("Muli-Light"),
        url("/assets/font/muli/muli-light.ttf") format("truetype");
}
@font-face {
    font-family: "Muli";
    font-style: normal;
    font-weight: 400;
    src: local("Muli Regular"), local("Muli-Regular"),
        url("/assets/font/muli/muli-regular.ttf") format("truetype");
}
@font-face {
    font-family: "Muli";
    font-style: normal;
    font-weight: 600;
    src: local("Muli SemiBold"), local("Muli-SemiBold"),
        url("/assets/font/muli/muli-semibold.ttf") format("truetype");
}
@font-face {
    font-family: "Muli";
    font-style: normal;
    font-weight: 700;
    src: local("Muli Bold"), local("Muli-Bold"),
        url("/assets/font/muli/muli-bold.ttf") format("truetype");
}

:root {
	color-scheme: light dark;
	--alert-bg: #cb0f2b;
	--alert-fg: #ffffff;
	--bg: #f4f7fb;
	--panel: #ffffff;
	--border: #dfe7f1;
	--primary: #1e3a5f;
	--primary-soft: #eaf2ff;
	--text: #1d2433;
	--muted: #667085;
	--alternate-row: #f2f4f7;
	--footer-bg: #1e3a5f;
	--shadow: rgba(15, 23, 42, 0.14);
	--icon-filter: none;
	--fc-classic-background: var(--bg);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-color-scheme]) {
		--bg: #0b1220;
		--panel: #111827;
		--border: #243244;
		--primary: #8bb4ff;
		--primary-soft: rgba(139, 180, 255, 0.15);
		--text: #e5edf9;
		--muted: #a8b6c9;
		--alternate-row: #1b2433;
		--footer-bg: #111827;
		--shadow: rgba(2, 6, 23, 0.7);
		--icon-filter: invert(1);
	}
}

:root[data-color-scheme='light'] {
	color-scheme: light;
}

:root[data-color-scheme='dark'] {
	color-scheme: dark;
	--bg: #0b1220;
	--panel: #111827;
	--border: #243244;
	--primary: #8bb4ff;
	--primary-soft: rgba(139, 180, 255, 0.15);
	--text: #e5edf9;
	--muted: #a8b6c9;
	--alternate-row: #1b2433;
	--footer-bg: #111827;
	--shadow: rgba(2, 6, 23, 0.7);
	--icon-filter: invert(1);
}

html,
body {
	margin: 0;
	width: 100%;
	min-height: 100%;
    font-family: 'Muli', 'Helvetica Neue', 'Arial', sans-serif;
	background: var(--bg);
	color: var(--text);
}

body {
	min-height: 100vh;
}

.page {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto minmax(0, 1fr) auto;
	grid-template-areas:
		'header'
		'main'
		'footer';
	width: 100%;
	height: 100vh;
	min-height: 0;
	overflow: hidden;
	position: relative;
}

.page.sidebar-collapsed {
	grid-template-columns: 1fr;
}

.header {
	grid-area: header;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0 24px;
	background: var(--panel);
	border-bottom: 1px solid var(--border);
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
	color: var(--primary);
}

.logo-mark {
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.logo-mark img {
	width: 24px;
	height: 24px;
	display: block;
}

.brand-mark {
	display:none;
}

.status-marker {
	background: var(--alert-bg);
	border-radius: 4px;
	color: var(--alert-fg);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1;
	padding: 6.4px;
	text-transform: uppercase;
}

.header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
	color: var(--muted);
}

.header-actions jina-shortcuts {
	display: block;
	width: fit-content;
	max-width: calc(100% - 54px);
}

.toggle-sidebar {
	border: 1px solid var(--border);
	background: var(--primary-soft);
	color: var(--primary);
	border-radius: 10px;
	width: 40px;
	height: 40px;
	font-size: 1.2rem;
	cursor: pointer;
}

.aside {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 200px;
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform 0.25s ease;
	background: var(--panel);
	border-right: 1px solid var(--border);
	padding: 20px 16px;
	overflow: hidden;
	z-index: 50;
	box-shadow: 0 12px 35px rgba(15, 23, 42, 0.14);
}

.aside > jina-navbar {
	display: block;
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	min-width: 0;
	max-width: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.aside > jina-user-panel {
	display: block;
	flex: 0 0 auto;
}

.page.sidebar-open .aside {
	transform: translateX(0);
}

.sidebar-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.35);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.2s ease,
		visibility 0s linear 0.2s;
	z-index: 40;
}

.page.sidebar-open .sidebar-backdrop {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.nav-title {
	margin: 0 0 16px;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nav a {
	display: block;
	padding: 12px 14.4px;
	border-radius: 10px;
	color: var(--text);
	text-decoration: none;
	background: transparent;
	transition: background 0.2s ease;
	white-space: nowrap;
}

.page.sidebar-collapsed .nav-title,
.page.sidebar-collapsed .nav a {
	opacity: 0;
	pointer-events: none;
}

.page.sidebar-collapsed .nav {
	gap: 0;
}

.nav a:hover,
.nav a.active {
	background: var(--primary-soft);
	color: var(--primary);
	font-weight: 600;
}

.main {
	grid-area: main;
	padding: 0;
	margin: 0 8px 0 4px;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

.main > full-calendar {
	flex: 1 1 0;
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

.main > full-calendar > .jina-toolbar {
	flex-shrink: 0;
}
.fc-3f {
	top: 0 !important;
}

h1 {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.footer {
	grid-area: footer;
	padding: 16px 24px;
	background: var(--footer-bg);
	color: white;
	text-align: center;
}

.footer a {
	color: inherit;
	text-underline-offset: 3px;
}

.footer a:hover,
.footer a:focus-visible {
	text-decoration-thickness: 2px;
}

@media (max-width: 720px) {
	.aside {
		width: min(320px, calc(100vw - 40px));
		box-sizing: border-box;
		padding: 12px 10px;
	}
}

@media (min-width: 721px) {
	.page {
		grid-template-columns: 250px minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr) auto;
		grid-template-areas:
			'header header'
			'aside main'
			'footer footer';
		transition: grid-template-columns 0.25s ease;
	}

	.page.sidebar-collapsed {
		grid-template-columns: 0 minmax(0, 1fr);
	}

	.page.sidebar-collapsed .aside {
		visibility: hidden;
		pointer-events: none;
		transition-delay: 0.25s;
	}
	.brand-mark {
		display: inline-block;
	}

	.aside {
		position: static;
		width: auto;
		min-width: 0;
		transform: none;
		visibility: visible;
		transition: visibility 0s linear;
		box-shadow: none;
		border-right: 1px solid var(--border);
		border-bottom: none;
		min-height: 0;
		overflow: hidden;
	}

	.main {
		margin: 0;
		padding: 24px;
	}

	.main:has(> full-calendar) {
		padding: 8px;
	}
	.sidebar-backdrop {
		display: none;
	}

	.page.sidebar-open .main {
		filter: none;
	}

}

@media print {
	body,
	.page {
		height: auto;
		overflow: visible;
	}

	.page {
		display: block;
	}

	.header,
	.aside,
	.footer,
	.sidebar-backdrop {
		display: none !important;
	}

	.main {
		padding: 0;
		overflow: visible;
	}

	jina-academy {
		height: auto;
		overflow: visible;
	}
}
