/**
 * /www/wwwroot/client.netcorehub.net/assets/css/panel.css
 */

:root {
	--bg: #f4f7fb;
	--card: #ffffff;
	--text: #1c2733;
	--muted: #697586;
	--line: #d9e3ef;
	--primary: #1f4d7a;
	--primary-hover: #163a5b;
	--soft: #eef4fa;
	--soft-2: #f8fbff;
	--shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	--shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.05);
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
}

body {
	min-height: 100vh;
	font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
	color: inherit;
	text-decoration: none;
}

.page-shell {
	max-width: 1420px;
	margin: 0 auto;
	padding: 18px 20px 90px;
}

.topbar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 18px;
	margin-bottom: 14px;
}

.brand-block h1 {
	margin: 0 0 4px 0;
	font-size: 28px;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.brand-block p {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}

.topbar-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: var(--shadow-soft);
}

.lang-switch a {
	display: inline-block;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: bold;
	color: var(--primary);
	background: transparent;
}

.lang-switch a.active {
	background: var(--primary);
	color: #fff;
}

.logout-link {
	display: inline-block;
	padding: 11px 14px;
	color: #fff;
	background: var(--primary);
	border-radius: 12px;
	font-weight: bold;
	box-shadow: var(--shadow-soft);
}

.logout-link:hover {
	background: var(--primary-hover);
}

.welcome-strip {
	width: 100%;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 12px 16px;
	box-shadow: var(--shadow-soft);
	margin-bottom: 14px;
}

.welcome-strip h2 {
	margin: 0 0 3px 0;
	font-size: 17px;
	line-height: 1.15;
}

.welcome-strip p {
	margin: 0;
	font-size: 12px;
	line-height: 1.35;
	color: var(--muted);
}

.sections-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.section-card {
	display: block;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 12px 14px;
	box-shadow: var(--shadow-soft);
	transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
	min-height: 80px;
}

.section-card:hover {
	transform: translateY(-2px);
	border-color: #bfd2e6;
	background: var(--soft-2);
}

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

.section-icon {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: #e9eef5;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	flex: 0 0 46px;
}

.section-title-wrap h3 {
	margin: 0 0 3px 0;
	font-size: 17px;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.section-title-wrap p {
	margin: 0;
	font-size: 12px;
	line-height: 1.32;
	color: var(--muted);
}

.footer-panel {
	margin-top: 14px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 16px 18px;
	box-shadow: var(--shadow-soft);
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 16px;
}

.footer-block h4 {
	margin: 0 0 6px 0;
	font-size: 14px;
}

.footer-block p {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.4;
}

.footer-links {
	display: grid;
	gap: 6px;
}

.footer-links a {
	font-size: 12px;
	color: var(--primary);
	font-weight: bold;
}

.footer-meta {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 11px;
}

.chat-launcher {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 999;
}

.chat-button {
	width: 62px;
	height: 62px;
	border: none;
	border-radius: 999px;
	background: var(--primary);
	color: #fff;
	font-size: 28px;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(31, 77, 122, 0.28);
}

.chat-button:hover {
	background: var(--primary-hover);
}

.chat-panel {
	position: absolute;
	right: 0;
	bottom: 76px;
	width: 320px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
	padding: 18px;
	display: none;
}

.chat-panel.open {
	display: block;
}

.chat-panel h4 {
	margin: 0 0 8px 0;
	font-size: 16px;
}

.chat-panel p {
	margin: 0 0 12px 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--muted);
}

.chat-suggestions {
	display: grid;
	gap: 8px;
}

.chat-suggestions button {
	text-align: left;
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 12px;
	padding: 10px 12px;
	cursor: pointer;
	font-size: 13px;
	color: var(--text);
}

.chat-suggestions button:hover {
	background: var(--soft);
}

@media (max-width: 1100px) {
	.sections-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.page-shell {
		padding: 18px 14px 100px;
	}

	.topbar {
		flex-direction: column;
		align-items: stretch;
	}

	.topbar-right {
		justify-content: space-between;
	}

	.sections-grid {
		grid-template-columns: 1fr;
	}

	.section-head {
		align-items: flex-start;
	}

	.section-icon {
		width: 60px;
		height: 60px;
		flex-basis: 60px;
		font-size: 24px;
	}

	.section-title-wrap h3 {
		font-size: 20px;
	}

	.section-title-wrap p {
		font-size: 14px;
	}

	.chat-panel {
		width: min(320px, calc(100vw - 28px));
	}
}