/* =============================================
   BMA Notifications — Badge + Panel Styles
   ============================================= */

/* Badge */
.bma-notif-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #e53e3e;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	padding: 0 5px;
	margin-left: 5px;
	vertical-align: middle;
	font-style: normal;
}

/* Overlay */
.bma-notif-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 99998;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.bma-notif-overlay.is-open {
	display: block;
	opacity: 1;
}

/* Panel */
.bma-notif-panel {
	position: fixed;
	top: 0;
	right: 0;
	width: 380px;
	max-width: 100vw;
	height: 100vh;
	background: #ffffff;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bma-notif-panel.is-open {
	transform: translateX(0);
}

/* Header */
.bma-notif-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	background: #2B6CB0;
	color: #fff;
	flex-shrink: 0;
}

.bma-notif-title {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #fff;
}

.bma-notif-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
	opacity: 0.8;
	transition: opacity 0.15s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bma-notif-close:hover {
	opacity: 1;
}

/* Body */
.bma-notif-body {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	background: #F7F7F7;
}

/* Empty state */
.bma-notif-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 220px;
	color: #718096;
	text-align: center;
}

.bma-notif-empty svg {
	width: 42px;
	height: 42px;
	color: #2B6CB0;
	margin-bottom: 14px;
	opacity: 0.65;
}

.bma-notif-empty p {
	font-size: 15px;
	margin: 0;
	color: #4A5568;
}

/* Notification cards */
.bma-notif-card {
	background: #fff;
	border-radius: 8px;
	padding: 14px 14px 14px 12px;
	margin-bottom: 10px;
	border-left: 3px solid transparent;
	display: flex;
	gap: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.bma-notif-card:last-child {
	margin-bottom: 0;
}

.bma-notif-card.is-unread {
	border-left-color: #2B6CB0;
	background: #EBF4FF;
}

.bma-notif-unread-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2B6CB0;
	flex-shrink: 0;
	margin-top: 5px;
}

.bma-notif-card-content {
	flex: 1;
	min-width: 0;
}

.bma-notif-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.bma-notif-card-type {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #2B6CB0;
	background: #EBF4FF;
	padding: 2px 7px;
	border-radius: 3px;
}

.bma-notif-card.is-unread .bma-notif-card-type {
	background: #2B6CB0;
	color: #fff;
}

.bma-notif-card-date {
	font-size: 11px;
	color: #718096;
	white-space: nowrap;
	flex-shrink: 0;
}

.bma-notif-card-header {
	margin-bottom: 6px;
}

.bma-notif-card-title {
	font-size: 20px;
	font-weight: 700;
	color: #222222;
	line-height: 1.3;
}

.bma-notif-title-link {
	color: inherit;
	text-decoration: none;
}

.bma-notif-title-link:hover {
	text-decoration: underline;
}

.bma-notif-card-body {
	font-size: 15px;
	color: #3B3B3B;
	line-height: 1.55;
}

.bma-notif-card-body p {
	margin: 0 0 6px;
}

.bma-notif-card-body p:last-child {
	margin-bottom: 0;
}

.bma-notif-card-body a {
	color: #2B6CB0;
	text-decoration: underline;
}

/* Read more link */
.bma-notif-read-more {
	display: inline-block;
	margin-top: 8px;
	font-size: 18px;
	font-weight: 600;
	color: #2B6CB0;
	text-decoration: none;
}

.bma-notif-read-more:hover {
	text-decoration: underline;
}

/* Footer */
.bma-notif-footer {
	padding: 14px 20px;
	border-top: 1px solid #E1E1E1;
	background: #fff;
	flex-shrink: 0;
	text-align: center;
}

.bma-notif-mark-all {
	background: none;
	border: 1px solid #2B6CB0;
	color: #2B6CB0;
	font-size: 13px;
	font-weight: 600;
	padding: 7px 20px;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.bma-notif-mark-all:hover {
	background: #2B6CB0;
	color: #fff;
}

/* Spinner */
.bma-notif-spinner {
	display: flex;
	justify-content: center;
	padding: 20px 0;
}

.bma-notif-spinner-ring {
	display: inline-block;
	width: 28px;
	height: 28px;
	border: 3px solid #D4E6F8;
	border-top-color: #2B6CB0;
	border-radius: 50%;
	animation: bma-spin 0.7s linear infinite;
}

@keyframes bma-spin {
	to { transform: rotate(360deg); }
}

/* Mobile */
@media (max-width: 480px) {
	.bma-notif-panel {
		width: 100vw;
	}
}
