/**
 * 管理员通知系统样式
 * 创建时间：2025-11-07
 */

/* 通知铃铛 */
.admin-notification-bell .btn {
    position: relative;
    color: #fff;
    font-size: 1.2rem;
    padding: 0.5rem;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
}

.admin-notification-bell .btn:hover {
    transform: scale(1.1);
    color: #ffc107;
}

.admin-notification-bell .btn:active {
    transform: scale(0.95);
}

/* 徽章动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.admin-notification-bell .badge {
    animation: pulse 2s infinite;
}

/* 下拉框阴影 */
.notification-dropdown {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 通知项 */
.notification-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.notification-item:hover {
    border-left-color: #007bff;
    background: #e9ecef !important;
}

.notification-item[data-severity="critical"] {
    border-left-color: #dc3545;
}

.notification-item[data-severity="error"] {
    border-left-color: #fd7e14;
}

.notification-item[data-severity="warning"] {
    border-left-color: #ffc107;
}

.notification-item[data-severity="info"] {
    border-left-color: #17a2b8;
}

/* 滚动条样式 */
#notificationList::-webkit-scrollbar {
    width: 6px;
}

#notificationList::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#notificationList::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#notificationList::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 摘要项 */
.summary-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
}

.summary-item strong {
    color: #dc3545;
    font-weight: 700;
}

/* 空状态 */
.notification-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: #6c757d;
}

.notification-empty i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 320px;
        max-height: 500px;
    }
    
    .admin-notification-bell .btn {
        font-size: 1rem;
        padding: 0.4rem;
    }
}

/* 未读指示器 */
.unread-indicator {
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

/* 严重程度图标颜色 */
.severity-icon-info {
    color: #17a2b8;
}

.severity-icon-warning {
    color: #ffc107;
}

.severity-icon-error {
    color: #dc3545;
}

.severity-icon-critical {
    color: #721c24;
    animation: pulse 1.5s infinite;
}

/* 加载动画 */
.notification-loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.notification-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 悬停效果 */
.notification-item .notification-actions {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.notification-item:hover .notification-actions {
    opacity: 1;
}

/* 时间戳样式 */
.notification-time {
    font-size: 0.75rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.notification-time i {
    font-size: 0.7rem;
}

/* 标记已读按钮 */
#markAllReadBtn {
    color: #007bff;
    text-decoration: none;
    transition: all 0.2s ease;
}

#markAllReadBtn:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 查看全部链接 */
#viewAllNotificationsLink {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

#viewAllNotificationsLink:hover {
    color: #0056b3;
    text-decoration: underline;
}

