/* ==========================================================================
   Notification System Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Bell Icon & Badge
   -------------------------------------------------------------------------- */
.notification-bell {
	position: relative;
	cursor: pointer;
}

.notification-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	font-size: 10px;
	font-weight: 600;
	line-height: 16px;
	text-align: center;
	color: #fff;
	background-color: #e53935;
	border-radius: 8px;
	pointer-events: none;
}

.notification-badge.hidden {
	display: none;
}

/* --------------------------------------------------------------------------
   Notification Dropdown
   -------------------------------------------------------------------------- */
.notification-dropdown .dropdown-menu.notification-menu {
	width: 320px;
	max-width: 90vw;
	padding: 0;
	overflow: hidden;
}

/* Header */
.notification-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 15px;
	border-bottom: 1px solid var(--lm-divider-color, rgba(0,0,0,0.1));
}

body[data-theme="dark"] .notification-header {
	border-bottom-color: var(--dm-divider-color, rgba(255,255,255,0.1));
}

.notification-title {
	font-weight: 600;
	font-size: 14px;
}

.mark-all-read-btn {
	padding: 4px 8px;
	font-size: 12px;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.mark-all-read-btn:hover {
	opacity: 1;
}

.mark-all-read-btn i {
	font-size: 16px;
}

/* Notification List */
.notification-list {
	max-height: 350px;
	overflow-y: auto;
}

/* Individual Notification Item */
.notification-item {
	display: flex;
	align-items: flex-start;
	padding: 12px 15px;
	cursor: pointer;
	border-bottom: 1px solid var(--lm-divider-color, rgba(0,0,0,0.05));
	transition: background-color 0.15s;
	text-decoration: none;
	color: inherit;
}

body[data-theme="dark"] .notification-item {
	border-bottom-color: var(--dm-divider-color, rgba(255,255,255,0.05));
}

.notification-item:hover {
	background-color: var(--lm-dropdown-item-hover-bg, rgba(0,0,0,0.05));
}

body[data-theme="dark"] .notification-item:hover {
	background-color: var(--dm-dropdown-item-hover-bg, rgba(255,255,255,0.05));
}

.notification-item:last-child {
	border-bottom: none;
}

/* Unread indicator */
.notification-item.unread {
	background-color: rgba(33, 150, 243, 0.08);
}

body[data-theme="dark"] .notification-item.unread {
	background-color: rgba(33, 150, 243, 0.12);
}

.notification-dot {
	width: 8px;
	height: 8px;
	min-width: 8px;
	margin-right: 10px;
	margin-top: 5px;
	border-radius: 50%;
	background-color: #2196f3;
}

.notification-item:not(.unread) .notification-dot {
	visibility: hidden;
}

/* Notification Content */
.notification-content {
	flex: 1;
	min-width: 0;
}

.notification-text {
	font-size: 13px;
	line-height: 1.4;
	margin-bottom: 2px;
	word-wrap: break-word;
}

.notification-time {
	font-size: 11px;
	color: var(--lm-text-muted, #666);
	opacity: 0.8;
}

body[data-theme="dark"] .notification-time {
	color: var(--dm-text-muted, #999);
}

/* Loading state */
.notification-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
	color: var(--lm-text-muted, #666);
}

body[data-theme="dark"] .notification-loading {
	color: var(--dm-text-muted, #999);
}

.notification-loading i {
	font-size: 24px;
	margin-right: 8px;
}

/* Empty state */
.notification-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	color: var(--lm-text-muted, #666);
}

body[data-theme="dark"] .notification-empty {
	color: var(--dm-text-muted, #999);
}

.notification-empty i {
	font-size: 40px;
	margin-bottom: 10px;
	opacity: 0.5;
}

.notification-empty p {
	margin: 0;
	font-size: 14px;
}

.notification-empty.hidden {
	display: none;
}

/* Footer */
.notification-footer {
	padding: 10px 15px;
	border-top: 1px solid var(--lm-divider-color, rgba(0,0,0,0.1));
	text-align: center;
}

body[data-theme="dark"] .notification-footer {
	border-top-color: var(--dm-divider-color, rgba(255,255,255,0.1));
}

.notification-settings-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--lm-text-muted, #666);
	text-decoration: none;
	transition: color 0.15s;
}

body[data-theme="dark"] .notification-settings-link {
	color: var(--dm-text-muted, #999);
}

.notification-settings-link:hover {
	color: var(--lm-text-color, #333);
}

body[data-theme="dark"] .notification-settings-link:hover {
	color: var(--dm-text-color, #fff);
}

.notification-settings-link i {
	font-size: 15px;
}

/* --------------------------------------------------------------------------
   Notification Settings Modal
   -------------------------------------------------------------------------- */
.notification-pref-header {
	display: grid;
	grid-template-columns: 1fr 60px 60px;
	gap: 10px;
	padding: 8px 0;
	margin-bottom: 5px;
	border-bottom: 1px solid var(--lm-divider-color, rgba(0,0,0,0.1));
}

body[data-theme="dark"] .notification-pref-header {
	border-bottom-color: var(--dm-divider-color, rgba(255,255,255,0.1));
}

.pref-toggle-header {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	text-align: center;
	color: var(--lm-text-muted, #666);
}

body[data-theme="dark"] .pref-toggle-header {
	color: var(--dm-text-muted, #999);
}

.notification-prefs-list {
	max-height: 400px;
	overflow-y: auto;
}

.notification-pref-item {
	display: grid;
	grid-template-columns: 1fr 60px 60px;
	gap: 10px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--lm-divider-color, rgba(0,0,0,0.05));
}

body[data-theme="dark"] .notification-pref-item {
	border-bottom-color: var(--dm-divider-color, rgba(255,255,255,0.05));
}

.notification-pref-item:last-child {
	border-bottom: none;
}

.pref-info {
	min-width: 0;
}

.pref-label {
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 2px;
}

.pref-description {
	font-size: 12px;
	color: var(--lm-text-muted, #666);
	line-height: 1.3;
}

body[data-theme="dark"] .pref-description {
	color: var(--dm-text-muted, #999);
}

.pref-toggle {
	display: flex;
	justify-content: center;
}

.pref-toggle .custom-switch {
	margin: 0;
}

/* Checkbox styling for preferences */
.pref-checkbox {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #2196f3;
}

/* N/A indicator for disabled options */
.pref-na {
	color: var(--lm-text-muted, #999);
	font-size: 14px;
}

body[data-theme="dark"] .pref-na {
	color: var(--dm-text-muted, #666);
}
