/* Botao inline de salvar/remover no topo do post (item 12) */
.ng-fav-toggle-wrap {
	margin: 0 0 20px;
}
.ng-fav-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid #e5ecdc;
	background: #f3f7ee;
	color: #3a4a2e;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
.ng-fav-toggle-btn:hover {
	background: #e9f2e2;
}
.ng-fav-toggle-btn.is-saved {
	background: #359138;
	border-color: #359138;
	color: #fff;
}
.ng-fav-toggle-icon {
	font-size: 16px;
	line-height: 1;
}

/* Botao flutuante (empilhado acima do botao de modo escuro, mesmo estilo visual) */
.ng-fav-float-btn {
	position: fixed;
	right: 18px;
	bottom: 76px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid rgba(0,0,0,.12);
	background: #ffffff;
	color: #359138;
	font-size: 19px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0,0,0,.18);
	z-index: 99999;
	padding: 0;
}
.ng-fav-float-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: #d9534f;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

/* Painel lateral deslizante */
.ng-fav-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 340px;
	max-width: 88vw;
	background: #ffffff;
	box-shadow: -4px 0 24px rgba(0,0,0,.18);
	z-index: 100000;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .22s ease;
}
.ng-fav-panel.is-open {
	transform: translateX(0);
}
.ng-fav-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 18px 10px;
	border-bottom: 1px solid #e5ecdc;
}
.ng-fav-panel-title {
	margin: 0;
	font-size: 17px;
	color: #3a4a2e;
}
.ng-fav-panel-close {
	border: none;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	color: #8a9a7e;
	cursor: pointer;
	padding: 4px 8px;
}
.ng-fav-tabs {
	display: flex;
	border-bottom: 1px solid #e5ecdc;
}
.ng-fav-tabs button {
	flex: 1;
	padding: 10px 6px;
	border: none;
	background: transparent;
	color: #8a9a7e;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border-bottom: 2px solid transparent;
}
.ng-fav-tabs button.is-active {
	color: #359138;
	border-bottom-color: #359138;
}
.ng-fav-panel-notice {
	margin: 10px 18px;
	font-size: 11px;
	font-style: italic;
	color: #8a9a7e;
}
.ng-fav-panel-list {
	flex: 1;
	overflow-y: auto;
	padding: 0 12px 18px;
}
.ng-fav-panel-footer {
	padding: 14px 18px;
	border-top: 1px solid #e5ecdc;
}
.ng-fav-export-btn {
	width: 100%;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid #359138;
	background: #359138;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.ng-fav-export-btn:hover {
	background: #2d7a30;
}
.ng-fav-export-btn:disabled {
	opacity: .6;
	cursor: default;
}
.ng-fav-empty {
	margin: 20px 10px;
	font-size: 13px;
	color: #8a9a7e;
}
.ng-fav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 6px;
	border-radius: 8px;
}
.ng-fav-item:hover {
	background: #f3f7ee;
}
.ng-fav-item-link {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
	text-decoration: none;
}
.ng-fav-item-img {
	width: 44px;
	height: 44px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
	background: #f3f7ee;
}
.ng-fav-item-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.ng-fav-item-pop {
	font-size: 13px;
	color: #3a4a2e;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ng-fav-item-sci {
	font-size: 11px;
	color: #8a9a7e;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ng-fav-item-remove {
	border: none;
	background: transparent;
	color: #8a9a7e;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 6px;
	flex-shrink: 0;
}
.ng-fav-item-remove:hover {
	color: #d9534f;
}
.ng-fav-item-addcol {
	border: none;
	background: transparent;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	padding: 6px;
	flex-shrink: 0;
	opacity: .7;
}
.ng-fav-item-addcol:hover {
	opacity: 1;
}
.ng-fav-addcol-menu {
	margin: -4px 0 8px 54px;
	padding: 8px 10px;
	border-radius: 8px;
	background: #f3f7ee;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ng-fav-addcol-row {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #3a4a2e;
}
.ng-fav-addcol-new {
	display: flex;
	gap: 6px;
	margin-top: 4px;
}
.ng-fav-addcol-input {
	flex: 1;
	min-width: 0;
	font-size: 12px;
	padding: 6px 8px;
	border-radius: 6px;
	border: 1px solid #d7e0cf;
}
.ng-fav-addcol-new button {
	padding: 6px 10px;
	border-radius: 6px;
	border: 1px solid #359138;
	background: #359138;
	color: #fff;
	font-size: 12px;
	cursor: pointer;
	flex-shrink: 0;
}
.ng-fav-newcol-top {
	margin: 10px 6px 14px;
}
.ng-fav-col-row {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px;
	border-radius: 8px;
}
.ng-fav-col-row:hover {
	background: #f3f7ee;
}
.ng-fav-col-open {
	flex: 1;
	min-width: 0;
	text-align: left;
	border: none;
	background: transparent;
	font-size: 13px;
	color: #3a4a2e;
	cursor: pointer;
	padding: 4px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ng-fav-col-count {
	color: #8a9a7e;
	font-weight: 400;
}
.ng-fav-col-rename,
.ng-fav-col-delete {
	border: none;
	background: transparent;
	color: #8a9a7e;
	font-size: 14px;
	cursor: pointer;
	padding: 4px 6px;
	flex-shrink: 0;
}
.ng-fav-col-delete:hover {
	color: #d9534f;
}
.ng-fav-col-detail-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px;
	margin-bottom: 8px;
}
.ng-fav-back {
	border: none;
	background: transparent;
	color: #359138;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 0;
}

@media (prefers-color-scheme: dark) {
	.ng-fav-toggle-btn {
		background: #1a2415;
		border-color: #35432b;
		color: #e8f0e0;
	}
	.ng-fav-toggle-btn:hover {
		background: #223020;
	}
	.ng-fav-float-btn {
		background: #1a2415;
		color: #6fc878;
		border-color: rgba(255,255,255,.15);
	}
	.ng-fav-panel {
		background: #141a10;
	}
	.ng-fav-panel-header {
		border-bottom-color: #35432b;
	}
	.ng-fav-panel-title {
		color: #e8f0e0;
	}
	.ng-fav-panel-footer {
		border-top-color: #35432b;
	}
	.ng-fav-item:hover {
		background: #1a2415;
	}
	.ng-fav-item-pop {
		color: #e8f0e0;
	}
	.ng-fav-tabs {
		border-bottom-color: #35432b;
	}
	.ng-fav-addcol-menu {
		background: #1a2415;
	}
	.ng-fav-addcol-row {
		color: #e8f0e0;
	}
	.ng-fav-addcol-input {
		background: #202c1a;
		border-color: #35432b;
		color: #e8f0e0;
	}
	.ng-fav-col-row:hover {
		background: #1a2415;
	}
	.ng-fav-col-open {
		color: #e8f0e0;
	}
}

@media (max-width: 480px) {
	.ng-fav-float-btn {
		bottom: 70px;
	}
}
