/* Topbar flat hiện đại */
.topbar { position: sticky; top: 0; z-index: 3000; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: var(--bg-surface); -webkit-backdrop-filter: saturate(180%) blur(6px); backdrop-filter: saturate(180%) blur(6px); border-bottom: 1px solid var(--border-color); }
.topbar__left,.topbar__center,.topbar__right { display: flex; align-items: center; gap: 12px; }
.brand { display:flex; align-items:center; gap:6px; text-decoration:none; }
.brand-text { font-weight:800; color: var(--color-primary); letter-spacing:.2px; font-size: var(--font-size-xl); }
.brand-logo{ width:40px; height:40px; border-radius:4px; }
.brand-model{ font-size: var(--font-size-base); color: var(--text-muted); margin-left:4px; }
.search { position: relative; }
.search input{ height: 36px; width: 360px; padding: 0 36px 0 12px; border: 1px solid var(--border-color); border-radius: 8px; outline: none; background-color: var(--bg-surface); color: var(--text-color); }
.search input::placeholder { color: var(--text-muted); }
.search .icon{ position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.topbar-search-suggestions {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	box-shadow: var(--shadow-lg);
	z-index: 3002;
	max-height: 320px;
	overflow-y: auto;
	padding: 6px;
}
.topbar-search-suggestion {
	width: 100%;
	border: 0;
	background: transparent;
	color: var(--text-color);
	text-align: left;
	border-radius: 8px;
	padding: 9px 10px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.topbar-search-suggestion:hover,
.topbar-search-suggestion.active {
	background: var(--light-bg);
}
.topbar-search-suggestion .suggestion-name {
	font-size: var(--font-size-base);
	font-weight: 600;
	line-height: 1.35;
}
.topbar-search-suggestion .suggestion-description {
	font-size: var(--font-size-sm);
	color: var(--text-muted);
	line-height: 1.35;
	display: -webkit-box;
	/* -webkit-line-clamp: 1; */
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.view-toggle{ display: inline-flex; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.toggle-btn{ padding: 6px 10px; background: var(--bg-surface); border: 0; cursor: pointer; color: var(--text-muted); font-size: var(--font-size-base); }
.toggle-btn.active{ background: var(--light-bg); color: var(--color-primary); font-weight: 600; }
.avatar-container { position: relative; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--light-bg); display: grid; place-items: center; color: var(--text-muted); cursor: pointer; transition: all 0.2s ease; font-size: var(--font-size-md); font-weight: 600; overflow: hidden; }
.avatar:hover { background: var(--border-color); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: var(--shadow-lg); min-width: 220px; z-index: 3003; overflow: hidden; margin-top: 4px; }
.dropdown-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text-color); text-decoration: none; transition: background-color 0.2s ease; font-size: var(--font-size-md); }
.dropdown-item:hover { background-color: var(--light-bg); }
.dropdown-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dropdown-icon svg { width: 100%; height: 100%; }
.dropdown-divider { height: 1px; background-color: var(--border-color); margin: 4px 0; }
.language-switcher { display: flex; align-items: center; gap: 12px; position: relative; }
.language-select { margin-left: auto; padding: 6px 32px 6px 12px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-surface); color: var(--text-color); font-size: var(--font-size-base); cursor: pointer; transition: all 0.2s ease; appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%234ba5db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 12px; min-width: 120px; }
.language-select:hover { border-color: var(--color-primary); }
.language-select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(75, 165, 219, 0.1); }
.btn-primary { background-color: var(--color-primary); color: white; border: none; padding: 8px 16px; border-radius: 6px; font-size: var(--font-size-base); font-weight: 500; cursor: pointer; transition: all 0.2s ease; }
.btn-primary:hover { opacity: 0.9; }

/* Notification Bell */
.notification-bell { position: relative; }
.bell-btn {
	position: relative;
	width: 36px; height: 36px;
	background: color-mix(in srgb, var(--color-primary) 10%, transparent);
	border: 0;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	color: var(--color-primary);
	transition: background 0.2s ease, transform 0.15s ease;
}
.bell-btn:hover {
	background: color-mix(in srgb, var(--color-primary) 16%, transparent);
	transform: translateY(-1px);
}
.bell-btn:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--color-primary) 45%, transparent);
	outline-offset: 2px;
}
.bell-icon {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.bell-badge {
	position: absolute;
	top: 2px; right: 2px;
	background: var(--color-danger);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	min-width: 16px; height: 16px;
	border-radius: 10px;
	padding: 0 3px;
	display: flex; align-items: center; justify-content: center;
	line-height: 1;
	pointer-events: none;
}
.bell-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	box-shadow: var(--shadow-lg);
	width: 320px;
	z-index: 3003;
	overflow: hidden;
}
.bell-dropdown-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 10px 14px;
	border-bottom: 1px solid var(--border-color);
}
.bell-dropdown-title { font-weight: 600; font-size: var(--font-size-md); color: var(--text-color); }
.bell-mark-all-btn {
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: var(--font-size-sm);
	color: var(--color-primary);
	padding: 2px 4px;
}
.bell-mark-all-btn:hover { text-decoration: underline; }
.bell-dropdown-list { max-height: 360px; overflow-y: auto; }
.bell-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 14px;
	cursor: pointer;
	transition: background 0.15s ease;
	border-bottom: 1px solid var(--border-color);
}
.bell-item:last-child { border-bottom: 0; }
.bell-item:hover { background: var(--light-bg); }
.bell-item--unread { border-left: 3px solid var(--color-primary); padding-left: 11px; }
.bell-item--read { border-left: 3px solid transparent; padding-left: 11px; }
.bell-item-top {
	display: flex;
	align-items: center;
	gap: 8px;
}
.bell-item-type-icon {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	border: 1px solid transparent;
}
.bell-item-type-icon--created {
	background: color-mix(in srgb, var(--color-primary) 16%, transparent);
	color: var(--color-primary);
	border-color: color-mix(in srgb, var(--color-primary) 28%, transparent);
}
.bell-item-type-icon--commented {
	background: #ecfeff;
	color: #0e7490;
	border-color: #a5f3fc;
}
.bell-item-type-icon--status {
	background: #f0fdf4;
	color: #15803d;
	border-color: #bbf7d0;
}
.bell-item-type-icon--default {
	background: var(--light-bg);
	color: var(--text-muted);
	border-color: var(--border-color);
}
.bell-item-status {
	font-size: 11px;
	color: var(--text-muted);
	font-weight: 500;
}
.bell-item-status.is-unread {
	color: var(--color-primary);
	font-weight: 700;
}
.bell-unread-dot {
	margin-left: auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--color-primary);
}
.bell-item-msg { font-size: var(--font-size-base); color: var(--text-color); line-height: 1.4; }
.bell-item--unread .bell-item-msg { font-weight: 600; }
.bell-item-time { font-size: var(--font-size-sm); color: var(--text-muted); }
.bell-empty, .bell-loading { padding: 24px 14px; text-align: center; color: var(--text-muted); font-size: var(--font-size-base); }

