/**
 * HNG Commerce - Global Admin Notifications CSS
 *
 * @package HNG_Commerce
 * @version 1.0.0
 */

/* Badge de notificação no menu */
.hng-notification-badge {
	display: inline-block;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	margin-left: 5px;
	background: #d63638;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
	border-radius: 9px;
	vertical-align: middle;
	animation: hng-badge-pulse 2s ease-in-out infinite;
}

/* Badge no menu principal */
#toplevel_page_hng-commerce .hng-notification-badge {
	position: relative;
	top: -2px;
}

/* Badge nos submenus */
#toplevel_page_hng-commerce .wp-submenu a .hng-notification-badge {
	float: right;
	margin-left: 10px;
}

/* Animação de pulso do badge */
@keyframes hng-badge-pulse {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(214, 54, 56, 0.7);
	}
	50% {
		box-shadow: 0 0 0 4px rgba(214, 54, 56, 0);
	}
}

/* Notificação global (popup no topo) */
.hng-global-notification {
	position: fixed;
	top: 32px; /* Abaixo da admin bar */
	left: 50%;
	transform: translateX(-50%) translateY(-100px);
	min-width: 300px;
	max-width: 500px;
	padding: 15px 20px;
	background: #2271b1;
	color: #fff;
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	z-index: 999999;
	opacity: 0;
	transition: all 0.3s ease;
	cursor: pointer;
}

.hng-global-notification.show {
	transform: translateX(-50%) translateY(20px);
	opacity: 1;
}

.hng-global-notification .message {
	display: inline-block;
	font-size: 14px;
	font-weight: 500;
	margin-right: 15px;
}

.hng-global-notification a {
	display: inline-block;
	padding: 4px 12px;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	text-decoration: none;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s ease;
}

.hng-global-notification a:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* Notificação de chat */
.hng-global-notification.chat {
	background: #00a0d2;
}

/* Notificação de pedido */
.hng-global-notification.order {
	background: #46b450;
}

/* Responsivo para mobile */
@media screen and (max-width: 782px) {
	.hng-global-notification {
		top: 46px; /* Admin bar mobile */
		left: 10px;
		right: 10px;
		transform: translateY(-100px);
		max-width: none;
	}

	.hng-global-notification.show {
		transform: translateY(10px);
	}
}
