/* ======================================================== */
/* 文件路径: /admin/dist/js/components/listComponent.css */
/* 中文名称: 列表组件Toast提示样式 */
/* 版本号: v1.0.0 */
/* 日期: 2026-03-05 17:30:00 (北京时间) */
/* 说明: 为ListComponent提供独立的Toast提示样式 */
/* ======================================================== */

/* Toast 容器 - 固定在右下角 */
.list-component-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 350px;
}

/* Toast 消息卡片 */
.list-component-toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    pointer-events: auto;
    border-left: 4px solid;
    margin-bottom: 0;
    width: 100%;
}

.list-component-toast.show {
    transform: translateX(0);
}

/* 不同类型的状态颜色 */
.list-component-toast.list-component-toast-success {
    border-left-color: #28a745;
}
.list-component-toast.list-component-toast-success .list-component-toast-icon {
    color: #28a745;
}

.list-component-toast.list-component-toast-error {
    border-left-color: #dc3545;
}
.list-component-toast.list-component-toast-error .list-component-toast-icon {
    color: #dc3545;
}

.list-component-toast.list-component-toast-warning {
    border-left-color: #ffc107;
}
.list-component-toast.list-component-toast-warning .list-component-toast-icon {
    color: #ffc107;
}

.list-component-toast.list-component-toast-info {
    border-left-color: #17a2b8;
}
.list-component-toast.list-component-toast-info .list-component-toast-icon {
    color: #17a2b8;
}

/* 图标样式 */
.list-component-toast-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1.4;
}

/* 内容区域 */
.list-component-toast-content {
    flex: 1;
    min-width: 0;
}

.list-component-toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
}

.list-component-toast-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    word-break: break-word;
}

/* 关闭按钮 */
.list-component-toast-close {
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    flex-shrink: 0;
    transition: color 0.2s;
    line-height: 1;
}

.list-component-toast-close:hover {
    color: #333;
}

/* 动画 */
@keyframes listComponentSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes listComponentSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* 确保不会影响页面其他元素 */
.list-component-toast-container * {
    box-sizing: border-box;
}