/* Jebu Minimal v0.2 — drawer + fab, Hind Siliguri, theme blue / greeny fallback */

:root {
	--jebu-fab-icon-color: #ffffff;
	--jebu-fab-label-color: #ffffff;
	--jebu-primary: #2159e5;
	--jebu-primary-dark: #1a47c0;
	--jebu-green: #16413a;
	--jebu-green-soft: #1c4f45;
	--jebu-bg: #f8fafc;
	--jebu-surface: #ffffff;
	--jebu-border: #e2e8f0;
	--jebu-text: #1e293b;
	--jebu-muted: #64748b;
	--jebu-radius: 12px;
	--jebu-font: 'Hind Siliguri', system-ui, -apple-system, sans-serif;
	--jebu-fs: 16px;
	--jebu-lh: 1.5;
}

/* ── Floating Action Button (right) ── */
.jebu-fab {
	position: fixed;
	right: 18px;
	bottom: 88px;
	z-index: 99980;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px 10px 10px;
	background: var(--jebu-primary);
	color: #fff;
	border: none;
	border-radius: 999px;
	box-shadow: 0 4px 18px rgba(33, 89, 229, 0.35);
	cursor: pointer;
	font-family: var(--jebu-font);
	font-size: 15px;
	font-weight: 600;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
	line-height: 1;
}

.jebu-fab:hover {
	background: var(--jebu-primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 22px rgba(33, 89, 229, 0.45);
}

.jebu-fab-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	height: 28px !important;
	background: rgba(255, 255, 255, 0.22) !important;
	border-radius: 50% !important;
	flex-shrink: 0 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: var(--jebu-fab-icon-color, #ffffff) !important;
	line-height: 1 !important;
}

.jebu-fab-svg {
	width: 17px;
	height: 17px;
	color: #fff;
	display: block;
}

.jebu-fab-label {
	padding-right: 2px !important;
	color: var(--jebu-fab-label-color, #ffffff) !important;
	font-weight: 600 !important;
}

/* ── Overlay ── */
.jebu-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.4);
	z-index: 99990;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.jebu-overlay.is-open {
	opacity: 1;
}

/* ── Left Drawer ── */
.jebu-drawer {
	position: fixed;
	top: 0;
	left: 0;
	width: min(380px, 92vw);
	height: 100%;
	background: var(--jebu-surface);
	z-index: 99991;
	display: flex;
	flex-direction: column;
	transform: translateX(-105%);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12);
	font-family: var(--jebu-font);
	font-size: var(--jebu-fs);
	line-height: var(--jebu-lh);
	color: var(--jebu-text);
}

.jebu-drawer.is-open {
	transform: translateX(0);
}

.jebu-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid var(--jebu-border);
	background: #fff;
	flex-shrink: 0;
}

