/* ============================================================
   FitMate - Toast 通知组件样式
   由 JS 动态注入迁移而来，统一管理
   ============================================================ */

/* Toast 容器 */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Toast 单条通知 */
.toast-container .toast {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-level3);
    animation: toastIn 0.3s ease-out;
    min-width: 280px;
}

/* Toast 图标容器 */
.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Toast 内容 */
.toast-message {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Toast 类型：成功 */
.toast.toast-success {
    border-left: 4px solid var(--success);
}

.toast.toast-success .toast-icon {
    background: var(--success-light);
    color: var(--success);
}

/* Toast 类型：错误 */
.toast.toast-error {
    border-left: 4px solid var(--danger);
}

.toast.toast-error .toast-icon {
    background: var(--danger-light);
    color: var(--danger);
}

/* Toast 动画 */
@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
