﻿:root {
	--bg-body: #f4f7fb;
	--bg-card: #ffffff;
	--bg-muted: #f7f9fc;
	--line: #d8e1ec;
	--text: #13243a;
	--text-soft: #5d7087;
	--primary: #0058b8;
	--primary-soft: #e7f0ff;
	--success-soft: #e9f8f0;
	--success-text: #0f6a3f;
	--shadow: 0 8px 24px rgba(17, 48, 87, 0.08);
	--radius-md: 12px;
	--radius-lg: 18px;
	--header-height: 86px;
}

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

html,
body {
	min-height: 100%;
}

body {
	margin: 0;
	font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--text);
	background:
		radial-gradient(circle at 0% 0%, #ffffff 0%, #eef4ff 55%, #e8eef8 100%),
		var(--bg-body);
}

a {
	color: var(--primary);
	text-decoration: none;
}

a:hover,
a:focus-visible {
	text-decoration: underline;
}

a img {
	border: 0;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 600;
	letter-spacing: 0.01em;
}

p {
	margin: 0 0 1rem;
	color: var(--text-soft);
}

ul,
ol {
	margin: 0;
	padding: 0;
}

img {
	max-width: 100%;
	height: auto;
}

.container {
	width: 100%;
	margin: 0 auto;
}

.container-wide {
	width: min(100% - 2rem, 1380px);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 120;
	border-bottom: 1px solid rgba(216, 225, 236, 0.85);
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(12px);
}

.site-header-inner {
	min-height: var(--header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand-block {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.brand-title {
	display: inline-block;
	font-size: clamp(1.35rem, 2vw, 1.9rem);
	font-weight: 700;
	line-height: 1.1;
	color: #0a2344;
}

.brand-title:hover,
.brand-title:focus-visible {
	text-decoration: none;
}

.brand-subtitle {
	margin: 0;
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	font-size: 0.9rem;
	color: var(--text-soft);
}

.brand-subtitle a {
	color: var(--text-soft);
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.main-nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 0.95rem;
	border-radius: 10px;
	border: 1px solid transparent;
	font-weight: 600;
	color: #204166;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.main-nav-link:hover,
.main-nav-link:focus-visible {
	background: #eff5ff;
	border-color: #d3def1;
	text-decoration: none;
}

.main-nav-link.is-active {
	background: #0d3f87;
	border-color: #0d3f87;
	color: #ffffff;
}

.hero-banner {
	margin: 1rem 0 1.1rem;
	background: linear-gradient(145deg, #ffffff, #f2f7ff);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.hero-banner img {
	display: block;
	width: 100%;
	object-fit: cover;
	max-height: 260px;
}

#page.page-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 1.2rem;
	align-items: start;
	padding-bottom: 2rem;
}

#content {
	min-width: 0;
}

#sidebar {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.sidebar-panel,
.post,
.dashboard-card,
.meta,
.table-card {
	background: var(--bg-card);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow);
}

.post {
	padding: 1.2rem 1.25rem;
}

.post + .post {
	margin-top: 1rem;
}

.post .title {
	font-size: 1.4rem;
}

.post .entry + .entry {
	margin-top: 1rem;
}

.post h1 {
	font-size: clamp(1.4rem, 2vw, 2rem);
	margin-bottom: 0.8rem;
}

.post h2 {
	font-size: clamp(1.1rem, 1.7vw, 1.35rem);
	margin: 0.35rem 0 0.8rem;
}

.title,
#sidebar .title {
	display: block;
	margin: 0;
	padding: 1rem 1.1rem;
	border-bottom: 1px solid var(--line);
	font-size: 1rem;
	background: linear-gradient(180deg, #f8fbff, #f2f7ff);
	border-radius: var(--radius-md) var(--radius-md) 0 0;
}

#sidebar p {
	padding: 0 1.1rem;
}

#sidebar ul {
	list-style: none;
}

.sidebar-domain-list {
	max-height: 430px;
	overflow: auto;
	padding: 0.4rem 0.8rem 0.8rem;
}

.sidebar-domain-item {
	margin: 0;
}

.sidebar-domain-item.is-hidden {
	display: none;
}

.sidebar-domain-link {
	display: block;
	padding: 0.45rem 0.55rem;
	border-radius: 8px;
	font-size: 0.92rem;
	color: #1f3b5b;
	word-break: break-word;
}

.sidebar-domain-link:hover,
.sidebar-domain-link:focus-visible {
	background: #eff4fb;
	text-decoration: none;
}

