/* =========================================================
   NOTIFICATION BADGE & PANEL - Shared Components
   ========================================================= */

/* ========== NAVIGATION MESSAGE BADGE ========== */
.navigation {
	position: relative;
}

.nav-message-badge {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: var(--radius-full);
	background: #dc2626;
	color: white;
	font-size: 0.65rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Inter", sans-serif;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	z-index: 10;
}

/* ========== CUSTOMER NOTIFICATION WRAPPER ========== */
.customer-notification-wrap {
	position: relative;
}

/* Notification Bell Button */
.customer-notification-btn {
	position: relative;
	width: 42px;
	height: 42px;
	border: 1.5px solid var(--border);
	background: var(--bg);
	border-radius: var(--radius-md);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition);
}

.customer-notification-btn:hover {
	background: var(--surface);
	border-color: var(--text);
}

/* Notification Count Badge */
#customerNotifCount {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: var(--danger);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	border-radius: var(--radius-full);
	display: none;
	align-items: center;
	justify-content: center;
}

/* ========== NOTIFICATION PANEL ========== */
.customer-notification-panel {
	display: none;
	position: absolute;
	top: 50px;
	right: 0;
	width: 340px;
	max-width: 90vw;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow:
		0 10px 25px -5px rgba(0, 0, 0, 0.1),
		0 8px 10px -6px rgba(0, 0, 0, 0.02);
	z-index: 1000;
	overflow: hidden;
}

.customer-notification-panel.active {
	display: block;
}

/* Panel Header */
.customer-notification-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 18px;
	background: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
}

.customer-notification-header strong {
	font-size: 0.85rem;
	font-family: "Montserrat", sans-serif;
	color: #1a1a1a;
}

.customer-notification-header small {
	font-size: 0.68rem;
	color: #6b7280;
	font-weight: 500;
}

/* Mark All as Read Button */
.mark-all-read-btn {
	background: transparent;
	border: none;
	color: var(--accent);
	font-size: 0.65rem;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 10px;
	border-radius: var(--radius-full);
	transition: all var(--transition);
	margin-left: auto;
}

.mark-all-read-btn:hover {
	background: var(--accent);
	color: white;
}

/* ========== NOTIFICATION LIST ========== */
#customerNotifList {
	max-height: 400px;
	overflow-y: auto;
}

/* Custom Scrollbar */
#customerNotifList::-webkit-scrollbar {
	width: 5px;
}

#customerNotifList::-webkit-scrollbar-track {
	background: #e5e7eb;
	border-radius: 3px;
}

#customerNotifList::-webkit-scrollbar-thumb {
	background: var(--accent);
	border-radius: 3px;
}

#customerNotifList::-webkit-scrollbar-thumb:hover {
	background: #9a6e4a;
}

/* ========== NOTIFICATION ITEM ========== */
.customer-notification-item {
	display: flex;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid #f0f0f0;
	cursor: pointer;
	transition: background 0.2s ease;
}

.customer-notification-item:hover {
	background: #f9fafb;
}

/* Unread Notification - More Noticeable */
.customer-notification-item.unread {
	background: linear-gradient(
		90deg,
		rgba(212, 163, 115, 0.08) 0%,
		rgba(212, 163, 115, 0.02) 100%
	);
	border-left: 3px solid var(--accent);
	position: relative;
}

.customer-notification-item.unread::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--accent);
	border-radius: 0 2px 2px 0;
}

/* Notification Icon */
.customer-notification-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	flex-shrink: 0;
	color: var(--accent);
}

.customer-notification-item.unread .customer-notification-icon {
	background: rgba(212, 163, 115, 0.15);
}

/* Notification Content */
.customer-notification-content {
	flex: 1;
	min-width: 0;
}

.customer-notification-content strong {
	display: block;
	font-size: 0.8rem;
	color: #111827;
	margin-bottom: 4px;
	font-weight: 600;
}

.customer-notification-item.unread .customer-notification-content strong {
	color: var(--accent);
	font-weight: 700;
}

.customer-notification-content p {
	font-size: 0.75rem;
	color: #6b7280;
	margin: 0 0 4px;
	line-height: 1.4;
}

.customer-notification-item.unread .customer-notification-content p {
	color: #1a1a1a;
	font-weight: 500;
}

.customer-notification-content small {
	font-size: 0.65rem;
	color: #9ca3af;
	display: block;
}

/* Unread Dot Indicator (Alternative to border-left) */
.customer-notification-item.unread
	.customer-notification-content
	strong::after {
	content: "●";
	display: inline-block;
	margin-left: 8px;
	font-size: 8px;
	color: var(--accent);
	vertical-align: middle;
}

/* Empty State */
.customer-notification-empty {
	padding: 32px 24px;
	text-align: center;
	color: #9ca3af;
	font-size: 0.85rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
	.customer-notification-panel {
		width: 320px;
		right: -10px;
	}

	.customer-notification-item {
		padding: 12px 14px;
	}

	.customer-notification-icon {
		width: 32px;
		height: 32px;
		font-size: 0.9rem;
	}
}

@media (max-width: 480px) {
	.customer-notification-panel {
		width: calc(100vw - 40px);
		right: -35px;
	}

	.customer-notification-item {
		padding: 10px 12px;
	}
}
