/* 消息通知样式 */
.message-notification {
    position: relative;
    margin-right: 8px;
}

.message-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e0e0e0);
    color: var(--text-primary, #333);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.message-btn:hover {
    background: var(--hover-bg, #f5f5f5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.message-btn i {
    font-size: 14px;
}

.message-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ff4444;
    color: white;
    border-radius: 7px;
    min-width: 14px;
    height: 14px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    z-index: 10;
    line-height: 1;
    padding: 0 2px;
    box-sizing: border-box;
    border: 1px solid white;
    line-height: 10px;
    text-align: center;
}

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

/* 数字较多时的样式优化 */
.message-badge[data-count="99+"] {
    min-width: 22px;
    padding: 0 2px;
}

/* 新消息动画效果 */
.new-message-animation {
    animation: newMessageSlide 0.5s ease-out;
    border-left: 3px solid #007bff;
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.1) 0%, transparent 100%);
}

@keyframes newMessageSlide {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 消息项样式增强 */
.message-item {
    transition: all 0.3s ease;
}

.message-item.unread {
    background: rgba(0, 123, 255, 0.05);
    border-left: 3px solid #007bff;
}

.message-item:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}



/* 通知弹窗样式 */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    z-index: 9999;
    max-width: 260px;
    min-width: 240px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification-popup.show {
    transform: translateX(0);
}

.notification-popup .notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.notification-popup .notification-icon {
    color: #ff4757;
    margin-right: 6px;
    font-size: 14px;
}

.notification-popup .notification-title {
    font-weight: 600;
    color: var(--text-primary, #333);
    margin: 0;
    font-size: 14px;
}

.notification-popup .notification-content {
    color: var(--text-secondary, #666);
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.notification-popup .notification-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.notification-popup .btn-sm {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 3px;
    text-decoration: none;
    border: 1px solid var(--border-color, #e0e0e0);
    background: var(--card-bg, #fff);
    color: var(--text-primary, #333);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: auto;
}

.notification-popup .btn-primary {
    background: var(--primary-color, #007bff);
    color: white;
    border-color: var(--primary-color, #007bff);
}

.notification-popup .btn-sm:hover {
    background: var(--hover-bg, #f5f5f5);
}

.notification-popup .btn-primary:hover {
    background: var(--primary-color-dark, #0056b3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .notification-popup {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
        padding: 10px;
        transform: translateY(-100%);
    }
    
    .notification-popup.show {
        transform: translateY(0);
    }
    
    .notification-popup .notification-title {
        font-size: 13px;
    }
    
    .notification-popup .notification-content {
        font-size: 12px;
    }
}