.jebu-drawer-title {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.jebu-logo {
	font-size: 16px;
	font-weight: 700;
	color: var(--jebu-primary);
}

.jebu-sub {
	font-size: 15px;
	color: var(--jebu-muted);
	font-weight: 500;
}

.jebu-close {
	width: 32px;
	height: 32px;
	border: none;
	background: var(--jebu-bg);
	border-radius: 8px;
	font-size: 20px;
	line-height: 1;
	color: var(--jebu-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jebu-close:hover {
	background: #e2e8f0;
	color: var(--jebu-text);
}

/* Tabs */
.jebu-drawer-tabs {
	display: flex;
	border-bottom: 1px solid var(--jebu-border);
	background: #fff;
	flex-shrink: 0;
}

.jebu-tab {
	flex: 1;
	padding: 11px 8px;
	border: none;
	background: transparent;
	font-family: var(--jebu-font);
	font-size: 16px;
	font-weight: 600;
	color: var(--jebu-muted);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: color 0.15s, border-color 0.15s;
}

.jebu-tab.active {
	color: var(--jebu-primary);
	border-bottom-color: var(--jebu-primary);
}

/* Body */
.jebu-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 14px 16px;
	background: var(--jebu-bg);
}

.jebu-panel {
	display: none;
}

.jebu-panel.active {
	display: block;
}

.jebu-loading {
	color: var(--jebu-muted);
	font-size: 16px;
	padding: 8px 0;
}

/* Bangla text */
.jebu-text {
	font-family: var(--jebu-font);
	font-size: var(--jebu-fs);
	line-height: var(--jebu-lh);
	color: var(--jebu-text);
	white-space: pre-wrap;
	word-break: break-word;
}

.jebu-text ul {
	margin: 0;
	padding-left: 18px;
}

.jebu-text li {
	margin-bottom: 6px;
}

/* Chat */
.jebu-chat {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 120px;
	max-height: calc(100vh - 260px);
	overflow-y: auto;
	margin-bottom: 12px;
}

.jebu-chat:empty::before {
	content: 'এই চাকরি সম্পর্কে যা জানতে চান জিজ্ঞাসা করুন।';
	color: var(--jebu-muted);
	font-size: 16px;
}

.jebu-bubble-user,
.jebu-bubble-bot {
	max-width: 92%;
	padding: 8px 12px;
	border-radius: 12px;
	font-size: var(--jebu-fs);
	line-height: var(--jebu-lh);
	white-space: pre-wrap;
	word-break: break-word;
}

.jebu-bubble-user {
	align-self: flex-end;
	background: var(--jebu-primary);
	color: #fff;
	border-bottom-right-radius: 4px;
}

.jebu-bubble-bot {
	align-self: flex-start;
	background: #fff;
	border: 1px solid var(--jebu-border);
	border-bottom-left-radius: 4px;
	color: var(--jebu-text);
}

.jebu-bubble-bot.is-error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #b91c1c;
}

/* Ask bar */
.jebu-ask-bar {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.jebu-q {
	flex: 1;
	padding: 9px 12px;
	border: 1px solid var(--jebu-border);
	border-radius: 8px;
	font-family: var(--jebu-font);
	font-size: 16px;
	outline: none;
	background: #fff;
}

.jebu-q:focus {
	border-color: var(--jebu-primary);
	box-shadow: 0 0 0 3px rgba(33, 89, 229, 0.12);
}

.jebu-send {
	padding: 9px 14px;
	background: var(--jebu-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-family: var(--jebu-font);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.jebu-send:hover {
	background: var(--jebu-primary-dark);
}

.jebu-send:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.jebu-limit-hint {
	margin: 8px 0 0;
	font-size: 15px;
	color: var(--jebu-muted);
}

.jebu-limit-hint a {
	color: var(--jebu-primary);
	font-weight: 600;
}

/* Mobile tweaks */
@media (max-width: 480px) {
	.jebu-fab {
		right: 12px;
		bottom: 72px;
		padding: 9px 12px 9px 9px;
	}

	.jebu-drawer {
		width: 100vw;
	}
}

/* Body lock when drawer open */
body.jebu-open {
	overflow: hidden;
}

/* Structured Bangla summary */
.jebu-text {
	background: #fff;
	border: 1px solid var(--jebu-border);
	border-radius: 10px;
	padding: 14px 16px;
}

.jebu-sec {
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eef2f7;
}

.jebu-sec:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.jebu-sec-title {
	font-size: 15px;
	font-weight: 700;
	color: #16413a;
	margin: 0 0 8px;
}

.jebu-sec ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jebu-sec li {
	position: relative;
	padding: 4px 0 4px 22px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--jebu-text);
}

.jebu-sec li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #059669;
	box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px #059669;
}

.jebu-fab-img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	display: block;
	border-radius: 2px;
}

/* ── Quick Suggestion Chips ── */
.jebu-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 4px 0 14px;
	transition: opacity 0.2s ease, max-height 0.25s ease;
	max-height: 200px;
	overflow: hidden;
}

.jebu-chips--hidden {
	opacity: 0;
	max-height: 0;
	padding: 0;
	pointer-events: none;
}

.jebu-chip {
	padding: 7px 13px;
	background: #fff;
	border: 1.5px solid var(--jebu-primary);
	border-radius: 999px;
	font-family: var(--jebu-font);
	font-size: 14px;
	font-weight: 600;
	color: var(--jebu-primary);
	cursor: pointer;
	line-height: 1.3;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}

.jebu-chip:hover {
	background: var(--jebu-primary);
	color: #fff;
}

.jebu-chip:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	border-color: var(--jebu-border);
	color: var(--jebu-muted);
}

@media (max-width: 480px) {
	.jebu-chip {
		font-size: 13px;
		padding: 6px 11px;
	}
}

/* ── Quick Suggestion Chips ── */
.jebu-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 4px 0 14px;
	transition: opacity 0.2s ease, max-height 0.25s ease;
	max-height: 120px;
	overflow: hidden;
}

.jebu-chips--hidden {
	opacity: 0;
	max-height: 0;
	padding: 0;
	pointer-events: none;
}

.jebu-chip {
	padding: 7px 14px;
	background: #fff;
	border: 1.5px solid var(--jebu-primary);
	border-radius: 999px;
	font-family: var(--jebu-font);
	font-size: 14px;
	font-weight: 600;
	color: var(--jebu-primary);
	cursor: pointer;
	line-height: 1.3;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}

.jebu-chip:hover {
	background: var(--jebu-primary);
	color: #fff;
}

.jebu-chip:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	border-color: var(--jebu-border);
	color: var(--jebu-muted);
}

/* Profile missing bubble */
.jebu-bubble-profile {
	background: #fffbeb;
	border-color: #fcd34d;
}

.jebu-profile-link {
	display: inline-block;
	margin-top: 8px;
	padding: 5px 12px;
	background: var(--jebu-primary);
	color: #fff !important;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.jebu-profile-link:hover {
	background: var(--jebu-primary-dark);
}

@media (max-width: 480px) {
	.jebu-chip { font-size: 13px; padding: 6px 11px; }
}