.sidebar-domain-item.is-active .sidebar-domain-link {
	background: var(--primary-soft);
	color: #123e82;
	font-weight: 700;
}

.sidebar-search-wrap {
	padding: 0.9rem 1rem 0.2rem;
}

.sidebar-search {
	width: 100%;
}

.sidebar-load-more {
	margin: 0 1rem 1rem;
}

.sidebar-empty {
	padding: 0.45rem 1rem 1rem;
	color: var(--text-soft);
}

.sidebar-actions {
	padding: 0.35rem 1rem 1rem;
}

.sidebar-actions li + li {
	margin-top: 0.4rem;
}

.panel-body {
	padding: 0.9rem 1.05rem 1rem;
}

.dashboard-card {
	padding: 1rem 1.05rem 1.1rem;
	margin-bottom: 1rem;
}

.dashboard-card:last-child {
	margin-bottom: 0;
}

.dashboard-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.9rem;
}

.dashboard-title {
	font-size: 1.06rem;
}

.dashboard-subtitle {
	margin: 0;
	color: var(--text-soft);
	font-size: 0.92rem;
}

.toolbar-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.7rem;
	margin-bottom: 0.85rem;
}

.field-group {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.field-label {
	font-size: 0.82rem;
	font-weight: 700;
	color: #355272;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

input[type="text"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
	width: 100%;
	min-height: 40px;
	padding: 0.5rem 0.65rem;
	border: 1px solid #cad7e8;
	border-radius: 9px;
	background: #ffffff;
	color: var(--text);
	font: inherit;
}

textarea {
	min-height: 90px;
	resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid rgba(0, 88, 184, 0.25);
	outline-offset: 1px;
	border-color: #7ea9e2;
}

.btn,
button,
input[type="button"],
input[type="submit"],
a.link,
a.link2 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 38px;
	padding: 0.45rem 0.85rem;
	border-radius: 9px;
	border: 1px solid #0a54af;
	background: #0d62ca;
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
a.link:hover,
a.link2:hover {
	filter: brightness(1.04);
	text-decoration: none;
}

.btn-secondary,
.btn-ghost {
	background: #ffffff;
	border-color: #c4d3e8;
	color: #204166;
}

.btn-secondary:hover,
.btn-ghost:hover {
	background: #f4f8ff;
}

.btn-link {
	background: transparent;
	border-color: transparent;
	color: var(--primary);
	padding-left: 0.2rem;
	padding-right: 0.2rem;
}

.btn[disabled],
button[disabled],
input[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

form.is-loading {
	opacity: 0.78;
}

form.is-loading button,
form.is-loading input[type="submit"] {
	pointer-events: none;
}

a.link2 {
	justify-content: flex-start;
	width: 100%;
	margin-bottom: 0.4rem;
	background: #ffffff;
	color: #244a75;
	border-color: #cad8e8;
}

a.link2:last-child {
	margin-bottom: 0;
}

.badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: 0.79rem;
	font-weight: 700;
	line-height: 1.35;
	border: 1px solid transparent;
}

.badge-primary {
	background: var(--primary-soft);
	border-color: #bfd3f6;
	color: #1a4f98;
}

.badge-success {
	background: var(--success-soft);
	border-color: #b8e8cd;
	color: var(--success-text);
}

.badge-neutral {
	background: #f0f4f9;
	border-color: #d8e1ec;
	color: #3f5674;
}

.metrics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 0.7rem;
	margin-bottom: 0.95rem;
}

.metric-card {
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg-muted);
}

