/* ======================================================== */
/* 文件路径: /admin/dist/js/components/Message.css */
/* 中文名称: 通用消息提示控件样式 */
/* 版本号: v1.0.0 */
/* 日期: 2026-03-05 */
/* 说明: 提供统一的Toast提示样式 */
/* ======================================================== */

/* Toast 容器 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Toast 消息卡片 */
.toast-message {
    min-width: 300px;
    max-width: 450px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    pointer-events: auto;
    border-left: 4px solid;
}

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

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

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

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

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

/* 图标样式 */
.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

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

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

.toast-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    word-break: break-word;
}

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

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

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

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

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