/**
 * FL系统统一提示组件样式
 * 符合系统整体设计风格
 */

/* 提示容器 */
.fl-notification-container {
    position: fixed;
    top: 80px;
    /* 在header下方 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
    pointer-events: none;
    /* 允许点击穿透到下层元素 */
}

/* 提示框基础样式 */
.fl-notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid #1890ff;
    animation: fl-slide-down 0.3s ease-out;
    opacity: 1;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    pointer-events: auto;
    /* 恢复提示框本身的点击事件 */
}

/* 不同类型的提示框颜色 */
.fl-notification-success {
    border-left-color: #52c41a;
}

.fl-notification-warning {
    border-left-color: #faad14;
}

.fl-notification-error {
    border-left-color: #ff4d4f;
}

.fl-notification-info {
    border-left-color: #1890ff;
}

/* 提示内容区域 */
.fl-notification-content {
    display: flex;
    align-items: center;
    flex: 1;
}

/* 提示图标 */
.fl-notification-icon {
    margin-right: 12px;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.fl-notification-success .fl-notification-icon {
    color: #52c41a;
}

.fl-notification-warning .fl-notification-icon {
    color: #faad14;
}

.fl-notification-error .fl-notification-icon {
    color: #ff4d4f;
}

.fl-notification-info .fl-notification-icon {
    color: #1890ff;
}

/* 提示消息文本 */
.fl-notification-message {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    word-break: break-word;
    flex: 1;
}

/* 关闭按钮 */
.fl-notification-close {
    cursor: pointer;
    color: #999;
    font-size: 18px;
    font-weight: bold;
    padding: 4px 8px;
    margin-left: 12px;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
    user-select: none;
}

.fl-notification-close:hover {
    background: #f5f5f5;
    color: #666;
}

/* 淡出动画 */
.fl-notification-fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

/* 滑入动画 */
@keyframes fl-slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .fl-notification-container {
        top: 60px;
        width: 95%;
        left: 2.5%;
        transform: none;
    }

    .fl-notification {
        padding: 12px 16px;
        margin-bottom: 8px;
    }

    .fl-notification-message {
        font-size: 13px;
    }

    .fl-notification-icon {
        font-size: 16px;
        margin-right: 8px;
    }
}

/* 深色模式支持（如果需要的话） */
@media (prefers-color-scheme: dark) {
    .fl-notification {
        background: #1f1f1f;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .fl-notification-message {
        color: #e6e6e6;
    }

    .fl-notification-close {
        color: #999;
    }

    .fl-notification-close:hover {
        background: #333;
        color: #ccc;
    }
}