.metric-label {
	display: block;
	font-size: 0.78rem;
	color: var(--text-soft);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.metric-value {
	display: block;
	margin-top: 0.25rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: #0f2c4b;
}

.month-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.code-sample {
	margin: 0.7rem 0 1rem;
	padding: 0.8rem 0.95rem;
	border: 1px solid #c6d5e9;
	border-radius: 10px;
	background: linear-gradient(180deg, #f3f8ff, #eef5ff);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
	overflow-x: auto;
}

.code-sample code {
	display: block;
	white-space: pre;
	font-family: "Consolas", "Lucida Console", "Courier New", monospace;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #0f3157;
}

.chart-card {
	position: relative;
}

.chart-container {
	width: 100%;
	min-height: 320px;
}

.chart-container-tall {
	min-height: 420px;
}

.chart-card.is-loading .chart-container {
	opacity: 0.3;
}

.chart-card.is-loading::after {
	content: "Nacitavam data...";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
	font-weight: 700;
	color: #335980;
}

.table-shell {
	overflow: auto;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: #ffffff;
}

.table-toolbar {
	position: sticky;
	top: calc(var(--header-height) + 0.55rem);
	z-index: 40;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.55rem;
	margin: 0 0 0.75rem;
	padding: 0.55rem 0.65rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: rgba(247, 250, 255, 0.96);
	backdrop-filter: blur(8px);
}

.table-toolbar-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.table-toolbar-meta {
	font-size: 0.84rem;
	color: #355272;
}

.table-modern {
	width: 100%;
	min-width: 700px;
	border-collapse: separate;
	border-spacing: 0;
}

.table-modern th,
.table-modern td {
	padding: 0.52rem 0.6rem;
	vertical-align: top;
	border-bottom: 1px solid #e6edf5;
}

.table-modern thead th {
	position: sticky;
	top: 0;
	z-index: 5;
	background: #f2f7ff;
	font-size: 0.84rem;
	text-align: left;
	color: #294667;
	white-space: nowrap;
}

.table-modern tbody tr:nth-child(even) {
	background: #f8fbff;
}

.table-modern tbody tr:hover {
	background: #edf4ff;
}

.table-modern td.number,
.table-modern th.number {
	text-align: right;
	white-space: nowrap;
}

.table-modern tfoot td {
	background: #f0f4fb;
	font-weight: 700;
}

.table-compact td,
.table-compact th {
	padding-top: 0.45rem;
	padding-bottom: 0.45rem;
}

.domain-table-link {
	font-weight: 700;
}

.domain-table-link.is-active {
	color: #0a4f9f;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	margin-top: 0.8rem;
}

.pagination .btn,
.pagination .btn-secondary {
	min-height: 34px;
	padding: 0.3rem 0.7rem;
}

.empty-state {
	padding: 1rem;
	border: 1px dashed #c8d6e8;
	border-radius: 10px;
	background: #f7f9fd;
	color: #4d6480;
}

.auth-card {
	max-width: 420px;
}

.auth-form {
	display: grid;
	gap: 0.75rem;
}

.auth-actions {
	display: flex;
	justify-content: flex-end;
}

.right {
	float: right;
}

.center {
	margin-left: auto;
	margin-right: auto;
}

.is-hidden {
	display: none !important;
}

.u-flex {
	display: flex;
}

.u-flex-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.7rem;
}

.u-gap-sm {
	gap: 0.5rem;
}

.u-gap-md {
	gap: 1rem;
}

.u-flex-column {
	flex-direction: column;
}

.u-mt-sm {
	margin-top: 0.6rem;
}

.u-mt-md {
	margin-top: 1rem;
}

.u-mb-0 {
	margin-bottom: 0;
}

.u-text-muted {
	color: var(--text-soft);
}

.u-full-width {
	width: 100%;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.site-footer {
	padding: 1.2rem 0 1.8rem;
	color: var(--text-soft);
}

.site-footer p {
	margin: 0;
	text-align: center;
	font-size: 0.9rem;
}

.standalone-page {
	padding: 1.2rem;
}

.standalone-page .dashboard-card {
	margin-bottom: 1rem;
}

.standalone-page .table-toolbar {
	top: 0.55rem;
}

@media (min-width: 1080px) {
	#sidebar {
		position: sticky;
		top: calc(var(--header-height) + 0.9rem);
		max-height: calc(100vh - var(--header-height) - 1.4rem);
		overflow: auto;
		padding-right: 0.2rem;
	}
}

@media (max-width: 1079px) {
	#page.page-layout {
		grid-template-columns: 1fr;
	}

	#sidebar {
		order: -1;
	}

	.sidebar-domain-list {
		max-height: 260px;
	}
}

@media (max-width: 760px) {
	:root {
		--header-height: 76px;
	}

	.container-wide {
		width: min(100% - 1.1rem, 1380px);
	}

	.site-header-inner {
		flex-direction: column;
		align-items: flex-start;
		padding: 0.6rem 0;
	}

	.main-nav {
		width: 100%;
	}

	.main-nav-link {
		flex: 1 1 auto;
	}

	.hero-banner {
		margin-top: 0.7rem;
	}

	.hero-banner img {
		max-height: 170px;
	}

	.post,
	.dashboard-card {
		padding: 0.9rem;
	}

	.table-modern {
		min-width: 600px;
	}

	.code-sample code {
		font-size: 0.83rem;
	}
}

