/* ═══════════════════════════════════════════════════════════════════
   Notification Center — Bell icon, dropdown, read/unread states
   ═══════════════════════════════════════════════════════════════════ */

/* ── Topbar Clickable Items (Notifications, Need Help) ────────── */
.header-element.sa-topbar-action {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0 1rem;
	border-inline: 1px solid rgba(255, 255, 255, 0.15);
	transition: background-color 0.15s ease;
}
.sa-topbar-action:hover {
	background-color: rgba(255, 255, 255, 0.15);
}
.sa-topbar-action-inner {
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
}
a.sa-topbar-action-inner {
	color: #fff;
}

/* ── Topbar Date/Time (non-clickable) ─────────────────────────── */
.sa-topbar-datetime {
	display: flex;
	align-items: center;
	padding: 0 1rem;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	gap: 0.25rem;
}

/* ── Bell Icon ─────────────────────────────────────────────────── */
.sa-notification-bell {
	cursor: pointer;
	transition: opacity 0.15s ease;
}
.sa-notification-bell:hover {
	opacity: 0.8;
}
.sa-notification-badge {
	position: relative;
	top: -6px;
	margin-left: 4px;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 24px;
	text-align: center;
	color: #fff;
	background: #dc3545;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ── Dropdown Panel ────────────────────────────────────────────── */
.sa-notification-dropdown {
	width: 475px;
	max-height: 480px;
	padding: 0 !important;
	background: #fff;
	border: 1px solid #e8e8e8 !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
	border-radius: 0 !important;
}
.sa-notification-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.875rem 1.25rem;
	background: #fafafa;
	border-bottom: 1px solid #eee;
}
.sa-notification-header h6 {
	font-size: 0.9rem;
}
.sa-notification-header-actions {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}
.sa-notification-header-actions a {
	font-size: 0.75rem;
	color: var(--primary-color, #0d6efd);
	text-decoration: none;
	white-space: nowrap;
}
.sa-notification-header-actions a:hover {
	text-decoration: underline;
}
.sa-notification-body {
	max-height: 360px;
	overflow-y: auto;
}
.sa-notification-footer {
	padding: 0.5rem 1rem;
	border-top: 1px solid #e9ecef;
	text-align: center;
}

/* ── Individual Notification Item ──────────────────────────────── */
.sa-notif-item {
	display: flex;
	align-items: center;
	position: relative;
	border-bottom: 1px solid #f0f1f3;
	transition: background 0.15s ease;
	background: rgba(13, 110, 253, 0.04);
}
.sa-notif-item:hover {
	background: rgba(13, 110, 253, 0.08);
}
.sa-notif-item:last-child {
	border-bottom: none;
}

/* ── Read State ────────────────────────────────────────────────── */
.sa-notif-item--read {
	background: transparent;
}
.sa-notif-item--read:hover {
	background: #f8f9fa;
}
.sa-notif-item--read .sa-notif-title {
	font-weight: 500;
	color: #6c757d;
}
.sa-notif-item--read .sa-notif-message {
	color: #adb5bd;
}
.sa-notif-item--read .sa-notif-meta {
	color: #adb5bd;
}
.sa-notif-item--read .sa-notif-time {
	color: #ced4da;
}

/* ── Unread Dot ────────────────────────────────────────────────── */
.sa-notif-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #0d6efd;
	flex-shrink: 0;
	margin-top: 4px;
}
.sa-notif-item--read .sa-notif-dot {
	visibility: hidden;
}

/* Link inside notification item (clickable area) */
.sa-notif-link {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0.65rem 2.5rem 0.65rem 0.75rem;
	flex: 1;
	min-width: 0;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}
.sa-notif-link:hover {
	color: inherit;
}

.sa-notif-content {
	flex: 1;
	min-width: 0;
}
.sa-notif-title {
	font-size: 0.8rem;
	font-weight: 600;
	color: #212529;
	margin-bottom: 0.125rem;
}
.sa-notif-message {
	font-size: 0.75rem;
	color: #6c757d;
	line-height: 1.4;
}
.sa-notif-meta {
	font-size: 0.7rem;
	color: #6c757d;
	margin-top: 0.125rem;
}
.sa-notif-time {
	font-size: 0.65rem;
	color: #adb5bd;
	white-space: nowrap;
	margin-top: 0.125rem;
	flex-shrink: 0;
}

/* ── Dismiss Button (X) ──────────────────────────────────────── */
.sa-notif-dismiss {
	position: absolute;
	right: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	border: none;
	background: transparent;
	color: #adb5bd;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	padding: 0;
	transition: all 0.15s ease;
}
.sa-notif-dismiss:hover {
	background: #e9ecef;
	color: #495057;
}

/* ── Notification Checkbox ─────────────────────────────────────── */
.sa-notif-checkbox-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 28px;
	padding-left: 0.5rem;
	cursor: pointer;
	align-self: center;
}
.sa-notif-checkbox {
	width: 14px;
	height: 14px;
	cursor: pointer;
	accent-color: var(--primary-color, #0d6efd);
}

/* ── Action Buttons ──────────────────────────────────────────── */
.sa-notif-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	background: #fff;
	color: #6c757d;
	font-size: 0.8rem;
	cursor: pointer;
	transition: all 0.15s ease;
	padding: 0;
}
.sa-notif-action-btn--labeled {
	width: auto;
	height: 28px;
	padding: 0 0.5rem;
	gap: 0.3rem;
	font-size: 0.7rem;
	font-weight: 500;
}
.sa-notif-action-btn:hover:not(:disabled) {
	background: #f0f1f3;
	color: #212529;
	border-color: #adb5bd;
}
.sa-notif-action-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}
.sa-notif-action-btn--danger:hover:not(:disabled) {
	background: #fff5f5;
	color: #dc3545;
	border-color: #dc3545;
}
.sa-notif-action-divider {
	display: inline-block;
	width: 1px;
	height: 20px;
	background: #dee2e6;
	margin: 0 0.25rem;
}

/* ── Row Highlight (notification click-through) ──────────────── */
.sa-row-highlight td {
	background: rgba(13, 110, 253, 0.25) !important;
}
.sa-row-highlight--fade td {
	background: transparent !important;
	transition: background 2.5s ease;
}
