/* 通知相关样式 */

.notify-dropdown .notify-item {
	padding: 12px 16px;
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.2s;
}

.notify-dropdown .notify-item:hover {
	background-color: #f8f9fa;
}

.notify-dropdown .notify-item.unread {
	background-color: #fff3cd;
	border-left: 3px solid #ffc107;
}

.notify-dropdown .notify-item:last-child {
	border-bottom: none;
}

.notify-dropdown .notify-title {
	font-weight: 500;
	margin-bottom: 4px;
	color: #333;
}

.notify-dropdown .notify-content {
	font-size: 0.9em;
	color: #666;
	margin-bottom: 4px;
}

.notify-dropdown .notify-time {
	font-size: 0.8em;
	color: #999;
}

.notify-dropdown .notify-actions {
	margin-top: 8px;
}

.notify-dropdown .notify-actions .btn {
	font-size: 0.8em;
	padding: 2px 8px;
}

.notify-dropdown .empty-state {
	text-align: center;
	padding: 20px;
	color: #999;
	background: #f8f9fa;
	border-radius: 8px;
	margin: 0px;
	border: 1px solid #e9ecef;
}

.notify-dropdown .empty-state i {
	font-size: 2em;
	margin-bottom: 10px;
	opacity: 0.5;
}

/* 通知按钮样式 */
#notifyBtn {
	transition: all 0.2s ease;
	border-radius: 6px;
	padding: 6px 12px;
	position: relative;
	overflow: visible;
}

#notifyBtn:hover {
	background-color: #f8f9fa !important;
	border-color: #adb5bd !important;
	color: #495057 !important;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#notifyBtn:focus {
	box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

/* 通知数字样式 */
#notifyCount {
	font-size: 0.9em;
	font-weight: bold;
	color: #ffffff;
	background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
	border-radius: 50%;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	padding: 10px;
	top: -8px;
	right: -8px;
	box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
	animation: pulse 2s infinite;
	z-index: 1000;
	border: 2px solid #ffffff;
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.1);
	}

	100% {
		transform: scale(1);
	}
}

/* 通知容器样式 */
.notify-container {
	background: transparent;
	padding: 0;
}

/* 通知头部样式 */
.notify-header {
	background: rgba(248, 249, 250, 0.95);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(222, 226, 230, 0.9);
	border-radius: 8px;
	padding: 12px 16px;
	margin: 0 0 8px 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
}

.notify-header:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.notify-title {
	color: #495057;
	font-weight: 600;
	font-size: 0.90rem;
}

.notify-title i {
	color: #6c757d;
}

/* 通知头部按钮样式 */
.notify-dropdown .dropdown-header .btn {
	margin-left: 4px;
	font-size: 0.7rem;
	padding: 4px 8px;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.notify-dropdown .dropdown-header .btn:first-child {
	margin-left: 0;
}

.notify-dropdown .dropdown-header .btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 通知尾部样式 */
.notify-footer {
	padding: 12px 16px;
	background: #f8f9fa;
	margin: 8px 0 0 0;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 通知下拉菜单特定样式 */
.notify-dropdown {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

/* 通知菜单的dropdown-menu类也设置为透明 - 使用更高优先级的选择器 */
.nav-item.dropdown .dropdown-menu.notify-dropdown {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.notify-footer .btn {
	transition: all 0.3s ease;
}

.notify-footer .btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 隐藏滚动条 */
.notify-dropdown::-webkit-scrollbar {
	display: none;
}

/* 通知列表容器样式 */
#notifyList {
	background: transparent;
	padding: 8px 0;
	max-height: 300px;
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

#notifyList::-webkit-scrollbar {
	display: none;
}

/* 通知内容背景颜色修改 */
.notify-dropdown .notify-item.unread {
	background-color: #f8f9fa;
	border-left: 3px solid #6c757d;
}

/* 通知项基础样式 */
.notify-dropdown .notify-item {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	margin: 4px 0;
	border: 1px solid rgba(240, 240, 240, 0.8);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notify-dropdown .notify-item:hover {
	background: rgba(248, 249, 250, 0.95);
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
	border-color: rgba(222, 226, 230, 0.9);
}

/* 未读通知特殊样式 */
.notify-dropdown .notify-item.unread {
	background: linear-gradient(135deg, rgba(255, 243, 205, 0.9) 0%, rgba(255, 234, 167, 0.9) 100%);
	backdrop-filter: blur(10px);
	border-left: 4px solid #ffc107;
	border-color: rgba(255, 193, 7, 0.8);
	animation: unreadPulse 2s infinite;
	position: relative;
	box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.notify-dropdown .notify-item.unread::before {
	content: '';
	position: absolute;
	top: 8px;
	right: 8px;
	width: 8px;
	height: 8px;
	background: #ffc107;
	border-radius: 50%;
	animation: unreadDot 1.5s infinite;
}

.notify-dropdown .notify-item.unread:hover {
	background: linear-gradient(135deg, rgba(255, 234, 167, 0.95) 0%, rgba(253, 203, 110, 0.95) 100%);
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
	border-color: rgba(243, 156, 18, 0.9);
}

/* 已读通知样式 */
.notify-dropdown .notify-item.read {
	background: rgba(248, 249, 250, 0.7);
	backdrop-filter: blur(10px);
	border-left: 4px solid #6c757d;
	border-color: rgba(108, 117, 125, 0.9);
	opacity: 0.9;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.notify-dropdown .notify-item.read:hover {
	background: rgba(233, 236, 239, 0.9);
	opacity: 1;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border-color: rgba(108, 117, 125, 0.9);
}

/* 已读标识样式 */
.read-badge {
	font-size: 0.8em;
	margin-left: 8px;
	opacity: 0.7;
}

.read-badge i {
	color: #28a745 !important;
}

@keyframes unreadPulse {

	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
	}

	50% {
		box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
	}
}

@keyframes unreadDot {

	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: 0.5;
		transform: scale(1.2);
	}
}
